Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.93k stars 552 forks source link

libthread panic #2191

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

Migrated from rt.perl.org#3487 (status was 'resolved')

Searchable as RT3487$

p5pRT commented 24 years ago

From joshb@cadence.com

I'm getting a libthread panic pretty consistently in code which worked in 5.05002. This is the ActiveState build (615) of perl running on a Solaris 5.7 machine. (sun4v ultra-5_10)

libthread panic​: _sys_thread_create()​:alloc_thread returns 0 (no mem) (PID​: 8846 LWP 1) stacktrace​:   ff0d79d0   68110   aa2dc   73a08   2c184   2be1c   292a0   290d4   0

It hangs at this point. 'ps' reads​:

  8541 pts/8 S 0​:00 sh -c /export/home/joshb/VCS/lib/../scripts/upd -old -merge auto -mergefail pr   8542 pts/8 S 0​:10 /usr/local/bin/perl5 /export/home/joshb/VCS/lib/../scripts/upd -old -merge auto -mergefail prompt -   8846 pts/8 S 0​:00 /usr/local/bin/perl5 /export/home/joshb/VCS/lib/../scripts/upd -old -merge auto -mergefail prompt -

Note that this script does _not_ use threads. (I don't think it even forks\, for that matter.)

Here's the traceback from dbx​:

(xdbx) where current thread​: t@​1 =>[1] _libc_sigtimedwait(0xffbee6b4\, 0x0\, 0x0\, 0xff0ec524\, 0xf4dcc\, 0xf4dac)\, at 0xff2145fc   [2] _panic(0xff0dc0e8\, 0xff0ed2f4\, 0xff0ec524\, 0xf4d48\, 0xff0ec524\, 0xffbee95c)\, at 0xff0cdb4c   [3] _sys_thread_create(0xff0cf574\, 0x100\, 0xff0ec524\, 0xf4fb8\, 0xff0ec524\, 0xff0cf574)\, at 0xff0cf7e0   [4] _ti_fork1(0x0\, 0xff0ed498\, 0xff0f68c0\, 0xff0f0f78\, 0xff0ed4b8\, 0xff0ec524)\, at 0xff0d79d0   [5] Perl_my_popen(0xf5798\, 0x88b280\, 0xd7528\, 0x2f\, 0x5c\, 0x234ef0)\, at 0x68110   [6] Perl_pp_backtick(0xf5798\, 0xaa1d4\, 0x0\, 0x251834\, 0x1\, 0x36f018)\, at 0xaa2dc   [7] Perl_runops_standard(0xf5798\, 0x739fc\, 0x0\, 0x0\, 0xffbef00c\, 0x0)\, at 0x73a08   [8] S_run_body(0xf5798\, 0x1\, 0xf5798\, 0xffffffff\, 0xfffffff8\, 0xf6160)\, at 0x2c184   [9] perl_run(0x0\, 0x29308\, 0x8\, 0xffbeeedc\, 0x0\, 0x0)\, at 0x2be1c   [10] main(0x0\, 0xffbeeedc\, 0xffbeef00\, 0xf49b8\, 0x0\, 0x0)\, at 0x292a0

Unfortunately\, I'm not coversant enough w/ debugging perl on solaris to tell you what backtick it's trying to run at this point...

Perl Info ``` Flags: category=core severity=critical Site configuration information for perl v5.6.0: Configured by fredb at Thu Jul 6 11:45:48 PDT 2000. Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Platform: osname=solaris, osvers=2.6, archname=sun4-solaris-thread-multi uname='sunos sparc 5.6 generic_105181-19 sun4u sparc sunw,ultra-5_10 ' config_args='-des -Dcc=gcc -Dcf_email=ActivePerl@ActiveState.com -Uinstallusrbinperl -Dusethreads -Duseithreads -Dprefix=/usr/local' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef Compiler: cc='gcc', optimize='-O', gccversion=2.95.1 19990816 (release) cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include' ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' stdchar='unsigned char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib ' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc -lcrypt -lsec libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' Locally applied patches: ACTIVEPERL_LOCAL_PATCHES_ENTRY @INC for perl v5.6.0: /usr/local/lib/5.6.0/sun4-solaris-thread-multi /usr/local/lib/5.6.0 /usr/local/lib/site_perl/5.6.0/sun4-solaris-thread-multi /usr/local/lib/site_perl/5.6.0 /usr/local/lib/site_perl . Environment for perl v5.6.0: HOME=/export/home/joshb LANG=C LANGUAGE (unset) LD_LIBRARY_PATH=/usr/dt/lib:/usr/local/lib:/usr/openwin:/usr/lib LOGDIR (unset) PATH=/usr/local/bin:.:/export/home/joshb/bin:/export/home/joshb/scritti:/usr/dt/bin:/usr/openwin/bin:/usr/openwin/bin/xview:/usr/openwin/demo:/usr/ccs/bin:/opt/SUNWspro/v5/SUNWspro/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/local/scripts:/usr/local/scripts/Admin PERL_BADLANG (unset) SHELL=/bin/csh ```