Duane Johnson
2008-Mar-13 09:18 UTC
[Eventmachine-talk] popen pipe connection occasionally fails
Hi all, I am encountering the following crash-causing bug using popen on occasion. I haven''t been able to narrow it down yet, but I am curious if anyone else has seen it or may have more information for me: Workers::DviToPng::PipeProtocol> terminate called after throwing an instance of ''std::runtime_error'' > what(): unable to reap subprocess > Abort trap >The following code is called to connect the pipe: EventMachine::run do> # Open the connection to the dvipng shell command > EventMachine::popen $mock_dvipng_executable, > Workers::DviToPng::PipeProtocol > EM::next_tick { > EventMachine::add_timer(3) { EventMachine::stop; violated("Event loop > took too long.") } > } > end >This bug seems to happen on the first or second attempt, and then it magically goes away. Any ideas? Thanks, Duane Johnson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080313/d6f4943c/attachment.html