On 18/05/17 01:44, rami alshafi wrote:
>
> Hello,
>
Hi, I am not a security expert but I am also curious about supported 
examples,

I have observed some kind of regression on some of them (compared to 
1.2-rel branch),
but as I saw many ongoing work on security domain
I didn't dare to report a ticket on tracker, maybe we should now (to 
build a knowledge base).

> This is very mysterious to me. I would really appreciate any 
> explanation of what is happening.
>
> if I run the sampleserver_justworks application
>
Is it same with other examples?

BTW, a summary of supported examples are welcome to be listed on
https://wiki.iotivity.org/examples


> with the debugger
>
which debugger gdb ?

> then it works and when I run it from the command line without the 
> debugger then it does not work.
>
in that case make sure to lunch it, where you have .dat file in current 
work directory,
like explained on above wiki page

cd iotivity
project_dir="$PWD"

TARGET_OS="linux" # or adapt
TARGET_ARCH="$(uname -m)" # or adapt
BUILD_MODE="debug" # or adapt to release

cd 
${project_dir}/out/${TARGET_OS}/${TARGET_ARCH}/${BUILD_MODE}/resource/examples/
killall simpleserver simpleclient # make sure none are running

./simpleserver 2>&1 | tee simpleserver.log.txt &
./simpleclient 2>&1 | tee simpleclient.log.txt

killall simpleserver # since simpleclient is over let's stop server too


> I have attached the log files but here is the summary for my findings 
> in diffing the 2 logs:
>
> 1- the size of the read file is 2793 bytes with a debugger and 466 
> without a debugger
>
super weird, it's more than 0 so open worked ?

> and reading the SV data from the persistent storage fails without a 
> debugger.
>
> 2- the read doxm.oxms and doxm.oxmsel values are 1 with a debugger and 
> 0 without a debugger.
>
>
Look at unit_tests sources, there are some hints about local "dat" files.

Security support is welcome, what about a Q and A session on IRC?

-- 
mailto:philippe.coval at osg.samsung.com gpg:0x467094BC
https://blogs.s-osg.org/author/pcoval/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170518/99c63b17/attachment.html>

Reply via email to