You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by BOUTROS Adel <Ad...@murex.com> on 2016/02/22 18:09:04 UTC
Compiling qpid-proton 0.12.0 on SunOS 5.10 x86
Hello,
We are actually trying to compile qpid-proton 0.12.0 on SunOS 5.10 x86 and some of qpid-proton's unitary tests are failing such as c-reactor-tests. After adding some logs and debugging, we have noticed that on SunOS events are not received by the reactor and thus nothing is added to the cache which results in a segmentation fault:
11: Assertion failed: field->clazz == clazz, file /src/new/rmourad/qpid-proton/proton-c/src/object/record.c, line 104, function pn_record_def
1/1 Test #11: c-reactor-tests ..................***Exception: SegFault 0.00 sec
Can you please assist?
Environment details
Type
Value
OS
SunOS Generic_142910-17 i86pc i386 i86pc
CMake
2.8.0
Python
2.7 (64-bit)
Command line
cmake .. -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=CC -DPYTHON_EXECUTABLE=/path_to_python/bin/python -DCMAKE_C_FLAGS=" -m64 -xc99 -lsocket" -DCMAKE_CXX_FLAGS=" -m64" -DCMAKE_BUILD_TYPE=RelWithDebInfo
make
ctest -V -R c-reactor-tests
The missing call on SunOS (Visual studio debugger)
[Description : cid:image002.jpg@01D16D92.74B29B10]
You can see in the below table which compares the logs that there are 2 keys 0 and 917115589 for Windows but only the 0 for SunOS. I have attached the modified file where I added the logs (proton-c/src/object/record.c).
Linux/Windows
SunOS
Field with key 0 NOT found in cache 0x75a0a0
Field class set as: 0x602ee0:pn_void
Field with key 0 NOT found in cache 0x75abc0
Field class set as: 0x602ee0:pn_void
Field with key 0 NOT found in cache 0x75ac80
Field class set as: 0x602ee0:pn_void
Field with key 0 NOT found in cache 0x75ad20
Field class set as: 0x602ee0:pn_void
Setting field from cache
Field with key 0 found in cache 0x75ac80: 0x602ee0:pn_void
Field with key 917115590 NOT found in cache 0x75ac80
Field with key 0 NOT found in cache 0x75adc0
Field class set as: 0x602ee0:pn_void
Field with key 917115589 NOT found in cache 0x75abc0
Field class set as: 0x7f9336cae540:pn_object
Setting field from cache
Field with key 917115589 found in cache 0x75abc0: 0x7f9336cae540:pn_object
Getting field from cache
Field with key 917115589 found in cache 0x75abc0: 0x7f9336cae540:pn_object
Field with key 917115589 found in cache 0x75abc0: 0x7f9336cae540:pn_object
Asserting field class and provided class: 0x7f9336cae540:pn_object vs 0x7f9336cae540:pn_object
Field with key 0 NOT found in cache 4136d0
Field class set as: 4135a0:pn_void
Field with key 0 NOT found in cache 413990
Field class set as: 4135a0:pn_void
Field with key 0 NOT found in cache 4139d0
Field class set as: 4135a0:pn_void
Field with key 0 NOT found in cache 413a10
Field class set as: 4135a0:pn_void
Setting field from cache
Field with key 0 found in cache 4139d0: 4135a0:pn_void
Field with key 0 found in cache 4139d0: 4135a0:pn_void
Field with key 0 found in cache 413990: 4135a0:pn_void
Asserting field class and provided class: 4135a0:pn_void vs fffffd7fff35f6a0:pn_object
Regards,
Adel Boutros
------------------
Murex SAS
8 rue Bellini
75016 Paris
[Description : Description : signature]