Well, I just got the same problem in another machine. It runs FreeBSD 4.9
and this time I attached to the running process... Here is what I got...
If you need something more, send email.
adsl:/home/yurtesen#gdb /usr/local/squid/sbin/squid 121
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read
called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 933 in fill_symbuf
/usr/home/yurtesen/121: No such file or directory.
Attaching to program: /usr/local/squid/sbin/squid, process 121
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
memPoolInUseCount (pool=0x81e3400) at MemPool.c:303
303 assert(pool);
(gdb) where
#0 memPoolInUseCount (pool=0x81e3400) at MemPool.c:303
#1 0x8082d62 in memInUse (type=MEM_IPCACHE_ENTRY) at mem.c:282
#2 0x807f7f5 in ipcache_purgelru (voidnotused=0x0) at ipcache.c:156
#3 0x8067785 in eventRun () at event.c:147
#4 0x8081eed in main (argc=2, argv=0xbfbffddc) at main.c:739
(gdb) backtrace
#0 memPoolInUseCount (pool=0x81e3400) at MemPool.c:303
#1 0x8082d62 in memInUse (type=MEM_IPCACHE_ENTRY) at mem.c:282
#2 0x807f7f5 in ipcache_purgelru (voidnotused=0x0) at ipcache.c:156
#3 0x8067785 in eventRun () at event.c:147
#4 0x8081eed in main (argc=2, argv=0xbfbffddc) at main.c:739
(gdb)
Here is top output for squid
last pid: 143; load averages: 0.45, 0.42, 0.37
up 0+00:52:32 13:43:55
13 processes: 3 running, 10 sleeping
CPU states: 100% user, 0.0% nice, 0.0% system, 0.0% interrupt, 0.0%
idle
Mem: 26M Active, 25M Inact, 22M Wired, 16K Cache, 22M Buf, 49M Free
Swap: 256M Total, 256M Free
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
121 nobody 42 0 23524K 22968K RUN 10:46 74.85% 74.85% squid
Evren
On Tue, 10 Feb 2004, Henrik Nordstrom wrote:
> On Tue, 10 Feb 2004, Evren Yurtesen wrote:
>
> > Yes, my squid has debug symbols. I checked that from the FAQ already.
>
> Can GDB understand the debug information?
>
> gdb squid
>
> list main
>
> Regards
> Henrik
>
>
Received on Tue Feb 10 2004 - 04:44:40 MST
This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST