DragonFly BSD
DragonFly bugs List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pstat -T segfaults -- debugging help?


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Sun, 06 Feb 2005 08:53:07 -0800

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




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]