-
Notifications
You must be signed in to change notification settings - Fork 561
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
threads async segfaults (5.8.1) #6827
Comments
From mjp-perl@pilcrow.madison.wi.usCreated by perlbuild@box.securepipe.comWith async-spawned threads, combinations of $thr->tid() and $thr->join() # tid, <delay>, join # tid, join, tid # tid, join, tid, join This does _not_ happen if the threads are _not_ created via async{}. That is, ... (perl-5.8.0-55 from Redhat's Rawhide 3.2-5 does not segfault with the Perl Info
|
From @lizmatAt 05:04 +0000 10/9/03, Michael J.Pomraning (via RT) wrote:
Bombs on Mac OS X as well. A stack trace: #0 0x080a59f0 in Perl_pad_swipe (my_perl=0x81acba0, po=13, refadjust=1 '\001')
Can't get this to bomb on Mac OS X. Same backtrace as above.
Also bombs with Mac OS X. Same tracktrace. Oddly enough these segfault also with Valgrind. the resulting core Liz |
From @lizmatAt 05:04 +0000 10/9/03, Michael J.Pomraning (via RT) wrote:
Based on this observation, I changed "async" in threads.pm from: sub async (&;@) { to: sub async (&;@) {threads->new( @_ )} # also segfaults sub async (&;@) {new( 'threads',@_ )} # also segfaults sub async (&;@) {unshift @_,'threads'; goto &new} # doesn't segfault! The reason behind this last change would be to make the environment This means that it would in principle be possible to issue a new Liz |
From @iabynOn Fri, Oct 10, 2003 at 10:46:17PM +0200, Elizabeth Mattijsen wrote:
The problem is that when threads call perl_destruct(), PL_comppad and In this particular case, when the main program exits it calls The following patch, applied as #21470, fixes the immediate problem (*). I must confess that I was suprised to find that perl_destruct isn't Dave. (*) Whoo hoo, my first commit :-) -- Change 21470 by davem@davem-percy on 2003/10/16 20:03:44 Ensure PL_comppad/curpad point to PL_main_cv's padlist when Affected files ... ... //depot/perl/ext/threads/t/thread.t#10 edit Differences ... ==== //depot/perl/ext/threads/t/thread.t#10 (text) ==== @@ -12,7 +12,7 @@ use ExtUtils::testlib; @@ -153,5 +153,10 @@ +# bugid #24165 ==== //depot/perl/pad.h#9 (text) ==== @@ -105,6 +105,9 @@ +=for apidoc m|void|PAD_SET_CUR_NOSAVE |PADLIST padlist|I32 n @@ -133,8 +136,7 @@ -#define PAD_SET_CUR(padlist,n) \ +#define PAD_SET_CUR(padlist,n) \ ==== //depot/perl/perl.c#526 (text) ==== @@ -354,6 +354,10 @@ /* Destroy the main CV and syntax tree */ |
@iabyn - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#24165 (status was 'resolved')
Searchable as RT24165$
The text was updated successfully, but these errors were encountered: