Follow-up Comment #5, bug #58132 (group screen): screen-5.0.0_2 (term screen-256color as user, and as root no screenrc file.) st-0.9.2_1 (disabled all patches, native code compiled.)
Running into this bug as well, the core dump seems to be generated by the (GNU) screen program during reattaching to a detached session. (eg. debug symbols are readable/printable with "gdb /usr/bin/screen ./core.15528" rather than specifying the st program) Oddly, I have two dissimilar core dump files, seconds apart posted below, however, seems very similar screen.c 1107 line number locations. But on the flip, sometimes I get an immediate core dump upon "screen -RD" while most times I get an endless hard hang when executing "screen -RD". Setting $TERM to xterm-256color from within st terminal works around this reattach bug, however with an incompatible terminfo file when using VIM (eg. tput clear). And, likely using default 16 color also averts this hard hang and/or segfault bug. (eg. $TERM=st) Bottom two core dump backtraces were executed using no $HOME/.screenrc as root. # gdb /usr/bin/screen ./core.15528 ...snip... Reading symbols from /usr/bin/screen... Reading symbols from /usr/lib/debug/usr/bin/screen-5.0.0... [New LWP 15528] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Core was generated by `/usr/bin/screen -RD'. Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 warning: 44 ./nptl/pthread_kill.c: No such file or directory (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 #1 0x00007f11a9ff924f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:89 #2 0x00007f11a9fa9fe2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007f11a9f92efc in __GI_abort () at ./stdlib/abort.c:73 #4 0x0000559698158a35 in CoreDump (sigsig=<optimized out>) at ./screen.c:1182 #5 <signal handler called> #6 0x00007f11aa1a89f9 in _nc_find_type_entry () from /usr/lib/libncursesw.so.6 #7 0x00007f11aa1acbb1 in tgetflag_sp () from /usr/lib/libncursesw.so.6 #8 0x00005596981a2528 in e_tgetflag (cap=0x5596981ae7ab "xn") at ./termcap.c:1178 #9 InitTermcap (width=0, height=0) at ./termcap.c:115 #10 0x000055969819d301 in FinishAttach (m=m@entry=0x5596981d0fc0 <m>) at ./socket.c:981 #11 0x000055969819df01 in ReceiveMsg () at ./socket.c:841 #12 0x000055969819a456 in sched () at ./sched.c:200 #13 0x000055969815a9ba in main (argc=0, argv=<optimized out>) at ./screen.c:1107 # gdb /usr/bin/screen ./core.15537 ... Reading symbols from /usr/bin/screen... Reading symbols from /usr/lib/debug/usr/bin/screen-5.0.0... [New LWP 15537] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Core was generated by `/usr/bin/screen -RD'. Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 warning: 44 ./nptl/pthread_kill.c: No such file or directory (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 #1 0x00007f05dede024f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:89 #2 0x00007f05ded90fe2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007f05ded79efc in __GI_abort () at ./stdlib/abort.c:73 #4 0x000055bde4353a35 in CoreDump (sigsig=<optimized out>) at ./screen.c:1182 #5 <signal handler called> #6 __strcmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:994 #7 0x000055bde4358a27 in FindUserPtr (name=name@entry=0x55bde43ccfc8 <m+4104> "root") at ./acls.c:122 #8 0x000055bde4367667 in MakeDisplay (uname=uname@entry=0x55bde43ccfc8 <m+4104> "root", utty=utty@entry=0x55bde43cbfc8 <m+8> "/dev/pts/14", term=term@entry=0x55bde43cd0f8 <m+4408> "st-256color", fd=fd@entry=7, pid=pid@entry=15545, Mode=Mode@entry=0x7ffc0b9fb5e0) at ./display.c:176 #9 0x000055bde4396bb0 in CreateTempDisplay (recvfd=recvfd@entry=7, win=win@entry=0x0, m=<optimized out>) at ./socket.c:671 #10 0x000055bde4398b59 in ReceiveMsg () at ./socket.c:836 #11 0x000055bde4395456 in sched () at ./sched.c:200 #12 0x000055bde43559ba in main (argc=0, argv=<optimized out>) at ./screen.c:1107 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58132> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature