I pulled the newest master branch from git, but I got a new crash from
simpleserver

./simpleserver

Usage : simpleserver <value>
    Default - Non-secure resource and notify all observers
    1 - Non-secure resource and notify list of observers

    2 - Secure resource and notify all observers
    3 - Secure resource and notify list of observers

    4 - Non-secure resource, GET slow response, notify all observers
Segmentation fault (core dumped)

I used debug version library, but no message is printed

2015-02-27 2:34 GMT+08:00 Keane, Erich <erich.keane at intel.com>:
> Did you say "adb" meaning Android?
>
> If so, support for Android on Master is pretty poor in the first place,
> and even worse in 0.9.0.
>
> At the moment the Android-API branch is pretty good, but you'll have to
> pull from git.
>
> On Fri, 2015-02-27 at 02:25 +0800, Han-Lin Li wrote:
>> I used 0.9.0 release.
>>
>> 2015-02-27 1:39 GMT+08:00 Keane, Erich <erich.keane at intel.com>:
>> > 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
>> >
>

Reply via email to