ns1:/usr/src/# gdb poller
GNU gdb 6.4.90-debian
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 details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /usr/src//poller
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1212692800 (LWP 1667)]
Checking licence... This may take some seconds...
Licence check : Ok.
Initialisation du client MySQL...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212692800 (LWP 1667)]
0xb7c77eda in strcmp () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7c77eda in strcmp () from /lib/tls/i686/cmov/libc.so.6
#1 0xb7cea072 in __nss_database_lookup () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7ceb2eb in __nss_hostname_digits_dots ()
from /lib/tls/i686/cmov/libc.so.6
#3 0xb7cef95e in getservbyname_r () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7cef74e in getservbyname () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7d84752 in mysql_server_init () from /usr/lib/libmysqlclient.so.15
#6 0xb7daa12e in mysql_init () from /usr/lib/libmysqlclient.so.15
#7 0x0804904c in main () at poller.c:42
(gdb) frame 0
#0 0xb7c77eda in strcmp () from /lib/tls/i686/cmov/libc.so.6
(gdb) frame 1
#1 0xb7cea072 in __nss_database_lookup () from /lib/tls/i686/cmov/libc.so.6
(gdb) frame 2
#2 0xb7ceb2eb in __nss_hostname_digits_dots ()
from /lib/tls/i686/cmov/libc.so.6
(gdb) frame 3
#3 0xb7cef95e in getservbyname_r () from /lib/tls/i686/cmov/libc.so.6
(gdb) frame 4
#4 0xb7cef74e in getservbyname () from /lib/tls/i686/cmov/libc.so.6
(gdb) frame 5
#5 0xb7d84752 in mysql_server_init () from /usr/lib/libmysqlclient.so.15
(gdb) frame 6
#6 0xb7daa12e in mysql_init () from /usr/lib/libmysqlclient.so.15
(gdb) frame 7
#7 0x0804904c in main () at poller.c:42
42 MySQL_Link = mysql_init(NULL);
Partager