Re: [asio-users] crash in debian (was: gentoo)
Brought to you by:
chris_kohlhoff
From: Christopher K. <ch...@ko...> - 2006-06-17 23:30:55
|
Hi Arvid, Arvid Norberg <ar...@cs...> wrote: > I have managed to reproduce this (at least I think it is the > same problem). > This is with the latest cvs version of asio. > > I get an access violation in > asio/detail/reactor_op_queue.hpp:151 Where it calls: > > bool done = i->second->invoke(result); > > The problem is that i->second is 0. I added an > assert(i->second) on the line above it and it was hit. > > I just tried changing it to: > > bool done = false; > if (i->second) done = i->second->invoke(result); > > And then it at least appeared to work (I didn't get the > crash). You can probably tell more from this than I can. Thanks for that. I think it's a bug in reactor_op_queue::dispatch_all_operations. The line should probably be: bool done = this_op->invoke(result); I have just committed this change to CVS. Let me know how it goes. Cheers, Chris |