root@fledgling:/elfv2 # /opt/elfv2/bin/gdb -c sh.core -e bin/sh GNU gdb (GDB) 8.2.50.20181117-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-unknown-freebsd13.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". [New LWP 102563] Core was generated by `/bin/sh'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000810311070 in __pthread_cleanup_push_imp_int (p0=0x81030c960 <__stdio_cancel_cleanup>, p1=0x0, p2=0xfffffbfffe1f0) at /zroot/POWER9BSD/lib/libc/gen/_pthread_stubs.c:285 285 /zroot/POWER9BSD/lib/libc/gen/_pthread_stubs.c: No such file or directory. (gdb) bt #0 0x0000000810311070 in __pthread_cleanup_push_imp_int (p0=0x81030c960 <__stdio_cancel_cleanup>, p1=0x0, p2=0xfffffbfffe1f0) at /zroot/POWER9BSD/lib/libc/gen/_pthread_stubs.c:285 #1 0x00000008102e78d4 in fputs (s=, fp=0x81046ab28) at /zroot/POWER9BSD/lib/libc/stdio/fputs.c:64 #2 0x00000008100da964 in terminal__putc (el=, c=) at /zroot/POWER9BSD/lib/libedit/terminal.c:1268 #3 terminal_overwrite (el=0x810512000, cp=, n=1) at /zroot/POWER9BSD/lib/libedit/terminal.c:678 #4 0x00000008100cd71c in re_update_line (el=, old=0x81053d000 L"", new=, i=) at /zroot/POWER9BSD/lib/libedit/refresh.c:802 #5 re_refresh (el=0x810512000) at /zroot/POWER9BSD/lib/libedit/refresh.c:304 #6 0x00000008100cbfb8 in read_prepare (el=0x810512000) at /zroot/POWER9BSD/lib/libedit/read.c:468 #7 0x00000008100cf5fc in el_wgets (el=0x810512000, nread=) at /zroot/POWER9BSD/lib/libedit/read.c:546 #8 0x00000008100cf338 in el_gets (el=0x810512000, nread=0x10060c48) at /zroot/POWER9BSD/lib/libedit/eln.c:78 #9 0x000000001001e298 in ?? () #10 0x000000001002cdfc in ?? () #11 0x0000000010029180 in ?? () #12 0x0000000010028f08 in ?? () #13 0x0000000010023dd4 in ?? () #14 0x0000000010023bd0 in ?? () #15 0x0000000010010130 in ?? () #16 0x00000008100423a0 in _rtld_start () at /usr/src/libexec/rtld-elf/powerpc64/rtld_start.S:104 Backtrace stopped: frame did not save the PC (gdb) info registers r0 0x8102e78d4 34631219412 r1 0xfffffbfffe180 4503598553620864 r2 0x8103378f4 34631547124 r3 0x81030c960 34631371104 r4 0x0 0 r5 0xfffffbfffe1f0 4503598553620976 r6 0x0 0 r7 0xfffffbfffe27a 4503598553621114 r8 0x0 0 r9 0x0 0 r10 0x2 2 r11 0x8100451c0 34628456896 r12 0x810306774 34631346036 r13 0x81008b020 34628743200 r14 0x81053d000 34633666560 r15 0x2 2 r16 0x1 1 r17 0x81057f2fc 34633937660 r18 0x81057f304 34633937668 r19 0x81057f300 34633937664 r20 0x81057f304 34633937668 r21 0x81053d000 34633666560 r22 0x81053d000 34633666560 r23 0x0 0 r24 0x1 1 r25 0x0 0 r26 0x81057f300 34633937664 r27 0x810459b10 34632735504 r28 0xfffffbfffe279 4503598553621113 r29 0x810459b10 34632735504 r30 0x81046ab28 34632805160 r31 0xfffffbfffe180 4503598553620864 pc 0x810311070 0x810311070 <__pthread_cleanup_push_imp_int+40> msr cr 0x244448a4 608454820 lr 0x8102e78d4 0x8102e78d4 ctr 0x6 6 xer 0x0 0 fpscr 0x0 0 vscr vrsave (gdb)