Uze Choi,
This can also happen with there is a version mismatch in the wire protocol.  
Make sure both client and server are built from the same version.
John Light
Intel OTC OIC development

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of ???(Uze Choi)
Sent: Friday, March 25, 2016 4:46 AM
To: 'Habib Virji' <habib.virji at samsung.com>; hyunjun2.kim at samsung.com; 
iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Is there anybody who has seen an assertion abort of tinycbor?

Hi Habib
We are just compiling the IoTivity code and run it.
Can we select the json file or new data file from API?
Otherwise should we initialize the environment?
BR, Uze Choi
From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> [mailto:[email protected]] On Behalf 
Of Habib Virji
Sent: Friday, March 25, 2016 6:22 PM
To: hyunjun2.kim at samsung.com<mailto:hyunjun2.kim at samsung.com>; 
iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org>
Subject: Re: [dev] Is there anybody who has seen an assertion abort of tinycbor?

Hi,
It is due to wrong format of the file security PSI is reading.
Security stack now read dat file and it might be your code is using json file 
and that?s why it fails.
Can you please make sure that your simple server is not using json file and 
instead using new dat file.
Assert condition in tinycbor comes when it is expecting a certain a particular 
format.
Kind Regard
Habib
From: iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at 
lists.iotivity.org> [mailto:[email protected]] On Behalf 
Of ???
Sent: 25 March 2016 08:46
To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: [dev] Is there anybody who has seen an assertion abort of tinycbor?




Dear all,



I have faced an assertion abort of tinycbor when it was run simpleserver.

IoTivity was built as secured and debug mode.

(using build command, "scons TARGET_OS=linux TARGET_ARCH=x86 
TARGET_TRANSPORT=IP SECURED=1 RELEASE=0")



It seems like an assertion check about cbor creation.

If you have any idea to avoid this, please let me know.



please see below running log.

51:12.332 DEBUG: OIC_CA_NW_CONFIG: Add network type(NFC) - Not Supported
51:12.332 DEBUG: OIC_CA_CONN_MGR: CAAddNetworkType(CA_ADAPTER_NFC) function 
returns result : 12
51:12.332 DEBUG: SRM: SRMRegisterHandler !!
51:12.332 DEBUG: OIC_CA_CONN_MGR: CARegisterHandler
51:12.332 DEBUG: OIC_CA_CONN_MGR: CAStartListeningServer
51:12.332 DEBUG: OIC_CA_IP_MONITOR: Got ifaddrs
51:12.332 DEBUG: OIC_CA_IP_MONITOR: Added interface: eth0 (2)
51:12.332 DEBUG: OIC_CA_IP_SERVER: IP network interfaces found: 1
51:12.332 DEBUG: OIC_CA_IP_SERVER: IPv4 network interface: eth0
51:12.332 INFO: OIC_RI_STACK: Server mode: CAStartListeningServer
51:12.332 INFO: OIC_RI_STACK: Entering OCCreateResource
51:12.332 INFO: OIC_RI_STACK: Added type oic.wk.ad to /oic/ad
51:12.332 INFO: OIC_RI_STACK: Binding core.r interface to /oic/ad
51:12.332 INFO: OIC_RI_OBSERVE: Entering SendObserverNotification
51:12.332 INFO: OIC_RI_OBSERVE: Resource has no observers
51:12.332 DEBUG: SRM-PSI: File Read Size: 1163
simpleserver: extlibs/tinycbor/tinycbor/src/cborparser.c:681: 
cbor_value_map_find_value: Assertion `cbor_value_is_map(map)' failed.
Aborted (core dumped)



I have created a jira ticket.
(https://jira.iotivity.org/browse/IOT-1046)
Please inform to me if I have missed an anything then i will close this.



Thank you, BR.



???( HyunJun Kim )
                                Engineer

IoT Solution Lab. | Web & Convergence Team.
Software R&D Center
Digital Media & Communications Business
SAMSUNG ELECTRONICS CO,. LTD.

Mobile +82-10-5096-0151
E-Mail HyunJun2.Kim at samsung.com<mailto:hyunjun2.kim at samsung.com> | kiness 
at gmail.com<mailto:kiness at gmail.com>



[cid:image001.gif at 01D1866A.CE9435D0]

[http://ext.samsung.net/mailcheck/SeenTimeChecker?do=ffcf397c39a8fbf2de112af6e6f786ad7ccfac3aba9390114d7c95afdd26519213d69ea60670f66e1fac5bf6c61543587bc8a6096cfbfc9f02e038c8d853bffbdb9fdddda33e82cbe4a391424e62fcf6cf878f9a26ce15a0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160325/23a0eab0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13168 bytes
Desc: image001.gif
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160325/23a0eab0/attachment.gif>

Reply via email to