You should be able to run
adb shell dumpsys dropbox SYSTEM_TOMBSTONE ?print > foo.crash
that will give you the crash dump. You can then get a stack trace
ndk-stack -dump foo.crash -sym
/path/to/your/simpleclient/obj/local/target_abi/
Charlie Lenahan
| Software Engineer | Intel Corporation | 322 West Main Street |
Louisville, KY 40202 | W - 502.963.0917 | 8-963.0917
charlie.lenahan at intel.com | CDG ? WINS ? WSS EAST |
http://www.linkedin.com/in/charlielenahan
On 2/26/15, 6:10 AM, "Han-Lin Li" <astereae at gmail.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5859 bytes
Desc: not available
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150226/a1781b37/attachment.p7s>