Hello.

Installed rrdtool-dbg, and run gdb again just on rrdcached:

# gdb --args /usr/bin/rrdcached -l unix:/var/run/rrdcached.sock -j 
/var/lib/rrdcached/journal/ -F -b /var/lib/rrdcached/db/ -B -p 
/var/run/rrdcached.pid -g
GNU gdb (GDB) 7.4-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "alpha-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/rrdcached...Reading symbols from 
/usr/lib/debug/usr/bin/rrdcached...done.
done.
(gdb) r
Starting program: /usr/bin/rrdcached -l unix:/var/run/rrdcached.sock -j 
/var/lib/rrdcached/journal/ -F -b /var/lib/rrdcached/db/ -B -p 
/var/run/rrdcached.pid -g
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/alpha-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
strlen () at ../ports/sysdeps/alpha/strlen.S:45
45      ../ports/sysdeps/alpha/strlen.S: Nie ma takiego pliku ani katalogu.
(gdb) bt full
#0  strlen () at ../ports/sysdeps/alpha/strlen.S:45
No locals.
#1  0x000002000083dda0 in *__GI___strdup (s=0x0) at strdup.c:42
        len = <optimized out>
#2  0x0000000120004534 in read_options (argc=<optimized out>, argv=0x11ffe79f8) 
at rrd_daemon.c:3094
        journal_dir_actual = 
"/var/lib/rrdcached\000\000\000\002\000\000\000\000\000\000\000\000\000\000\350\310\002\000\000\002\000\000\320\315\002\000\000\002\000\000\270\322\002\000\000\002\000\000x\243\002\000\000\002\000\000\210b\002\000\000\002\000\000X\235\002\000\000\002",
 '\000' <repeats 50 times>"\213, ", '\000' <repeats 15 times>, 
"N\000\000\000\000\000\000\000\001", '\000' <repeats 23 times>, 
"\023\000\000\000\000\000\000\000\bR\003\000\000\002\000\000\366^h\000\000\002\000\000\060\a\001\000\000\002\000\000\000\000\000\000\000\000\000\000\230\347\000\000\000\002\000\000\350\240>\000\000\002\000\000\000\000\000\000\000\000\000\000\a\000\000\000\000\000\000\000X\350\000\000\000\002\000\000H\271\002\000\000\002\000\000H\000\000\000\000\000\000\000\350z\002\000\000"...
        dir = <optimized out>
        option = 106
        status = 0
#3  0x0000000120002c64 in main (argc=0, argv=0x11ffe6690) at rrd_daemon.c:3175
        status = <optimized out>
(gdb) q


I can compile rrdtool without optimizations if needed.



-- 
Witold Baryluk



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to