in reply to Perl interpreter stops when writing logfile - why?

I can only guess this might be an OS related "feature" to check if an app is still "responsive" by sending signals or monitoring resources.

Perl (to be precise the dumper XS code) might be too busy writing and is not replying.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

  • Comment on Re: Perl interpreter stops when writing logfile - why?

Replies are listed 'Best First'.
Re^2: Perl interpreter stops when writing logfile - why?
by Ratazong (Monsignor) on Dec 09, 2014 at 14:37 UTC

    Dear LanX, Corion and Anonymous Monk!

    Thanks for your suggestions! Here are some results of my tests:

    • It is depending on the perl-version ... perl 5.14.2 works without problems
    • It really seems to depend on the size of the dump - the result is the same independently if I write directly to the logfile or if I redirect
    • Even with dumping the data in a loop (with redirection), the same error occured (there might be a problem that the perl-script writes the data faster than it could be processed ...)
    Summary: I "solved" the problem by reducing the amount of debugging-info, and by using a newer perl-version when all data is really needed. Your comments helped me reaching this solution :-) .

    Thanks a lot! Rata

      > Even with dumping the data in a loop 

      Maybe try to sleep or usleep between iterations ... just to nail down the original problem. :)

      Cheers Rolf

      (addicted to the Perl Programming Language and ☆☆☆☆ :)