I don't see anything that is obvious on this one. Can you tell me what
commit-id you are working off of? Perhaps I can see if I can reproduce
it.
Thanks!
-Erich
On Thu, 2015-02-26 at 19:10 +0800, Han-Lin Li wrote:
> I run simpleclient and simpleserver by adb and get a segmentation fault
>
>
>
> Here is the debug message
>
>
>
> Getting Light Representation...
>
> v:1 t:1 tkl:8 c:1 id:65355 o: [ 7:'\xB5\x95', 11:'a', 11:'light' ]
>
> Jan 16 00:49:27 DEBG bytes_written 23
>
> Jan 16 00:49:27 DEBG coap_read: discarded invalid frame
>
> Jan 16 00:49:27 DEBG coap_read: discarded invalid frame
>
> Jan 16 00:49:27 DEBG coap_read: discarded invalid frame
>
> Jan 16 00:49:27 DEBG coap_read: discarded invalid frame
>
> Jan 16 00:49:27 DEBG set data to 0xf6d5b0a6 (pdu ends at 0xf6d5b0f9)
>
> Jan 16 00:49:27 DEBG ** received 105 bytes from :
>
> v:1 t:1 tkl:8 c:64 id:65355 o: [ 11:'\x01', 12:'\x32', 14:'\xFF\xFF\x02\x00' ]
>
> :{"oc":[{"href":"/a/light","rep":{"name":"John's
> light","power":0,"state":false
>
> }]}\x00
>
> Jan 16 00:49:27 DEBG coap_read: discarded invalid frame
>
> GET request was successful
>
> Resource URI: /a/light
>
> state: false
>
> power: 0
>
> name: John's light
>
> Putting light representation...
>
> v:1 t:1 tkl:8 c:3 id:65356 o: [ 7:'\xB5\x95', 11:'a', 11:'light' ]
> d:{"oc":[{"r
>
> p":{"power":15,"state":true}}]}\x00
>
> Jan 16 00:49:27 DEBG bytes_written 67
>
> Segmentation fault (core dumped)
>
>
>
> It should crash in resource->put(rep, QueryParamsMap(), &onPut);
> Any body knows why?
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev