[13:43] <Keybuk> this bug is, err, bugging me
[13:46] <Keybuk> it looks like four jobs were started from the same event
[13:46] <Keybuk> and the one that made it then freed that event, despite the refcount
[14:03] <Keybuk> sadmac2: oh, I'm going to beat you
[14:19] <sadmac2> Keybuk: what's going on? Give me the 1 hour of sleep version.
[14:24] <Keybuk> you know that "rewind the data and upstart crashes" bug?
[14:27] <sadmac2> yes
[14:27] <Keybuk> I think it's caused by a Fedora patch
[14:28] <sadmac2> which?
[14:29] <Keybuk> not sure yet
[14:29] <Keybuk> but I suspect the re-exec one
[14:30] <sadmac2> well I didn't write that, so its all good
[14:30] <sadmac2> mostly good...
[14:31] <Keybuk> just need to prove it
[14:32] <Keybuk> basically an inviolate constraint is being violated ;)
[15:55] <Keybuk> hmm
[15:55] <Keybuk> I can't see anything about your patch that might do that, sadly
[15:56] <sadmac2> have you reproduced this thing?
[16:05] <Keybuk> nope
[17:18] <Keybuk> though his log just made me go "HUH"
[17:18] <Keybuk> I like following state machines on paper
[17:18] <Keybuk> it's SO MUCH FUN
[17:29] <ion_> :-)
[17:35]  * Keybuk now has ice cream
[17:42] <Keybuk> I have reached the event that kills everything
[17:43] <Keybuk> I can see it on the event queue
[17:43] <Keybuk> (the bit of paper on the rhs of my desk)
[18:06] <Keybuk> Handling started event
[18:06] <Keybuk> ? goal changed from stop to start
[18:06] <Keybuk> ? state changed from waiting to starting
[18:06] <Keybuk> ? respawning too fast, stopped
[18:06] <Keybuk> ? respawning too fast, stopped
[18:06] <Keybuk> ? goal changed from start to stop
[18:06] <Keybuk> ? state changed from starting to waiting
[18:06] <Keybuk> ... wonder whether that could be it
[18:06] <Keybuk> the double "respawning too fast" is kinda odd
[18:06] <Keybuk> but, more than that, the respawn detection is the one thing that could be broken by the date spooling backwards
[18:19] <Keybuk> kids
[18:19] <Keybuk> remember
[18:19] <Keybuk> time(NULL) is not monotonic
[18:28] <Keybuk> https://bugs.edge.launchpad.net/upstart/+bug/388873/comments/26
[18:37] <Keybuk> gnnnrgh
[18:37] <Keybuk> this is a bug
[18:38] <sadmac2> Keybuk: as opposed to?
[18:39] <Keybuk> as in, I can now, following the code, see how it goes wrong :)
[18:49] <sadmac2> oic
[18:49] <sadmac2> can you /fix/ it though?
[18:51] <Keybuk> first I write a test case ;)
[18:51] <Keybuk> and forward port that to 0.5 to check
[18:51] <Keybuk> I'm pretty sure 0.5 is expressly not vulnerable, because I totally rewrote the event queue there
[18:51] <Keybuk> interestingly, I appear to have rewritten it to exactly avoid this issue
[18:51] <Keybuk> will check the test cases there to see whether I already hit this bug, or a similar one, and didn't realise