[vz-users] vzlogger crash

Paul Muster paul at muster.dyndns.info
Wed Dec 26 18:05:56 CET 2012


On 26.12.2012 17:24, Thorben Thuermer wrote:

> waehre trotzdem noch dankbar fuer den vollstaendigen backtrace,
> wuesste gerne was da kaputt ist.

Hm, mal schauen.

Habe nochmal komplett aufgeräumt und in einem leeren Verzeichnis neu
angefangen.

$ git clone https://github.com/volkszaehler/vzlogger.git

$ ./configure --disable-sml --enable-debug

$ make

Und nun - nach vielen Versuchen mit checkinstall, wo immer die
debug-symbols auf der Strecke blieben - das binary auf den Server kopiert.

# gdb ./vzlogger
GNU gdb (GDB) 7.4.1-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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/vzlogger...done.
(gdb) run -c /usr/local/etc/vzlogger.conf
Starting program: /root/vzlogger -c /usr/local/etc/vzlogger.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/i386-linux-gnu/i686/nosegneg/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xb7ece5ab in ?? () from /lib/i386-linux-gnu/i686/nosegneg/libc.so.6
(gdb) bt full
#0  0xb7ece5ab in ?? () from /lib/i386-linux-gnu/i686/nosegneg/libc.so.6
No symbol table info available.
#1  0x0804d0af in meter_lookup_protocol (name=0x806c7f8 "sml",
protocol=protocol at entry=0x806bfc4) at meter.c:102
        it = <optimized out>
#2  0x0804d159 in meter_init (mtr=mtr at entry=0x806bfb8, options=...) at
meter.c:60
        instances = 1
        protocol_str = 0x806c7f8 "sml"
        details = 0x806c7f8
#3  0x0804bc1f in config_parse_meter (jso=0x806c630) at config.c:168
        json_channels = <optimized out>
        options = <optimized out>
        key = <optimized out>
        value = <optimized out>
        mapping = 0x806bfb8
        json_channel = 0x806bfa8
#4  0x0804c34a in config_parse (filename=0x806bc40
"/usr/local/etc/vzlogger.conf", mappings=mappings at entry=0x8053600,
    options=options at entry=0x8053620) at config.c:115
        mapping = <optimized out>
        i = <optimized out>
        len = 5
        type = <optimized out>
        entry = 0x806c268
        json_cfg = 0x806c1a8
        json_tok = <optimized out>
        buf = "]}\n\000\000entifier\" : \"sensor0/power\" /* or
\"sensor2/consumption\" e.g. */\n\000 inotify
*/\n\000*/\n\000entifiers/OBIS ids
*/\n\000\377\277\340\242}\267\000\300\220\267\260\325\370\267", '\000'
<repeats 12 times>,
"\020\347\377\001\000\000\000\000h\377\230\267\324\347\377\277\346\375\376\267\064\366\377\277\000\000\000\000\000\000\000\001\000\000\000\000W\366\377\277P\366\377\277L\366\377\277\021p\377\267\000\000\000\000\033\000\000\000\000\000\000\000W\366\377\277\364\357\377\267@\364\376\267\364\357\377\267p\347\377\277\002\000\000\000T\347\377\277\065q\377\267\b\000\000\000\310\062z\267\b\000\000\000d\366\377\277\256\347\376\267\324\062z\267\310\062z\267\b\000\000\000\000\000\000\000\224\347\377\277\260\325\370\267",
'\000' <repeats 20 times>"\260"...
        line = <optimized out>
        file = <optimized out>
        key = <optimized out>
        value = 0x806c588
#5  0x0804a56e in main (argc=3, argv=0xbffff804) at vzlogger.c:342
        action = {__sigaction_handler = {sa_handler = 0x804ac00 <quit>,
sa_sigaction = 0x804ac00 <quit>}, sa_mask = {__val = {
              0 <repeats 32 times>}}, sa_flags = 0, sa_restorer =
0xbffff758}
        __it_372 = <optimized out>
        httpd_handle = <optimized out>
        __it_415 = <optimized out>
(gdb)


HTH & viele Grüße

Paul



More information about the volkszaehler-users mailing list