[vz-dev] 1wirevz Segmentation fault

Andreas Brus andreas at brus.name
Wed Sep 4 19:54:20 CEST 2013


Am 04.09.2013 15:44, schrieb Thorben Thuermer:
> also genau wie vermutet...
>> #4  0x00009d6c in http_post (temp=63.875, vzuuid=0x13a54
>> "589a4a00-fe87-11e2-8991-e7a40a5b0f79") at 1wirevz.c:296
>>           curl = 0x9100
>>           curl_res = 88648
> es ist noch hilfreich, wenn du den sourcecode zu dem binary noch auf dem
> system an der gleichen stelle liegen hast, dann bekommst du die codezeilen
> angezeigt.
Hmmm. source liegt genau immer noch an der gleichen Stelle.
Aber nach Deiner Anleitung natürlich nicht im gleichen Pfad wie das 
binary :-) jetzt aber...

#4  0x00009d6c in http_post (temp=28.687000000000001, vzuuid=0x13a54 
"589a4a00-fe87-11e2-8991-e7a40a4b0f79") at 1wirevz.c:296
         curl = 0x9100
         curl_res = 88648
#5  0x00009fd0 in ds1820read (sensorid=0x12cdd "10-000802558178") at 
1wirevz.c:362
         t = 0x15bb8 "28687"
         fp = 0x15a48
#6  0x0000a2d4 in main () at 1wirevz.c:409
         fp = 0x15028
         pid_file = "/tmp/1wirevz.pid"
(gdb) print vzserver
$1 = 0x172d0 "smart-meter.brus.loc"
(gdb) print vzport
$2 = 80
(gdb) print vzpath
$3 = 0x65383362 <Address 0x65383362 out of bounds>
(gdb) print vzuuid
$4 = {{'\000' <repeats 63 times> <repeats 32 times>}, {'\000' <repeats 
63 times>,
     "589a4a00-fe87-11e2-8991-e7a40a4b0f78", '\000' <repeats 27 times>,
     "6b9c3db0-fe87-11e2-954f-0752976034e3", '\000' <repeats 27 times>,
     "1f927d20-fe89-11e2-b2c4-373613f12b75", '\000' <repeats 27 times>,
     "7b1532f0-fe87-11e2-91e0-ad2259a15bb7", '\000' <repeats 27 times>,
     "80a908e0-fe87-11e2-a807-11897be02821", '\000' <repeats 27 times>,
     "26c968c0-fe89-11e2-9549-f16762a3153b", '\000' <repeats 27 times>,
     "2a92a8c0-fe89-11e2-bde9-54c2602e554a", '\000' <repeats 27 times>,
     "2f81f030-fe89-11e2-adb1-60258cae1729", '\000' <repeats 27 times>,
     "74741a10-fe87-11e2-b1e8-e3f8a3f6b96d", '\000' <repeats 27 times>,
     "6c6cef30-fe89-11e2-a4df-e1f3d3e8a604", '\000' <repeats 27 times>, 
'\000' <repeats 63 times> <repeats 21 times>}, {
     '\000' <repeats 63 times>, "53561f29-fdf9-11e2-90ce-61ebef215402", 
'\000' <repeats 27 times>,
     "374f06b0-fdfe-11e2-a09c-1df371f0fcdc", '\000' <repeats 27 times>, 
'\000' <repeats 63 times> <repeats 29 times>}}
(gdb) print temp
$5 = 28.687000000000001



More information about the volkszaehler-dev mailing list