-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manipulating hash in SIGCHLD handler causes "Segmentation fault" #7251
Comments
From morimoto@interlink.ad.jpCreated by morimoto@interlink.ad.jpManipulating hash in signal handler (SIGCHLD) causes "Segmentation fault". $speed = 0.001 ; # more fast more error $SIG{CHLD} = sub { for ( my $i = 0 ; $i < 1000 ; $i++ ) { 1 while wait > 0 ; Perl Info
|
From @iabynOn Wed, Apr 21, 2004 at 01:25:17AM -0000, Mao Morimoto wrote:
Thanks for the report. The problem boils down to the following: gets interrupted by the signal after $children{$pid} has been pushed on Yet another side-effect of stuff on the stack not being ref-counted. -- |
The RT System itself - Status changed from 'new' to 'open' |
From perl5-porters@ton.iguana.beIn article <20040503232914.GL1895@iabyn.com>,
Since this is a case of "don't do that then", you can however |
From yneko@interlink.ad.jpThank you for your advice. thank you! ----- Original Message -----
|
From @iabynOn Wed, May 05, 2004 at 11:03:41PM +0900, Mao Morimoto wrote:
Well, the main difficulty here is that if the child exits quickly, Here's a modified version of your code which does jjust that. $speed = 0.001 ; # more fast more error $SIG{CHLD} = sub { { for ( my $i = 0 ; $i < 1000 ; $i++ ) { 1 while wait > 0 ; -- |
Migrated from rt.perl.org#29012 (status was 'open')
Searchable as RT29012$
The text was updated successfully, but these errors were encountered: