Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2024 08:42:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 279875] sockstat: segmentation fault
Message-ID:  <bug-279875-7501-mOeBgWliXF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279875-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279875-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279875

--- 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=20
[Detaching after fork from child process 85890]
USER     COMMAND    PID   FD  PROTO  LOCAL ADDRESS         FOREIGN ADDRESS=
=20=20=20=20=20=20
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=3D<optimized out>, elm=3D<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=3D<optimized out>, elm=3D<optimized out>) at
/kits/src/usr.bin/sockstat/sockstat.c:181
#1  displaysock (s=3Ds@entry=3D0x80184b440, pos=3D<optimized out>, pos@entr=
y=3D30) 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=3D<optimized out>, argv=3D<optimized o=
ut>) at
/kits/src/usr.bin/sockstat/sockstat.c:1577
(gdb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279875-7501-mOeBgWliXF>