On Thu, 23 Jul 2009 16:38:12 +0200, Hendrik Baecker
wrote:
>=20
> Could you please run a short session with gdb?
Excecuting as you suggested:
gdb --args /opt/nagios/bin/ndo2db -c /opt/nagios/etc/ndo2db.cfg
ussrvud-mon01:/opt/nagios/var # gdb --args /opt/nagios/bin/ndo2db -c
/opt/nagios/etc/ndo2db.cfg
GNU gdb 6.6
Copyright (C) 2006 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 detail=
s.
This GDB was configured as "x86_64-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) bt
No stack.
(gdb) bt
No stack.
(gdb)
So started it manually, looked up the pid and have gdb connect to the pid
and I got this info:
GNU gdb 6.6
Copyright (C) 2006 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 detail=
s.
This GDB was configured as "x86_64-suse-linux"...
qsdf: No such file or directory.
Attaching to process 3092
Reading symbols from /opt/nagios/bin/ndo2db-3x...done.
Using host libthread_db library "/lib64/libthread_db.so.1".
Reading symbols from /lib64/libnsl.so.1...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /usr/lib64/libmysqlclient.so.15...done.
Loaded symbols for /usr/lib64/libmysqlclient.so.15
Reading symbols from /lib64/libz.so.1...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/libcrypt.so.1...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /lib64/libm.so.6...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00002aaee36150b0 in __accept_nocancel () from /lib64/libc.so.6
(gdb) bt
#0 0x00002aaee36150b0 in __accept_nocancel () from /lib64/libc.so.6
#1 0x000000000040463c in ndo2db_wait_for_connections () at ndo2db.c:810
#2 0x0000000000404dcf in main (argc=3D,
argv=3D0x7fffc7d7cf18) at ndo2db.c:167
(gdb) bt
#0 0x00002aaee36150b0 in __accept_nocancel () from /lib64/libc.so.6
#1 0x000000000040463c in ndo2db_wait_for_connections () at ndo2db.c:810
#2 0x0000000000404dcf in main (argc=3D,
argv=3D0x7fffc7d7cf18) at ndo2db.c:167
(gdb) bt
#0 0x00002aaee36150b0 in __accept_nocancel () from /lib64/libc.so.6
#1 0x000000000040463c in ndo2db_wait_for_connections () at ndo2db.c:810
#2 0x0000000000404dcf in main (argc=3D,
argv=3D0x7fffc7d7cf18) at ndo2db.c:167
(gdb)
Hope this helps,
--=20
Jelle Smet
http://www.smetj.net
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]