[Bug libgcc/69997] GCC5.3.0 _Unwind_ForcedUnwind Always Abort While pthread_exit
tcliuqiang at msn dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 2 01:10:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69997
--- Comment #4 from Liu Qiang <tcliuqiang at msn dot com> ---
Hello everybody.
I build the powerpc64 crosstoolchain with removing the
'gcc_assert(code==URC_NO_REASON)', and run the new system built by it. The
program (python3 with thread exiting) terminated by SIGSEGV instead of SIGABRT.
Can anyone help?
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x3fffb763b190 (LWP 1667)]
_Unwind_GetGR (index=65, context=0x3fffb7639e40) at
/develop/build/toolchain/src/gcc-4.9.3/libgcc/unwind-dw2.c:244
244 /develop/build/toolchain/src/gcc-4.9.3/libgcc/unwind-dw2.c: No such
file or directory.
(gdb) bt
#0 _Unwind_GetGR (index=65, context=0x3fffb7639e40) at
/develop/build/toolchain/src/gcc-4.9.3/libgcc/unwind-dw2.c:244
#1 frob_update_context (fs=0x3fffb7638ea0, context=0x3fffb7639e40) at
./md-unwind-support.h:335
#2 uw_update_context_1 (context=context@entry=0x3fffb7639e40,
fs=fs@entry=0x3fffb7638ea0) at
/develop/build/toolchain/src/gcc-4.9.3/libgcc/unwind-dw2.c:1494
#3 0x00003fffb6e249f0 in uw_init_context_1
(context=context@entry=0x3fffb7639e40,
outer_cfa=outer_cfa@entry=0x3fffb763a4f0,
outer_ra=0x3fffb7c92e04 <._Unwind_ForcedUnwind+164>) at
/develop/build/toolchain/src/gcc-4.9.3/libgcc/unwind-dw2.c:1587
#4 0x00003fffb6e25230 in _Unwind_ForcedUnwind (exc=0x3fffb763b600,
stop=@0x3fffb7ca9270: 0x3fffb7c8f8f0 <.unwind_stop>,
stop_argument=0x3fffb763a7e0)
at /develop/build/toolchain/src/gcc-4.9.3/libgcc/unwind.inc:201
#5 0x00003fffb7c92e04 in ._Unwind_ForcedUnwind () from /lib/libpthread.so.0
#6 0x00003fffb7c8fb08 in .__pthread_unwind () from /lib/libpthread.so.0
#7 0x00003fffb7c84e1c in .pthread_exit () from /lib/libpthread.so.0
#8 0x00003fffb7e78044 in PyThread_exit_thread () at
Python/thread_pthread.h:266
#9 0x00003fffb7e7e888 in t_bootstrap (boot_raw=0x10115740) at
./Modules/_threadmodule.c:1023
#10 0x00003fffb7c83af0 in .start_thread () from /lib/libpthread.so.0
#11 0x00003fffb7ad4024 in .__clone () from /lib/libc.so.6
(gdb) info registers
r0 0x570 1392
r1 0x3fffb76387f0 70367525963760
r2 0x3fffb6e43030 70367517618224
r3 0x3fffb7638860 70367525963872
r4 0x0 0
r5 0x3fffb6e25230 70367517495856
r6 0x3fffb6e3b770 70367517587312
r7 0x7fc4f378 2143613816
r8 0x8 8
r9 0x4000000000000000 4611686018427387904
r10 0x0 0
r11 0x3fffb763a3b0 70367525970864
r12 0x3fffb7639e40 70367525969472
r13 0x3fffb76428f0 70367526004976
r14 0x800000000000000 576460752303423488
r15 0x3fffb78fce60 70367528865376
r16 0x3fffb6e3c000 70367517589504
r17 0x3fffb763b250 70367525974608
r18 0x800000 8388608
r19 0x3fffb7ca8020 70367532711968
r20 0x10115740 269571904
r21 0x3fffffffeaf8 70368744172280
r22 0x3fffb763a4f0 70367525971184
r23 0x3fffb7639e40 70367525969472
r24 0x3fffb7638860 70367525963872
r25 0x3fffb763a3aa 70367525970858
r26 0x3fffb763a2d0 70367525970640
r27 0x92 146
r28 0x3fffb76397c0 70367525967808
r29 0x3fffb7638ea0 70367525965472
r30 0x0 0
r31 0x1 1
pc 0x3fffb6e23a24 0x3fffb6e23a24 <uw_update_context_1+1012>
msr 0x8002d000 2147667968
cr 0x44424422 1145193506
lr 0x3fffb6e23680 0x3fffb6e23680 <uw_update_context_1+80>
ctr 0x3fffb6e237d0 70367517489104
xer 0x0 0
orig_r3 0x3fffb6e3b804 70367517587460
trap 0x300 768
(gdb)
More information about the Gcc-bugs
mailing list