[vz-dev] vzlogger 0.3.3 stürzt nach 5 - 10 min ab

Wilhelm Eßt wilhelm.esst at tsv-gersthofen.de
Sat Mar 3 11:53:42 CET 2012


Am Samstag, 3. März 2012, 10:13:26 schrieb Thorben Thuermer:
> magst du's nochmal einen debug-build von vzlogger (./configure
> --enable-debug) mit gdb+efence probieren, und ein backtrace vom crash
> posten?
> (apt-get install electric-fence ->
> /usr/share/doc/electric-fence/README.gdb) ($ gdb --args ./vzlogger -lala,
> (gdb) efence, (gdb) run, ... (gdb) bt full ) damit sollten wir den code in
> vzlogger finden, der den speicher zerschiesst.

---> snip
[Mar 03 11:39:51][ch1]  CURL: Received 17 bytes
[Mar 03 11:39:51][ch1]  CURL: Connection #0 to host (nil) left intact
[Mar 03 11:39:51][ch1]  Request succeeded with code: 200
error: unknown type in sml_value_to_double
error: unknown type in sml_value_to_double
error: unknown type in sml_value_to_double
[Mar 03 11:39:56][mtr0] Got 8 new readings from meter:
[Mar 03 11:39:56][mtr0] Reading: id=129-129:199.130.3*255 value=0.00 
ts=1330771196.234
[Mar 03 11:39:56][mtr0] Reading: id=1-0:0.0.9*255 value=0.00 ts=1330771196.234
[Mar 03 11:39:56][mtr0] Reading: id=1-0:1.8.0*255 value=364099.30 
ts=1330771196.234
[Mar 03 11:39:56][mtr0] Reading: id=1-0:1.8.1*255 value=364099.30 
ts=1330771196.234
[Mar 03 11:39:56][mtr0] Reading: id=1-0:1.8.2*255 value=0.00 ts=1330771196.234
[Mar 03 11:39:56][mtr0] Reading: id=1-0:15.7.0*255 value=337.10 
ts=1330771196.234
[Mar 03 11:39:56][mtr0] Reading: id=129-129:199.130.5*255 value=0.00 
ts=1330771196.234
[Mar 03 11:39:56][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Mar 03 11:39:56][mtr0] Updating interval to 5
[Mar 03 11:39:56][ch0]  Adding reading to queue (value=364099.30 
ts=1330771196.234)
[Mar 03 11:39:56][ch0]  JSON request body: [ [ 1330771196233.707031, 
364099.300000 ] ]
[Mar 03 11:39:56][ch0]  CURL: Re-using existing connection! (#0) with host 
(nil)
[Mar 03 11:39:56][ch0]  CURL: Connected to (nil) (127.0.0.1) port 80 (#0)
[Mar 03 11:39:56][ch0]  Buffer dump (size=1 keep=0): {364099.30!}
[Mar 03 11:39:56][ch1]  Adding reading to queue (value=337.10 
ts=1330771196.234)
[Mar 03 11:39:56][ch1]  JSON request body: [ [ 1330771196233.711914, 
337.100000 ] ]
[Mar 03 11:39:56][ch1]  CURL: Re-using existing connection! (#0) with host 
(nil)
[Mar 03 11:39:56][ch1]  CURL: Connected to (nil) (127.0.0.1) port 80 (#0)
[Mar 03 11:39:56][ch0]  CURL: Sent 43 bytes.. 
[Mar 03 11:39:56][ch0]  CURL: upload completely sent off: 43 out of 43 bytes
[Mar 03 11:39:56][ch0]  CURL: additional stuff not fine transfer.c:1037: 0 0
[Mar 03 11:39:56][ch1]  CURL: Sent 40 bytes.. 
[Mar 03 11:39:56][ch1]  CURL: upload completely sent off: 40 out of 40 bytes
[Mar 03 11:39:56][ch1]  CURL: additional stuff not fine transfer.c:1037: 0 0
[Mar 03 11:39:56][ch1]  Buffer dump (size=1 keep=0): {337.10!}
[Mar 03 11:39:56][ch1]  CURL: HTTP 1.1 or later with persistent connection, 
pipelining supported
[Mar 03 11:39:56][ch1]  CURL: Received 17 bytes
[Mar 03 11:39:56][ch1]  CURL: Connection #0 to host (nil) left intact
[Mar 03 11:39:56][ch1]  Request succeeded with code: 200
[Mar 03 11:39:56][ch0]  CURL: HTTP 1.1 or later with persistent connection, 
pipelining supported
[Mar 03 11:39:56][ch0]  CURL: Received 17 bytes
[Mar 03 11:39:56][ch0]  CURL: Connection #0 to host (nil) left intact
[Mar 03 11:39:56][ch0]  Request succeeded with code: 200
*** longjmp causes uninitialized stack frame ***: /usr/local/bin/vzlogger 
terminated
======= Backtrace: =========
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__fortify_fail+0x50)[0xb7e76c90]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0xe4bfa)[0xb7e76bfa]
/usr/lib/i386-linux-gnu/libcurl.so.4(+0x9445)[0xb7f07445]
/usr/local/bin/vzlogger[0x804aff9]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7da8e46]
/usr/local/bin/vzlogger[0x804a5d1]
======= Memory map: ========
08048000-0805d000 r-xp 00000000 08:07 3124582    /usr/local/bin/vzlogger
0805d000-0805e000 rw-p 00014000 08:07 3124582    /usr/local/bin/vzlogger
b4673000-b4674000 rw-p 00000000 00:00 0 
b4674000-b4675000 ---p 00000000 00:00 0 
b4675000-b4676000 rw-p 00000000 00:00 0 
b4676000-b4677000 ---p 00000000 00:00 0 
b4677000-b4678000 rw-p 00000000 00:00 0 
b4678000-b4679000 ---p 00000000 00:00 0 
b4679000-b467a000 rw-p 00000000 00:00 0 
b467a000-b467b000 ---p 00000000 00:00 0 
b467b000-b467c000 rw-p 00000000 00:00 0 
b467c000-b467d000 ---p 00000000 00:00 0 
b467d000-b467e000 rw-p 00000000 00:00 0 
b467e000-b467f000 ---p 00000000 00:00 0 
b467f000-b4680000 rw-p 00000000 00:00 0 
b4680000-b4681000 ---p 00000000 00:00 0 
b4681000-b4682000 rw-p 00000000 00:00 0 
b4682000-b4683000 ---p 00000000 00:00 0 
b4683000-b4684000 rw-p 00000000 00:00 0 
b4684000-b4685000 ---p 00000000 00:00 0 
b4685000-b4686000 rw-p 00000000 00:00 0 
b4686000-b4687000 ---p 00000000 00:00 0 
b4687000-b4688000 rw-p 00000000 00:00 0 
b4688000-b4689000 ---p 00000000 00:00 0 
b4689000-b468a000 rw-p 00000000 00:00 0 
b468a000-b468b000 ---p 00000000 00:00 0 
b468b000-b468c000 rw-p 00000000 00:00 0 
b468c000-b468d000 ---p 00000000 00:00 0 
b468d000-b468e000 rw-p 00000000 00:00 0 
b468e000-b468f000 ---p 00000000 00:00 0 
b468f000-b4690000 rw-p 00000000 00:00 0 
b4690000-b4691000 ---p 00000000 00:00 0 
b4691000-b4692000 rw-p 00000000 00:00 0 
b4692000-b4693000 ---p 00000000 00:00 0 
b4693000-b4694000 rw-p 00000000 00:00 0 
b4694000-b4695000 ---p 00000000 00:00 0 
b4695000-b4696000 rw-p 00000000 00:00 0 
b4696000-b4697000 ---p 00000000 00:00 0 
b4697000-b4698000 rw-p 00000000 00:00 0 
b4698000-b4699000 ---p 00000000 00:00 0 
b4699000-b469a000 rw-p 00000000 00:00 0 
b469a000-b469b000 ---p 00000000 00:00 0 
b469b000-b469c000 rw-p 00000000 00:00 0 
b469c000-b469d000 ---p 00000000 00:00 0 
b469d000-b469e000 rw-p 00000000 00:00 0 
b469e000-b469f000 ---p 00000000 00:00 0 
b469f000-b46a0000 rw-p 00000000 00:00 0 
b46a0000-b46a1000 ---p 00000000 00:00 0 
b46a1000-b46a2000 rw-p 00000000 00:00 0 
b46a2000-b46a3000 ---p 00000000 00:00 0 
b46a3000-b46a4000 rw-p 00000000 00:00 0 
b46a4000-b46a5000 ---p 00000000 00:00 0 
b46a5000-b46a6000 ---p 00000000 00:00 0 
b46a6000-b46a7000 ---p 00000000 00:00 0 
b46a7000-b46a8000 ---p 00000000 00:00 0 
b46a8000-b46a9000 ---p 00000000 00:00 0 
b46a9000-b46aa000 ---p 00000000 00:00 0 
b46aa000-b46ab000 ---p 00000000 00:00 0 
b46ab000-b46ac000 ---p 00000000 00:00 0 
b46ac000-b46ad000 ---p 00000000 00:00 0 
b46ad000-b46ae000 ---p 00000000 00:00 0 
b46ae000-b46af000 ---p 00000000 00:00 0 
b46af000-b46b0000 ---p 00000000 00:00 0 
b46b0000-b46b1000 ---p 00000000 00:00 0 
b46b1000-b46b2000 rw-p 00000000 00:00 0 
b46b2000-b46b3000 ---p 00000000 00:00 0 
b46b3000-b46b4000 ---p 00000000 00:00 0 
b46b4000-b46b5000 ---p 00000000 00:00 0 
b46b5000-b46b6000 ---p 00000000 00:00 0 
b46b6000-b46b7000 ---p 00000000 00:00 0 
b46b7000-b46b8000 ---p 00000000 00:00 0 
b46b8000-b46b9000 ---p 00000000 00:00 0 
b46b9000-b46ba000 ---p 00000000 00:00 0 
b46ba000-b46bb000 ---p 00000000 00:00 0 
b46bb000-b46bc000 rw-p 00000000 00:00 0 
b46bc000-b46bd000 ---p 00000000 00:00 0 
b46bd000-b46be000 ---p 00000000 00:00 0 
b46be000-b46bf000 ---p 00000000 00:00 0 
b46bf000-b46c0000 ---p 00000000 00:00 0 
b46c0000-b46c1000 ---p 00000000 00:00 0 
b46c1000-b46c2000 ---p 00000000 00:00 0 
b46c2000-b46c3000 ---p 00000000 00:00 0 
b46c3000-b46c4000 ---p 00000000 00:00 0 
b46c4000-b46c5000 ---p 00000000 00:00 0 
b46c5000-b46c6000 ---p 00000000 00:00 0 
b46c6000-b46c7000 ---p 00000000 00:00 0 
b46c7000-b46c8000 ---p 00000000 00:00 0 
b46c8000-b46c9000 ---p 00000000 00:00 0 
b46c9000-b46ca000 ---p 00000000 00:00 0 
b46ca000-b46cb000 ---p 00000000 00:00 0 
b46cb000-b46cc000 ---p 00000000 00:00 0 
b46cc000-b46cd000 ---p 00000000 00:00 0 
b46cd000-b46ce000 ---p 00000000 00:00 0 
b46ce000-b46cf000 ---p 00000000 00:00 0 
b46cf000-b46d0000 ---p 00000000 00:00 0 
b46d0000-b46d1000 ---p 00000000 00:00 0 
b46d1000-b46d2000 ---p 00000000 00:00 0 
b46d2000-b46d3000 ---p 00000000 00:00 0 
b46d3000-b46d4000 ---p 00000000 00:00 0 
b46d4000-b46d5000 ---p 00000000 00:00 0 
b46d5000-b46d6000 ---p 00000000 00:00 0 
b46d6000-b46d7000 ---p 00000000 00:00 0 
b46d7000-b46d8000 ---p 00000000 00:00 0 
b46d8000-b46d9000 ---p 00000000 00:00 0 
b46d9000-b46da000 ---p 00000000 00:00 0 
b46da000-b46db000 ---p 00000000 00:00 0 
b46db000-b46dc000 ---p 00000000 00:00 0 
b46dc000-b46dd000 ---p 00000000 00:00 0 
b46dd000-b46de000 ---p 00000000 00:00 0 
b46de000-b46df000 ---p 00000000 00:00 0 
b46df000-b46e0000 ---p 00000000 00:00 0 
b46e0000-b46e1000 ---p 00000000 00:00 0 
b46e1000-b46e2000 ---p 00000000 00:00 0 
b46e2000-b46e3000 ---p 00000000 00:00 0 
b46e3000-b46e4000 ---p 00000000 00:00 0 
b46e4000-b46e5000 ---p 00000000 00:00 0 
b46e5000-b46e6000 ---p 00000000 00:00 0 
b46e6000-b46e7000 ---p 00000000 00:00 0 
b46e7000-b46e8000 ---p 00000000 00:00 0 
b46e8000-b46e9000 ---p 00000000 00:00 0 
b46e9000-b46ea000 ---p 00000000 00:00 0 
b46ea000-b46eb000 ---p 00000000 00:00 0 
b46eb000-b46ec000 ---p 00000000 00:00 0 
b46ec000-b46ed000 ---p 00000000 00:00 0 
b46ed000-b46ee000 ---p 00000000 00:00 0 
b46ee000-b46ef000 ---p 00000000 00:00 0 
b46ef000-b46f0000 ---p 00000000 00:00 0 
b46f0000-b46f1000 ---p 00000000 00:00 0 
b46f1000-b46f2000 ---p 00000000 00:00 0 
b46f2000-b46f3000 ---p 00000000 00:00 0 
b46f3000-b46f4000 ---p 00000000 00:00 0 
b46f4000-b46f5000 ---p 00000000 00:00 0 
b46f5000-b46f6000 ---p 00000000 00:00 0 
b46f6000-b46f7000 ---p 00000000 00:00 0 
b46f7000-b46f8000 ---p 00000000 00:00 0 
b46f8000-b46f9000 ---p 00000000 00:00 0 
b46f9000-b46fa000 ---p 00000000 00:00 0 
b46fa000-b46fb000 ---p 00000000 00:00 0 
b46fb000-b46fc000 ---p 00000000 00:00 0 
b46fc000-b46fd000 ---p 00000000 00:00 0 
b46fd000-b46fe000 ---p 00000000 00:00 0 
b46fe000-b46ff000 ---p 00000000 00:00 0 
b46ff000-b4700000 ---p 00000000 00:00 0 
b4700000-b4701000 ---p 00000000 00:00 0 
b4701000-b4702000 ---p 00000000 00:00 0 
b4702000-b4703000 ---p 00000000 00:00 0 
b4703000-b4704000 ---p 00000000 00:00 0 
b4704000-b4705000 ---p 00000000 00:00 0 
b4705000-b4706000 ---p 00000000 00:00 0 
b4706000-b4707000 ---p 00000000 00:00 0 
b4707000-b4708000 ---p 00000000 00:00 0 
b4708000-b4709000 ---p 00000000 00:00 0 
b4709000-b470a000 ---p 00000000 00:00 0 
b470a000-b470b000 ---p 00000000 00:00 0 
b470b000-b470c000 ---p 00000000 00:00 0 
b470c000-b470d000 ---p 00000000 00:00 0 
b470d000-b470e000 ---p 00000000 00:00 0 
b470e000-b470f000 ---p 00000000 00:00 0 
b470f000-b4710000 ---p 00000000 00:00 0 
b4710000-b4711000 ---p 00000000 00:00 0 
b4711000-b4712000 ---p 00000000 00:00 0 
b4712000-b4713000 ---p 00000000 00:00 0 
b4713000-b4714000 ---p 00000000 00:00 0 
b4714000-b4715000 ---p 00000000 00:00 0 
b4715000-b4716000 ---p 00000000 00:00 0 
b4716000-b4717000 ---p 00000000 00:00 0 
b4717000-b4718000 ---p 00000000 00:00 0 
b4718000-b4719000 ---p 00000000 00:00 0 
b4719000-b471a000 ---p 00000000 00:00 0 
Program received signal SIGABRT, Aborted.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt full
#0  0xb7fe2424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7dbc941 in *__GI_raise (sig=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = <optimized out>
        pid = -1209094156
        selftid = 29846
#2  0xb7dbfd72 in *__GI_abort () at abort.c:92
        act = {__sigaction_handler = {sa_handler = 0xb7fff4e4 
<_rtld_global+1220>, 
            sa_sigaction = 0xb7fff4e4 <_rtld_global+1220>}, sa_mask = {__val = 
{1703936, 134600704, 134515308, 3221218868, 
              2039, 3221218836, 134513036, 134518472, 2, 35, 3221218680, 
3085280680, 4, 3221218764, 3085873140, 6, 
              3221220152, 3221218884, 3085399204, 11, 3221218764, 4, 0, 
3221218860, 3221218872, 2, 3085729756, 3085729752, 
              3085725231, 3085725296, 230, 3221218764}}, sa_flags = 
-1073748460, sa_restorer = 0xb7ec93b6}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0xb7df6135 in __libc_message (do_abort=2, fmt=0xb7ec9328 "*** %s ***: %s 
terminated\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
        ap = <optimized out>
        fd = -1073748172
        on_2 = <optimized out>
        list = <optimized out>
        nlist = <optimized out>
        cp = <optimized out>
        written = false
#4  0xb7e76c90 in *__GI___fortify_fail (msg=<optimized out>) at 
fortify_fail.c:32
No locals.
#5  0xb7e76bfa in ____longjmp_chk () at 
../sysdeps/unix/sysv/linux/i386/____longjmp_chk.S:76
No locals.
#6  0xb7e76b69 in __longjmp_chk (env=<optimized out>, val=1) at 
../setjmp/longjmp.c:40
No locals.
#7  0xb7f07445 in ?? () from /usr/lib/i386-linux-gnu/libcurl.so.4
No symbol table info available.
#8  <signal handler called>
No symbol table info available.
#9  0xb7fe2424 in __kernel_vsyscall ()
No symbol table info available.
#10 0xb7fa0e65 in pthread_join (threadid=3053103984, thread_return=0x0) at 
pthread_join.c:89
        __ignore = <optimized out>
        _tid = 29849
        _buffer = {__routine = 0xb7fa0d30 <cleanup>, __arg = 0xb5faad94, 
__canceltype = -1207998656, __prev = 0x0}
        oldtype = 0
        result = <optimized out>
#11 0x0804aff9 in main (argc=1, argv=0xbffff3e4) at vzlogger.c:418
        mtr = 0xb6017f94
        __it_420 = <optimized out>
        mapping = 0xb6017f94
        action = {__sigaction_handler = {sa_handler = 0x804a7d0 <quit>, 
sa_sigaction = 0x804a7d0 <quit>}, sa_mask = {
            __val = {0 <repeats 32 times>}}, sa_flags = 0, sa_restorer = 
0xbffff338}
        __it_372 = <optimized out>
        httpd_handle = 0x0
        __it_415 = <optimized out>
(gdb) 
---< snap

Ich hoffe mal ich habe alle benötiten Einstellungen drin; ich bin nicht 
wirklich firm im Suchen von den Ursachen für solche Probleme

und schon mal danke; für die Hilfen.

Gruß Willi


More information about the volkszaehler-dev mailing list