develooper Front page | perl.perl5.porters | Postings from December 2010

Re: [perl #81408] Perl infinite loop: Perl_magic_get / Perl_csighandler

Thread Previous | Thread Next
David Leadbeater
December 28, 2010 17:39
Re: [perl #81408] Perl infinite loop: Perl_magic_get / Perl_csighandler
Message ID:
On 28 Dec 2010, at 23:52, Russ Weight (via RT) wrote:
> In the context of our system test suite, we are repeatedly hitting
> a hang on a perl script. We have a lot of debug statements in the
> script, but output stops, sometimes in the middle of an output
> string. ps shows that execution time is continuing to increase.

I'm assuming your code (or a module it uses) sets $SIG{SEGV}.

> We are using perl-5.8.8-32.el5_5.2.x86_64.rpm

This is particularly old. Your issue would probably be fixed by:

The bug the associated mailing list post references is another issue where perl loops:

A workaround which might work on 5.8 would be to use POSIX's sigaction interface as this allows you to use unsafe signals for a specific signal. (Although it's likely there is another bug causing the actual segfault, but at least it should be easier to debug with this).
Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About