Hi Macieira,
After running the steps you told, I got the following results. Please find
attached the screen capture of the same.
[cid:a3e30f43-3983-4988-b742-a9e4498f6f90]
The text for the same is pasted below:
PID: 12610 (rcs_common_test)
UID: 0 (root)
GID: 0 (root)
Signal: 4 (ILL)
Timestamp: Tue 2017-06-13 11:27:54 MDT (3min 54s ago)
Command Line:
/home/mbachani/iotivity-1.3-rel/out/linux/x86_64/release/service/resource-encapsulation/src/common/rcs_common_test
Executable:
/home/mbachani/iotivity-1.3-rel/out/linux/x86_64/release/service/resource-encapsulation/src/common/rcs_common_test
Control Group: /user.slice/user-1000.slice/session-c2.scope
Unit: session-c2.scope
Slice: user-1000.slice
Session: c2
Owner UID: 1000 (mbachani)
Boot ID: 275cc2240b7141028cbb717959daa3a9
Machine ID: bf19b7a64b10498d918f4d11a640330e
Hostname: mbacl9470
Coredump:
/var/lib/systemd/coredump/core.rcs_common_test.0.275cc2240b7141028cbb717959daa3a9.12610.1497374874000000000000.xz
Message: Process 12610 (rcs_common_test) of user 0 dumped core.
Stack trace of thread 12610:
#0 0x0000000000438354
_ZNSt14_Function_base13_Base_managerIPFvSt10shared_ptrIN3OIC7Service17PrimitiveResourceEEEE10_M_managerERSt9_Any_dataRKS9_St18_Manager_operation
(rcs_common_test)
#1 0x00007fcc7d0a371f
_ZNSt14_Function_base13_Base_managerISt5_BindIFSt8functionIFvSt10shared_ptrIN3OIC7Service17PrimitiveResourceEEEES1_IFPFS7_RKS3_IN2OC10OCResourceEEESt12_PlaceholderILi1EEEEEEE10_M_managerERSt9_Any_dataRKSO_St18_Manager_operation
(librcs_common.so)
#2 0x000000000043984d
_ZNSt8functionIFvSt10shared_ptrIN2OC10OCResourceEEEEC2ERKS5_ (rcs_common_test)
#3 0x000000000043b31a
_ZN10HippoMocks9mockFuncsIc13OCStackResultE19static_expectation4ILi194ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_18OCConnectivityTypeSt8functionIFvSt10shared_ptrIN2OC10OCResourceEEEEEES1_T0_T1_T2_T3_
(rcs_common_test)
#4 0x00007fcc7d0a3aea
_ZN3OIC7Service12invokeOCFuncIPF13OCStackResultRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_18OCConnectivityTypeSt8functionIFvSt10shared_ptrIN2OC10OCResourceEEEEEISA_SA_RSB_SI_EEENS0_6Detail14EnableIfTypeIsINSM_10ResultTypeIT_IDpT0_EE4typeES2_vE4typeEOSP_DpOSQ_
(librcs_common.so)
#5 0x00007fcc7d0a3258
_ZN3OIC7Service16discoverResourceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_18OCConnectivityTypeSt8functionIFvSt10shared_ptrINS0_17PrimitiveResourceEEEE
(librcs_common.so)
#6 0x0000000000435d49
_ZN67DiscoverResourceTest_CallbackIsInvokedWhenResourceIsDiscovered_Test8TestBodyEv
(rcs_common_test)
#7 0x0000000000479ac3
_ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
(rcs_common_test)
#8 0x000000000047141c _ZN7testing4Test3RunEv (rcs_common_test)
#9 0x00000000004715f5 _ZN7testing4Test3RunEv (rcs_common_test)
#10 0x0000000000471765 _ZN7testing8TestInfo3RunEv
(rcs_common_test)
#11 0x0000000000471bed _ZN7testing8TestCase3RunEv
(rcs_common_test)
#12 0x0000000000479fa3
_ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc
(rcs_common_test)
#13 0x0000000000471f05 _ZN7testing8UnitTest3RunEv
(rcs_common_test)
#14 0x0000000000431320 _Z13RUN_ALL_TESTSv (rcs_common_test)
#15 0x00007fcc7c24b830 __libc_start_main (libc.so.6)
#16 0x0000000000431389 _start (rcs_common_test)
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
/home/mbachani/iotivity-1.3-rel/out/linux/x86_64/release/service/resource-encapsulation/src/common/rcs_common_test...done.
[New LWP 12610]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by
`/home/mbachani/iotivity-1.3-rel/out/linux/x86_64/release/service/resource-encap'.
Program terminated with signal SIGILL, Illegal instruction.
#0 0x0000000000438354 in std::_Function_base::_Base_manager<void
(*)(std::shared_ptr<OIC::Service::PrimitiveResource>)>::_M_manager(std::_Any_data&,
std::_Any_data const&, std::_Manager_operation) ()
(gdb)
Thanks and Regards
Maalvika Bachani
From: Thiago Macieira<mailto:[email protected]>
Sent: Monday, June 12, 2017 3:12 PM
To: iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at
lists.iotivity.org>
Cc: Maalvika Bachani<mailto:M.Bachani at cablelabs.com>
Subject: Re: [dev] Problem with running testharness for iotivity 1.3.0-rel
On Monday, 12 June 2017 13:03:44 PDT Maalvika Bachani wrote:
> Hi,
>
> I am trying to run scons TEST=1 after building iotivity on Ubuntu 16.04 LTS.
> It gives me following error. Kindly help me in identifying the problem.
> Please find attached the screen capture of the error.
>
> [cid:image003.png at 01D2E384.97D320B0]
Hello Maalvika
It says 'core dumped". Can you find the core file? It's either a file called
"core" or "core.*" in that test dir or your system captured it and it can be
found using coredumpctl.
If you find a core file, run gdb on the executable that crashed and the core
file
(gdb executablename corefile). If coredumpctl captured it, run "coredumpctl
gdb" followed by the executable name.
Inside gdb, run these commands:
bt
x/i $pc
Attach the result.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170613/69d93614/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 386028 bytes
Desc: pastedImage.png
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170613/69d93614/attachment.png>