This is, in some ways, a continuation of issue #12, which resolved segfaults for remote consoles, but this is an issue with the foreground console. Predictably, it's due to pthread_cancel, which is a priority for phase out:
No segfault with valgrind.
Thread 1 (Thread 0x7f4f33fff700 (LWP 1003817) (Exiting)):
#0 0x00007f4f3829a790 in () at /lib/x86_64-linux-gnu/libgcc_s.so.1
#1 0x00007f4f3829b842 in () at /lib/x86_64-linux-gnu/libgcc_s.so.1
#2 0x00007f4f3829bf4e in _Unwind_ForcedUnwind () at /lib/x86_64-linux-gnu/libgcc_s.so.1
#3 0x00007f4f3bac2c30 in __GI___pthread_unwind (buf=<optimized out>) at unwind.c:121
ibuf = <optimized out>
self = <optimized out>
#4 0x00007f4f3bab7729 in __do_cancel () at ./pthreadP.h:310
self = <optimized out>
newval = <optimized out>
curval = <optimized out>
self = <optimized out>
oldval = <optimized out>
#5 sigcancel_handler (sig=32, si=0x7f4f33ffe430, ctx=<optimized out>) at nptl-init.c:177
newval = <optimized out>
curval = <optimized out>
self = <optimized out>
oldval = <optimized out>
#6 sigcancel_handler (sig=<optimized out>, si=0x7f4f33ffe430, ctx=<optimized out>) at nptl-init.c:142
#7 0x00007f4f3bac4140 in <signal handler called> () at /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007f4f3b9cc96f in __GI___poll (fds=0x7f4f33ffea08, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
resultvar = 18446744073709551612
sc_cancel_oldtype = 0
#9 0x00007f4f38ef49d5 in ()
#10 0x0000000000000000 in ()
This is, in some ways, a continuation of issue #12, which resolved segfaults for remote consoles, but this is an issue with the foreground console. Predictably, it's due to
pthread_cancel
, which is a priority for phase out:No segfault with valgrind.