[vz-dev] ] IR-KOPF und Y-Port Node

Jürgen Herrmann juergen.herrmann at plugid.de
Sun Oct 14 13:36:25 CEST 2012


Kann es, das eine Variable nicht beim Start initaliert wird...
mal läuft vzlogger stundenlang und breche ich es mit Ctrl-C ab,
läuft es nach dem neustart nur kurz und melden dann speicherfehler..
auch schreibt es keine Daten in die Datenbank .....


hier mal eine Terinal ausgabe

gdb --args vzlogger -f -v20 --config /etc/vzlogger.conf
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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 /usr/local/bin/vzlogger...done.
(gdb) run
Starting program: /usr/local/bin/vzlogger -f -v20 --config 
/etc/vzlogger.conf
[Thread debugging using libthread_db enabled]
[Oct 14 13:11:24] Start parsing configuration from /etc/vzlogger.conf
[Oct 14 13:11:24][mtr0] New meter initialized (protocol=sml)
[Oct 14 13:11:24][ch0] New channel initialized (uuid=...0ced10 
middleware=http://localhost/vz/htdocs/middleware.php id=1-0:2.8.0)
[Oct 14 13:11:24] Opened logfile /var/log/vzlogger.log
[Oct 14 13:11:24][mtr0] Meter connection established
[New Thread 0xb791cb70 (LWP 1466)]
[Oct 14 13:11:24][mtr0] Meter thread started
[New Thread 0xb711bb70 (LWP 1467)]
[Oct 14 13:11:24][ch0] Logging thread started

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb791cb70 (LWP 1466)]
0xb7e5a367 in memset () from /lib/i686/cmov/libc.so.6
(gdb) bt full
#0 0xb7e5a367 in memset () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#1 0x08051237 in sml_buffer_init (length=4294967280) at src/sml_shared.c:118
buf = 0x8066af0
#2 0x080506cb in sml_file_parse (buffer=0xb791a1b8 "", 
buffer_len=4294967280)
at src/sml_file.c:35
file = 0x8066ae0
buf = 0x0
msg = 0x507a9ddc
#3 0x0804fd26 in meter_read_sml (meter=0x8066ca0, rds=0x8067510, n=32)
at protocols/sml.c:163
buffer = '\000' <repeats 7660 times>, 
"h\272\336\267\020ii\rܿ\221\267f\274\376\267\217\210߷Y\231\004\b\000\000\000\000ە\004\b\030\365\222\267\002\000\221\267\340\030\377\267ە\004\bh\272\371\267\364\357\377\267\230\200\336\267\a\000\000\000\\\300\221\267\001\303\376\267", 
'\000' <repeats 28 times>, 
"ȝ\336\267X\273\377\267(\300\221\267\000\000\000\000\024\000\000\000h\272\336\267\210\364\222\267\224x\236|\000\000\000\000\036", 
'\000' <repeats 11 times>, 
"\005\000\000\000\312\001\000\000\030\365\222\267\300\272\371\267q\226\004\b(/߷l\211\004\b\001\000\000\000\364\357\377\267@\301\221\267\260\372\377\267\024\301\221\267\362\304\376\267\004\301\221\267l\211\004\b\370\300\221\267T\372\377\267\000\000\000\000\030\365\222\267\005\000\000\000\000\000\000\000\001\000\000\000\370\370\377\267", 
'\000' <repeats 12 times>, 
"\005\206\360\267\"\206\360\267܈\360\267(\274\360\267\000\000\000\000@\301\221\267\370\300\221\267\004\301\221\267\020j\006\b\370\370\377\267\000\000\000\000\364\217\362\267\240\243\362\267q\226\004\bH\301\221\267\335\064\345\267", 
'\000' <repeats 24 times>, 
"ȥ\362\267\000\000\000\000h\272\336\267\300\272\371\267\230\003\000\000\377\377\377\377\364\357\377\267q\226\004\b\005\000\000\000P\301\221\267f\t\377\267\260\372\377\267\030\365\222\267\001\000\000\000"...
bytes = 0
m = <value optimized out>
file = 0x0
---Type <return> to continue, or q <return> to quit---
entry = <value optimized out>
#4 0x0804ca0e in reading_thread (arg=0x8066ca0) at threads.c:62
__it_83 = 0xb791c23c
__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {896,
-1215181968, 4001536, -1215184072, -1981014583, -1543673162},
__mask_was_saved = 0}}, __pad = {0xb791c3f4, 0x0, 0xb7fc4224,
0x16088}}
not_first_call = <value optimized out>
rds = 0x8067510
mapping = 0x8066ca0
mtr = 0xb791cb70
last = 1350213084
delta = -1210152568
details = 0x8058708
n = 0
#5 0xb7fc7955 in start_thread () from /lib/i686/cmov/libpthread.so.0
No symbol table info available.
#6 0xb7eb21de in clone () from /lib/i686/cmov/libc.so.6
No symbol table info available.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /usr/local/bin/vzlogger -f -v20 --config 
/etc/vzlogger.conf
[Thread debugging using libthread_db enabled]
[Oct 14 13:13:04] Start parsing configuration from /etc/vzlogger.conf
[Oct 14 13:13:04][mtr0] New meter initialized (protocol=sml)
[Oct 14 13:13:04][ch0] New channel initialized (uuid=...0ced10 
middleware=http://localhost/vz/htdocs/middleware.php id=1-0:2.8.0)
[Oct 14 13:13:04] Opened logfile /var/log/vzlogger.log
[Oct 14 13:13:04][mtr0] Meter connection established
[New Thread 0xb791cb70 (LWP 1469)]
[Oct 14 13:13:04][mtr0] Meter thread started
[New Thread 0xb711bb70 (LWP 1470)]
[Oct 14 13:13:04][ch0] Logging thread started
error: unknown type in sml_value_to_double
error: unknown type in sml_value_to_double
error: unknown type in sml_value_to_double
[Oct 14 13:13:07][mtr0] Got 8 new readings from meter:
[Oct 14 13:13:07][mtr0] Reading: id=129-129:199.130.3*255 value=0.00 
ts=1350213187.448
[Oct 14 13:13:07][mtr0] Reading: id=1-0:0.0.9*255 value=0.00 
ts=1350213187.448
[Oct 14 13:13:07][mtr0] Reading: id=1-0:1.8.0*255 value=309967.60 
ts=1350213187.448
[Oct 14 13:13:07][mtr0] Reading: id=1-0:1.8.1*255 value=309967.60 
ts=1350213187.448
[Oct 14 13:13:07][mtr0] Reading: id=1-0:1.8.2*255 value=0.00 
ts=1350213187.448
[Oct 14 13:13:07][mtr0] Reading: id=1-0:15.7.0*255 value=113.30 
ts=1350213187.448
[Oct 14 13:13:07][mtr0] Reading: id=129-129:199.130.5*255 value=0.00 
ts=1350213187.448
[Oct 14 13:13:07][mtr0] Reading: id=0-0:0.0.0*0 value=0.00 ts=0.000
[Oct 14 13:13:07][mtr0] Updating interval to 3
[Oct 14 13:13:07][ch0] Buffer dump (size=0 keep=0): {}
[Thread 0xb791cb70 (LWP 1469) exited]



Am 12.10.2012 19:23, schrieb Jürgen Herrmann:
> und der Speicher läuft langsam voll ...
>
>
> Am 12.10.2012 19:11, schrieb Jürgen Herrmann:
>> mit vzlogger -d kommt nach einer Weile :
>> unknown type in sml_value_to_double
>>
>>
>>
>> Am 10.10.2012 21:41, schrieb Thorben Thuermer:
>>> On Wed, 10 Oct 2012 21:21:47 +0200
>>> Jürgen Herrmann <juergen.herrmann at plugid.de> wrote:
>>>> Am 10.10.2012 21:18, schrieb Udo1:
>>>>> Welche Version von vzlogger nutzt du?
>>>> 0.3.3.....
>>> die nummer hilft nicht viel...
>>> entweder ist es die aktuelle version aus dem git, oder nicht:
>>> http://wiki.volkszaehler.org/software/controller/vzlogger#build_from_source 
>>>
>>> (selbige solltest du benutzen, wenn du das noch nicht tust.)
>>>
>>> wenn du helfen willst, den fehler zu beheben:
>>> corefile erzeugen oder im debugger laufen lassen, backtrace vom 
>>> crash erzeugen.
>>> ich habe gerade keine lust das nochmal neu zu erklaeren...
>>> http://www.google.de/search?q=site%3Avolkszaehler.org+vzlogger+gdb+%22Thorben+Thuermer+r00t+at+constancy.org%22 
>>>
>>>
>>> -T.
>>>
>>>>> Am 10.10.2012 21:01, schrieb Jürgen Herrmann:
>>>>>> ich sollte noch erwähnen, ich arbeite mit einem Linux-System...
>>>>>> ok, das nächste Problen ist vzlogger, es bricht nach einer Weile
>>>>>> einfach mit der Info
>>>>>> "Speicherzugriffsfehler" ab...
>>>>>>
>>>>>>
>>>>>>
>>>>>> Am 10.10.2012 20:54, schrieb Udo1:
>>>>>>> Sieht doch gut aus.
>>>>>>>
>>>>>>> Am 10.10.2012 20:23, schrieb Jürgen Herrmann:
>>>>>>>> Am 10.10.2012 19:47, schrieb Jürgen Herrmann:
>>>>>>>>> Am 10.10.2012 19:33, schrieb Udo1:
>>>>>>>>>> Am 10.10.2012 19:22, schrieb Jürgen Herrmann:
>>>>>>>>>>> mit telnet kann ich das senden der Daten erkennen, sieht aber
>>>>>>>>>>> nicht so aus wie oben gewünscht...
>>>>>>>>>>> es sicher hexadezimal Zeichen......
>>>>>>>>>> kannst du die mal aufzeichnen und als Anlage mitsenden?
>>>>>>>>>>
>>>>>>>>>> Gruß
>>>>>>>>>> Udo ja hier sind sie im Anhang " ehz.dat"
>>>>>>>> das Programm vzlogger hat ein webinterface,
>>>>>>>> hier kann ich Daten lesen! es ist aber alles auf einer Zeile...?
>>>>>>>> ist das richtig?
>>>>>>>>
>>>>>>>> { "version": "0.3.3", "generator": "vzlogger", "data": [ { "uuid":
>>>>>>>> "d5c6db0f-533e-498d-a85a-be972c104b48", "middleware":
>>>>>>>> "http:\/\/localhost\/volkszaehler.org\/htdocs\/middleware.php",
>>>>>>>> "last": 297786.300000, "interval": 2, "protocol": "sml", "tuples":
>>>>>>>> [ [ 1349893174448.648926, 297784.400000 ], [ 1349893176466.339111,
>>>>>>>> 297784.500000 ], [ 1349893178544.609131, 297784.600000 ], [
>>>>>>>> 1349893180564.745850, 297784.700000 ], [ 1349893182643.204834,
>>>>>>>> 297784.800000 ], [ 1349893184640.831055, 297784.900000 ], [
>>>>>>>> 1349893186688.642090, 297785.000000 ], [ 1349893188788.999023,
>>>>>>>> 297785.100000 ], [ 1349893190809.750000, 297785.200000 ], [
>>>>>>>> 1349893192783.177979, 297785.300000 ], [ 1349893194874.882080,
>>>>>>>> 297785.400000 ], [ 1349893196879.275146, 297785.500000 ], [
>>>>>>>> 1349893198917.467041, 297785.600000 ], [ 1349893200946.489990,
>>>>>>>> 297785.700000 ], [ 1349893202890.479004, 297785.800000 ], [
>>>>>>>> 1349893204969.500977, 297785.900000 ], [ 1349893206965.189941,
>>>>>>>> 297786.000000 ], [ 1349893209055.866943, 297786.100000 ], [
>>>>>>>> 1349893211054.406006, 297786.200000 ], [ 1349893213111.885010,
>>>>>>>> 297786.300000 ] ] }, { "uuid":
>>>>>>>> "a8da012a-9eb4-49ed-b7f3-38c95142a90c", "middleware":
>>>>>>>> "http:\/\/localhost\/volkszaehler.org\/htdocs\/middleware.php",
>>>>>>>> "last": 0.000000, "interval": 2, "protocol": "sml", "tuples": [ [
>>>>>>>> 1349893174448.648926, 297784.400000 ], [ 1349893174448.648926,
>>>>>>>> 297784.400000 ], [ 1349893174448.649902, 0.000000 ], [
>>>>>>>> 1349893176466.339111, 297784.500000 ], [ 1349893176466.340088,
>>>>>>>> 297784.500000 ], [ 1349893176466.340088, 0.000000 ], [
>>>>>>>> 1349893178544.609131, 297784.600000 ], [ 1349893178544.609131,
>>>>>>>> 297784.600000 ], [ 1349893178544.610107, 0.000000 ], [
>>>>>>>> 1349893180564.745850, 297784.700000 ], [ 1349893180564.747070,
>>>>>>>> 297784.700000 ], [ 1349893180564.747070, 0.000000 ], [
>>>>>>>> 1349893182643.204834, 297784.800000 ], [ 1349893182643.204834,
>>>>>>>> 297784.800000 ], [ 1349893182643.205811, 0.000000 ], [
>>>>>>>> 1349893184640.831055, 297784.900000 ], [ 1349893184640.832031,
>>>>>>>> 297784.900000 ], [ 1349893184640.833008, 0.000000 ], [
>>>>>>>> 1349893186688.642090, 297785.000000 ], [ 1349893186688.642090,
>>>>>>>> 297785.000000 ], [ 1349893186688.643066, 0.000000 ], [
>>>>>>>> 1349893188788.999023, 297785.100000 ], [ 1349893188788.999023,
>>>>>>>> 297785.100000 ], [ 1349893188789.000000, 0.000000 ], [
>>>>>>>> 1349893190809.750000, 297785.200000 ], [ 1349893190809.750977,
>>>>>>>> 297785.200000 ], [ 1349893190809.750977, 0.000000 ], [
>>>>>>>> 1349893192783.177979, 297785.300000 ], [ 1349893192783.177979,
>>>>>>>> 297785.300000 ], [ 1349893192783.178955, 0.000000 ], [
>>>>>>>> 1349893194874.882080, 297785.400000 ], [ 1349893194874.883057,
>>>>>>>> 297785.400000 ], [ 1349893194874.883789, 0.000000 ], [
>>>>>>>> 1349893196879.275146, 297785.500000 ], [ 1349893196879.275146,
>>>>>>>> 297785.500000 ], [ 1349893196879.276123, 0.000000 ], [
>>>>>>>> 1349893198917.467041, 297785.600000 ], [ 1349893198917.467041,
>>>>>>>> 297785.600000 ], [ 1349893198917.467041, 0.000000 ], [
>>>>>>>> 1349893200946.489990, 297785.700000 ], [ 1349893200946.490967,
>>>>>>>> 297785.700000 ], [ 1349893200946.490967, 0.000000 ], [
>>>>>>>> 1349893202890.479004, 297785.800000 ], [ 1349893202890.479004,
>>>>>>>> 297785.800000 ], [ 1349893202890.479980, 0.000000 ], [
>>>>>>>> 1349893204969.500977, 297785.900000 ], [ 1349893204969.500977,
>>>>>>>> 297785.900000 ], [ 1349893204969.501953, 0.000000 ], [
>>>>>>>> 1349893206965.189941, 297786.000000 ], [ 1349893206965.189941,
>>>>>>>> 297786.000000 ], [ 1349893206965.190918, 0.000000 ], [
>>>>>>>> 1349893209055.866943, 297786.100000 ], [ 1349893209055.866943,
>>>>>>>> 297786.100000 ], [ 1349893209055.867920, 0.000000 ], [
>>>>>>>> 1349893211054.406006, 297786.200000 ], [ 1349893211054.406982,
>>>>>>>> 297786.200000 ], [ 1349893211054.407959, 0.000000 ], [
>>>>>>>> 1349893213111.885010, 297786.300000 ], [ 1349893213111.885010,
>>>>>>>> 297786.300000 ], [ 1349893213111.885986, 0.000000 ] ] }, { "uuid":
>>>>>>>> "fde8f1d0-c5d0-11e0-856e-f9e4360ced10", "middleware":
>>>>>>>> "http:\/\/localhost\/volkszaehler.org\/htdocs\/middleware.php",
>>>>>>>> "last": 0.000000, "interval": 2, "protocol": "sml", "tuples": [ 
>>>>>>>> ] }
>>>>>>>> ] }
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>
>>
>>
>>
>
>
>



More information about the volkszaehler-dev mailing list