On 8/22/06, Gert Burger <[EMAIL PROTECTED]> wrote:
> Hi
>
> Seems like my pmacctd crashes everytime it writes to my mysql4.1 db.
> The main prog keeps running but a core dump is created with every write
> to the db.
>
> I tried configuring with --enable-debug, but gdb still gives nothing
> when doing a backtrace(No symbols).
>
> What can I try next to get more debug info?
What command do you use to launch GDB? What OS are you running? Did
you build the mysql libs with symbols?
rubber# gdb -c sfacctd.core `which sfacctd`
GNU gdb 6.2.1
Copyright 2004 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-dragonfly"...
Core was generated by `sfacctd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libpcap.so.3...done.
Loaded symbols for /usr/lib/libpcap.so.3
Reading symbols from /usr/local/lib/libpq.so.5...done.
Loaded symbols for /usr/local/lib/libpq.so.5
Reading symbols from /usr/lib/libm.so.3...done.
Loaded symbols for /usr/lib/libm.so.3
Reading symbols from /usr/lib/libz.so.3...done.
Loaded symbols for /usr/lib/libz.so.3
Reading symbols from /usr/lib/libc.so.6...done.
Loaded symbols for /usr/lib/libc.so.6
Reading symbols from /usr/lib/libssl.so.4...done.
Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /usr/lib/libcrypto.so.4...done.
Loaded symbols for /usr/lib/libcrypto.so.4
Reading symbols from /usr/lib/libcrypt.so.3...done.
Loaded symbols for /usr/lib/libcrypt.so.3
Reading symbols from /usr/libexec/ld-elf.so.2...done.
Loaded symbols for /usr/libexec/ld-elf.so.2
#0 0x2818b8cd in strdup () from /usr/lib/libc.so.6
(gdb) bt
#0 0x2818b8cd in strdup () from /usr/lib/libc.so.6
#1 0x280f6014 in conninfo_parse (conninfo=0x0, errorMessage=0x29604310)
at fe-connect.c:2522
#2 0x280f395b in connectOptions1 (conn=0x29604000, conninfo=0x0)
at fe-connect.c:360
#3 0x280f38f2 in PQconnectStart (conninfo=0x0) at fe-connect.c:319
#4 0x280f38b0 in PQconnectdb (conninfo=0x0) at fe-connect.c:277
#5 0x0806cef5 in PG_DB_Connect (db=0x80add98, host=0x0) at pgsql_plugin.c:608
#6 0x0806e5e0 in sql_cache_insert (data=0x28d7e768, idata=0xbfbcd780)
at sql_common.c:463
#7 0x0806ae5a in pgsql_plugin (pipe_fd=5, cfgptr=0x28393928, ptr=0x80a8b00)
at pgsql_plugin.c:251
#8 0x0805701f in load_plugins (req=0xbfbddee3) at plugin_hooks.c:162
#9 0x08051eb9 in main (argc=3, argv=0xbfbffab4, envp=0xbfbffac4)
at sfacctd.c:463
(gdb) quit
rubber# uname -a
DragonFly rubber.nsindus.net 1.7.0-DEVELOPMENT DragonFly
1.7.0-DEVELOPMENT #0: Sun Aug 13 03:11:51 CEST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386
regards,
aaron.glenn
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists