On Wed, 05 Jun 2019 14:22:10 GMT, hv wrote: > On Wed, 05 Jun 2019 06:32:12 -0700, jkeenan wrote: > > I'm not sure whether you wanted *me* to run the above commands prior > > to hearing from someone about mutexes > > I had not expected it would work, but since it did let's go with it. > :) (For me that just gives 'No symbol "PL_locale_mutex" in current > context'.) > > > here's what I got: > > > > ##### > > [perl] $ gdb --args ./perl -e 'my $x = sprintf("%7000000000E", 0)' > [...] > > Watchpoint 2: PL_locale_mutex > > > > Old value = 0x0 > > New value = 0x801e1c1e0 > > 0x0000000800c6caec in __pthread_mutex_init (mutex=0xa45b28, > > mutex_attr=<value optimized out>) at pthread_md.h:94 > > That's slightly odd, the intent of the tbreak was to get past the > initialize (which the stack trace shows is invoked from > perlmain.c:119). Never mind, please get to this point again, then > continue with: > > (gdb) cont > > .. and let's see where it stops next, and get another stack trace. > > Hugo After 'cont', the program hung for > 1 minute, so I Ctrl-C-ed it. ##### ... Watchpoint 2: PL_locale_mutex Watchpoint 2: PL_locale_mutex Old value = 0x0 New value = 0x801e1c1e0 0x0000000800c6caec in __pthread_mutex_init (mutex=0xa45b28, ---Type <return> to continue, or q <return> to quit--- mutex_attr=<value optimized out>) at pthread_md.h:94 94 { Current language: auto; currently minimal (gdb) cont Continuing. ^C Program received signal SIGINT, Interrupt. __vdso_gettc (th=0x7ffffffff270, tc=0x7fffffffe53c) at cpufunc.h:326 326 __asm __volatile("lfence" : : : "memory"); (gdb) bt #0 __vdso_gettc (th=0x7ffffffff270, tc=0x7fffffffe53c) at cpufunc.h:326 #1 0x000000080183e729 in binuptime (bt=0x7fffffffe580, tk=0x7ffffffff1b0, abs=1) at /usr/src/lib/libc/sys/__vdso_gettimeofday.c:43 #2 0x000000080183e818 in __vdso_clock_gettime (clock_id=13, ts=0x7fffffffe5e8) at /usr/src/lib/libc/sys/__vdso_gettimeofday.c:149 #3 0x0000000801827a31 in __clock_gettime (clock_id=13, ts=0x7fffffffe5e8) at /usr/src/lib/libc/sys/clock_gettime.c:46 #4 0x00000008018271da in time (t=0x801e225a8) at /usr/src/lib/libc/gen/time.c:45 #5 0x000000000044fd6f in perl_parse (my_perl=0x801e22000, xsinit=0x421490 <xs_init>, argc=<value optimized out>, argv=0x306, env=<value optimized out>) at perl.c:1822 #6 0x00000000004213ea in main (argc=<value optimized out>, argv=<value optimized out>, env=0x7fffffffe7a0) at perlmain.c:126 ##### -- James E Keenan (jkeenan@cpan.org) --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=134172Thread Previous | Thread Next