in reply to Re: perl dying without a trace
in thread perl dying without a trace

I've added print statements before and after the point where I knew it was dying (by looking at the output), and basically kept adding more closer together until I got to this line. The print before shows up, the print after doesn't.

It did just occur to me that I may not have explicitely disabled buffering on STDOUT, so I'll run it again that way to make sure I'm not just missing some messages that were still in the buffer.

If I replace the packed values with constants then the program won't run. This line gets called successfully hundreds of times already before the program dies, and always with different values in the packet. I can try modifying enough of the callers to pretend I got a successful reply, but that's basically gonna take away all of the socket interaction.

Replies are listed 'Best First'.
Re^3: perl dying without a trace
by GrandFather (Saint) on Oct 24, 2006 at 23:35 UTC

    I wouldn't be absolutly sure that that was where the problem was even with buffering turned off, however it is worth a try.

    More important is to try and print out the parameters to the pack and see if those are important to the issue. If it fails with specific issues you can then use a debugger and have it break when the appropriate line is reached with the danger parameters.


    DWIM is Perl's answer to Gödel