#ceph IRC Log

Index

IRC Log for 2011-08-25

Timestamps are in GMT/BST.

[0:17] <slang> sagewk: you think #1391 is memory corruption?
[0:18] <sagewk> slang: it looks that way to me.. nothing inside the loop is modifying the map that pd is iterating over
[0:18] <slang> sagewk: I've seen the string::compare segfault a dozen times now, always in the same spot
[0:18] <slang> sagewk: could the iterator be made const in that case?
[0:19] <sagewk> oh, wait a sec.. i think i see the problem :/
[0:19] <sagewk> yeah, i see it. will have a patch shortly.
[0:31] <slang> nice
[0:32] <slang> sagewk: thanks!
[0:50] * cp (~cp@c-76-102-0-145.hsd1.ca.comcast.net) Quit (Ping timeout: 480 seconds)
[0:53] * cp (~cp@c-76-102-0-145.hsd1.ca.comcast.net) has joined #ceph
[1:35] * greglap (~Adium@166.205.142.163) has joined #ceph
[2:08] * cp (~cp@c-76-102-0-145.hsd1.ca.comcast.net) Quit (Quit: cp)
[2:10] * yoshi (~yoshi@p10166-ipngn1901marunouchi.tokyo.ocn.ne.jp) has joined #ceph
[2:23] * Tv (~Tv|work@aon.hq.newdream.net) Quit (Ping timeout: 480 seconds)
[2:29] * yoshi (~yoshi@p10166-ipngn1901marunouchi.tokyo.ocn.ne.jp) Quit (Remote host closed the connection)
[2:32] * huangjun (~root@61.184.205.201) has joined #ceph
[2:32] * greglap (~Adium@166.205.142.163) Quit (Ping timeout: 480 seconds)
[2:33] * cmccabe (~cmccabe@c-24-23-254-199.hsd1.ca.comcast.net) has left #ceph
[2:33] <sagewk> slang: pushed to next branch
[2:37] * jojy (~jojyvargh@70-35-37-146.static.wiline.com) Quit (resistance.oftc.net oxygen.oftc.net)
[2:37] * Meths (rift@2.25.211.193) Quit (resistance.oftc.net oxygen.oftc.net)
[2:37] * yehudasa (~yehudasa@aon.hq.newdream.net) Quit (resistance.oftc.net oxygen.oftc.net)
[2:37] * rsharpe (~Adium@70-35-37-146.static.wiline.com) Quit (resistance.oftc.net oxygen.oftc.net)
[2:37] * cclien_ (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) Quit (resistance.oftc.net oxygen.oftc.net)
[2:37] * hachiya (~hachiya@encyclical.net) Quit (resistance.oftc.net oxygen.oftc.net)
[2:38] * jojy (~jojyvargh@70-35-37-146.static.wiline.com) has joined #ceph
[2:38] * Meths (rift@2.25.211.193) has joined #ceph
[2:38] * yehudasa (~yehudasa@aon.hq.newdream.net) has joined #ceph
[2:38] * rsharpe (~Adium@70-35-37-146.static.wiline.com) has joined #ceph
[2:38] * hachiya (~hachiya@encyclical.net) has joined #ceph
[2:38] * cclien_ (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) has joined #ceph
[3:18] * jim (~chatzilla@c-71-202-13-33.hsd1.ca.comcast.net) Quit (Ping timeout: 480 seconds)
[3:27] * jim (~chatzilla@c-71-202-13-33.hsd1.ca.comcast.net) has joined #ceph
[3:43] * bchrisman (~Adium@70-35-37-146.static.wiline.com) Quit (Quit: Leaving.)
[3:45] * jojy (~jojyvargh@70-35-37-146.static.wiline.com) Quit (Quit: jojy)
[3:55] * yehuda_hm (~yehuda@99-48-179-68.lightspeed.irvnca.sbcglobal.net) has joined #ceph
[4:06] * jim (~chatzilla@c-71-202-13-33.hsd1.ca.comcast.net) Quit (Remote host closed the connection)
[4:31] * huangjun (~root@61.184.205.201) Quit (Read error: Connection reset by peer)
[5:04] * gregaf1 (~Adium@aon.hq.newdream.net) has joined #ceph
[5:04] * sjust (~sam@aon.hq.newdream.net) Quit (Read error: Connection reset by peer)
[5:04] * sagewk (~sage@aon.hq.newdream.net) Quit (Write error: connection closed)
[5:04] * gregaf (~Adium@aon.hq.newdream.net) Quit (Write error: connection closed)
[5:04] * sjust (~sam@aon.hq.newdream.net) has joined #ceph
[5:05] * sagewk (~sage@aon.hq.newdream.net) has joined #ceph
[6:09] * bchrisman (~Adium@c-98-207-207-62.hsd1.ca.comcast.net) has joined #ceph
[6:30] * greglap (~Adium@166.205.141.253) has joined #ceph
[7:08] * cclien_ (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) Quit (synthon.oftc.net oxygen.oftc.net)
[7:08] * hachiya (~hachiya@encyclical.net) Quit (synthon.oftc.net oxygen.oftc.net)
[7:08] * rsharpe (~Adium@70-35-37-146.static.wiline.com) Quit (synthon.oftc.net oxygen.oftc.net)
[7:08] * yehudasa (~yehudasa@aon.hq.newdream.net) Quit (synthon.oftc.net oxygen.oftc.net)
[7:08] * Meths (rift@2.25.211.193) Quit (synthon.oftc.net oxygen.oftc.net)
[7:09] * Meths (rift@2.25.211.193) has joined #ceph
[7:09] * yehudasa (~yehudasa@aon.hq.newdream.net) has joined #ceph
[7:09] * rsharpe (~Adium@70-35-37-146.static.wiline.com) has joined #ceph
[7:09] * hachiya (~hachiya@encyclical.net) has joined #ceph
[7:09] * cclien_ (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) has joined #ceph
[7:24] * greglap1 (~Adium@166.205.141.253) has joined #ceph
[7:24] * greglap (~Adium@166.205.141.253) Quit (Read error: Connection reset by peer)
[7:31] * greglap1 (~Adium@166.205.141.253) Quit (Read error: Connection reset by peer)
[7:38] * cp (~cp@c-98-234-218-251.hsd1.ca.comcast.net) has joined #ceph
[7:57] * cp (~cp@c-98-234-218-251.hsd1.ca.comcast.net) Quit (Quit: cp)
[8:33] * tjikkun (~tjikkun@2001:7b8:356:0:225:22ff:fed2:9f1f) has joined #ceph
[9:54] * yoshi (~yoshi@p10166-ipngn1901marunouchi.tokyo.ocn.ne.jp) has joined #ceph
[10:15] * gregorg (~Greg@78.155.152.6) has joined #ceph
[11:11] * Dantman (~dantman@S0106001731dfdb56.vs.shawcable.net) Quit (Ping timeout: 480 seconds)
[11:17] * Dantman (~dantman@S0106001731dfdb56.vs.shawcable.net) has joined #ceph
[11:39] * cclien_ (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) Quit (resistance.oftc.net oxygen.oftc.net)
[11:39] * hachiya (~hachiya@encyclical.net) Quit (resistance.oftc.net oxygen.oftc.net)
[11:39] * rsharpe (~Adium@70-35-37-146.static.wiline.com) Quit (resistance.oftc.net oxygen.oftc.net)
[11:39] * yehudasa (~yehudasa@aon.hq.newdream.net) Quit (resistance.oftc.net oxygen.oftc.net)
[11:39] * Meths (rift@2.25.211.193) Quit (resistance.oftc.net oxygen.oftc.net)
[11:40] * Meths (rift@2.25.211.193) has joined #ceph
[11:40] * yehudasa (~yehudasa@aon.hq.newdream.net) has joined #ceph
[11:40] * rsharpe (~Adium@70-35-37-146.static.wiline.com) has joined #ceph
[11:40] * hachiya (~hachiya@encyclical.net) has joined #ceph
[11:40] * cclien_ (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) has joined #ceph
[12:18] * yoshi (~yoshi@p10166-ipngn1901marunouchi.tokyo.ocn.ne.jp) Quit (Remote host closed the connection)
[12:25] * Juul (~Juul@130.225.93.59) has joined #ceph
[13:38] * Meths_ (rift@2.25.193.139) has joined #ceph
[13:42] * Meths (rift@2.25.211.193) Quit (Ping timeout: 480 seconds)
[15:04] * cclien_ (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) Quit (Server closed connection)
[15:04] * cclien (~cclien@ec2-175-41-146-71.ap-southeast-1.compute.amazonaws.com) has joined #ceph
[15:05] * hachiya (~hachiya@encyclical.net) Quit (Server closed connection)
[15:05] * hachiya (~hachiya@encyclical.net) has joined #ceph
[15:19] * rsharpe (~Adium@70-35-37-146.static.wiline.com) Quit (Server closed connection)
[15:19] * rsharpe (~Adium@70-35-37-146.static.wiline.com) has joined #ceph
[15:24] * yehudasa (~yehudasa@aon.hq.newdream.net) Quit (Server closed connection)
[15:24] * yehudasa (~yehudasa@aon.hq.newdream.net) has joined #ceph
[16:59] * yoshi (~yoshi@KD027091032046.ppp-bb.dion.ne.jp) has joined #ceph
[17:00] * yoshi (~yoshi@KD027091032046.ppp-bb.dion.ne.jp) Quit (Remote host closed the connection)
[17:06] * greglap (~Adium@166.205.141.253) has joined #ceph
[17:25] * greglap (~Adium@166.205.141.253) Quit (Quit: Leaving.)
[18:06] * greglap (~Adium@aon.hq.newdream.net) has joined #ceph
[18:13] * greglap (~Adium@aon.hq.newdream.net) Quit (Quit: Leaving.)
[18:29] * aliguori (~anthony@cpe-70-123-132-139.austin.res.rr.com) Quit (Remote host closed the connection)
[18:30] * Tv (~Tv|work@aon.hq.newdream.net) has joined #ceph
[18:39] * Juul (~Juul@130.225.93.59) Quit (Ping timeout: 480 seconds)
[18:49] * joshd (~joshd@aon.hq.newdream.net) has joined #ceph
[19:01] <Tv> uhh i may have just *fried* sepia96
[19:01] <Tv> no serial console and it won't come up again
[19:03] <Tv> oh no there we go, just dead serial console and very slow bootup
[19:03] * jojy (~jojyvargh@70-35-37-146.static.wiline.com) has joined #ceph
[19:13] * cmccabe (~cmccabe@69.170.166.146) has joined #ceph
[19:59] <Tv> okay my migration issue was about sepia dns being configured wrong
[20:00] * Meths_ is now known as Meths
[20:06] <Tv> HA!
[20:06] <Tv> migrate works
[20:06] <joshd> hooray!
[20:13] <gregaf1> hmm, what's the proper way in C++ to do a string to int conversion where 0 is a possible value?
[20:14] <gregaf1> strtol and atoi both return 0 as error
[20:14] <gregaf1> should I just do a string comparison for that?
[20:14] <gregaf1> (ewww)
[20:30] * aliguori (~anthony@32.97.110.59) has joined #ceph
[20:31] <joshd> gregaf1: the strtol man page says to set errno to 0, then check it after the call
[20:31] <gregaf1> ah, that makes sense
[20:32] <gregaf1> damn cplusplus.com!
[20:35] <Tv> btw setting errno to 0 is kinda always there in posix; there's no guarantee a successful syscall will zero errno
[20:36] <Tv> in fact
[20:36] <Tv> "errno is never set to zero by any system call or library function."
[20:36] <Tv> whoa
[20:39] <Tv> "No function in this volume of IEEE Std 1003.1-2001 shall set errno to 0."
[20:39] <Tv> yup
[20:39] <Tv> "An application that needs to examine the value of errno to determine the error should set it to 0 before a function call, then inspect it before a subsequent function call."
[21:08] <cmccabe> tv: the point of errno is that you already know that an error occurred, so what was it?
[21:08] <cmccabe> tv: you're not supposed to ever do things like if (errno == 0)
[21:09] <cmccabe> I guess maybe in the specific case of strtol there is an exception where you might want to set errno to 0 before calling it
[21:09] <cmccabe> strtol really has painful semantics
[21:10] <cmccabe> I already wrote all this code and made it accessible, by the way, in common/strtol.{h,cc}
[21:13] * bchrisman (~Adium@c-98-207-207-62.hsd1.ca.comcast.net) Quit (Quit: Leaving.)
[21:17] <Tv> cmccabe: you check for <0 first, before you look at errno
[21:17] <Tv> strtol is especially ugly
[21:19] <cmccabe> strtol can also return LONG_MAX, so checking for <0 is not enough
[21:19] <Tv> strtol is especially ugly
[21:19] <Tv> but basically
[21:19] <Tv> you're supposed to get a "it failed" as part of the return
[21:19] <Tv> and errno just tells you "how it failed"
[21:19] <cmccabe> right
[21:19] <Tv> and is not defined unless you get "it failed" first, etc
[21:20] <cmccabe> but. as we were saying, strtol is a freak. As far as I can see, there's no reason not to just set errno = 0 before calling strtol and then check errno right after calling it. No other function would have set that variable
[21:21] <cmccabe> I guess maybe you could avoid the errno = 0 beforehand by checking explicitly against LONG_MIN and LONG_MAX?
[21:21] <cmccabe> oh, no, look at NOTES.
[21:21] <cmccabe> "Since strtol() can legitimately return 0, LONG_MAX, or LONG_MIN (LLONG_MAX or LLONG_MIN for strtoll()) on both success and failure, the calling program should set errno to 0 before the call, and then determine if an error occurred by checking whether errno has a non-zero value after the call."
[21:21] <cmccabe> so it's telling you to break the rules, basically.
[21:22] <cmccabe> Go on, it's ok, everyone's doing it.
[21:22] <cmccabe> anyway my implementation is in strtol.cc. As far as I know it follows the man page 100%
[21:43] * bchrisman (~Adium@64.164.138.146) has joined #ceph
[22:08] * bchrisman (~Adium@64.164.138.146) Quit (Quit: Leaving.)
[22:19] * bchrisman (~Adium@64.164.138.146) has joined #ceph
[22:36] * aliguori_ (~anthony@32.97.110.65) has joined #ceph
[22:41] * aliguori (~anthony@32.97.110.59) Quit (Ping timeout: 480 seconds)
[22:49] * aliguori_ is now known as aliguori
[23:10] * aliguori (~anthony@32.97.110.65) Quit (Ping timeout: 480 seconds)
[23:19] * aliguori (~anthony@32.97.110.59) has joined #ceph
[23:46] * cp (~cp@74.85.19.35) has joined #ceph

These logs were automatically created by CephLogBot on irc.oftc.net using the Java IRC LogBot.