Duane Johnson
2008-Jan-29 10:38 UTC
[Eventmachine-talk] std::runtime_error when calling EM::stop
When I call EM::stop from within a Deferrable callback, I''m getting the following: terminate called after throwing an instance of ''std::runtime_error'' what(): already initialized Abort trap Is there any way to trace this a little further? -- Duane Johnson
Francis Cianfrocca
2008-Jan-29 20:25 UTC
[Eventmachine-talk] std::runtime_error when calling EM::stop
On Jan 29, 2008 1:38 PM, Duane Johnson <canadaduane at gmail.com> wrote:> When I call EM::stop from within a Deferrable callback, I''m getting > the following: > > terminate called after throwing an instance of ''std::runtime_error'' > what(): already initialized > Abort trap > >I''ve seen some really, really weird edge conditions that cause C++ objects to get destructed twice in the presence of EM#stop when it gets called in unusual places. And I mean these are really thin edges, not easy to reproduce. I''d first investigate whether your Ruby code is throwing an ordinary Ruby exception. If not, then I''d appreciate it if you could send me the smallest possible code sample that throws the std::runtime_error. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080129/39e17b55/attachment.html