[Bug 279875] sockstat: segmentation fault
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Jul 2024 08:42:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279875 --- Comment #3 from John Marshall <john@jmarshall.id.au> --- (In reply to Konstantin Belousov from comment #2) Thank you. - Re-built and installed sockstat as per your instruction. - Built and installed devel/gdb rwsrv08# gdb sockstat GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD] ... Reading symbols from sockstat... Reading symbols from /build/usr/lib/debug//usr/bin/sockstat.debug... (gdb) r Starting program: /usr/bin/sockstat [Detaching after fork from child process 85890] USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sockstat 85895 6 stream -> [85889 8] root sockstat 85894 6 stream -> [85889 7] ... root syslogd 2948 9 dgram /var/run/logpriv root gssd 2810 3 stream /var/run/gssd.sock Program received signal SIGSEGV, Segmentation fault. Address not mapped to object. files_t_RB_FIND (head=<optimized out>, elm=<optimized out>) at /kits/src/usr.bin/sockstat/sockstat.c:181 181 RB_GENERATE_STATIC(files_t, file, file_tree, file_compare); (gdb) bt #0 files_t_RB_FIND (head=<optimized out>, elm=<optimized out>) at /kits/src/usr.bin/sockstat/sockstat.c:181 #1 displaysock (s=s@entry=0x80184b440, pos=<optimized out>, pos@entry=30) at /kits/src/usr.bin/sockstat/sockstat.c:1165 #2 0x000000000102671f in display () at /kits/src/usr.bin/sockstat/sockstat.c:1345 #3 0x0000000001025c07 in main (argc=<optimized out>, argv=<optimized out>) at /kits/src/usr.bin/sockstat/sockstat.c:1577 (gdb) -- You are receiving this mail because: You are the assignee for the bug.