pstat -T segfaults -- debugging help?

walt wa1ter at myrealbox.com
Sun Feb 6 08:53:07 PST 2005


walt wrote:

I tried 'make DEBUG_FLAGS=-g' which did indeed add the -g flag to the
compiler flags, but the finished executable still has no symbols.
Hm.  The 'make install' was re-installing the excutable from the 'world'
object directory instead of the 'usr.sbin' object diretory.
Anyway, here's the backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x2807d16b in kvm_nlist () from /usr/lib/libkvm.so.2
(gdb) bt
#0  0x2807d16b in kvm_nlist () from /usr/lib/libkvm.so.2
#1  0x28075511 in kcore_get_generic () from /usr/lib/libkcore.so.1
#2  0x2807534d in kcore_get_maxfiles () from /usr/lib/libkcore.so.1
#3  0x0804a3bd in filemode () at /usr/src/usr.sbin/pstat/pstat.c:885
#4  0x08048fb0 in main (argc=2, argv=0xbfbffcc4) at 
/usr/src/usr.sbin/pstat/pstat.c:296





More information about the Bugs mailing list