-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hm, Is there anything special about QNX mutexes? Are they created in a locked state or something like that? Martin On 09/05/14 09:42, Hajime Saito wrote: > Hello, > > I'm currently trying out nanomsg on QNX and have a few tests that > fail. > > The system I am using is QNX 6.5.0 on an x86 CPU. > > I got the source code from > github(https://github.com/nanomsg/nanomsg) and configured it using > the following command. > > prompt> CC=qcc CXX=QCC ./configure CFLAGS="-ggdb3 -march=i686" > CXXFLAGS="-ggdb3 -march=i686" LIBS=-lsocket > > After a "make" and "make check" I get the following output. > > ----------------------------------------- make[1]: Entering > directory `/root/share/qnx/nanomsg/nanomsg' Resource busy [16] > (src/utils/mutex.c:55) Abort (core dumped) FAIL: tests/inproc PASS: > tests/inproc_shutdown Resource busy [16] (src/utils/mutex.c:55) > Abort (core dumped) FAIL: tests/ipc Memory fault (core dumped) > FAIL: tests/ipc_shutdown Resource busy [16] (src/utils/mutex.c:55) > Abort (core dumped) FAIL: tests/tcp Memory fault (core dumped) > FAIL: tests/tcp_shutdown PASS: tests/pair Resource busy [16] > (src/utils/mutex.c:55) Abort (core dumped) FAIL: tests/pubsub > Resource busy [16] (src/utils/mutex.c:55) Abort (core dumped) FAIL: > tests/reqrep Resource busy [16] (src/utils/mutex.c:55) Abort (core > dumped) FAIL: tests/pipeline PASS: tests/survey PASS: tests/bus > PASS: tests/block Resource busy [16] (src/utils/mutex.c:55) Abort > (core dumped) FAIL: tests/term PASS: tests/timeo PASS: tests/iovec > Resource busy [16] (src/utils/mutex.c:55) Abort (core dumped) FAIL: > tests/msg Resource busy [16] (src/utils/mutex.c:55) Abort (core > dumped) FAIL: tests/prio Resource busy [16] (src/utils/mutex.c:55) > Abort (core dumped) FAIL: tests/poll PASS: tests/device PASS: > tests/emfile PASS: tests/domain PASS: tests/trie PASS: tests/list > PASS: tests/hash PASS: tests/symbol Resource busy [16] > (src/utils/mutex.c:55) Abort (core dumped) FAIL: tests/separation > PASS: tests/zerocopy PASS: tests/shutdown > ====================================== 13 of 29 tests failed Please > report to nanomsg@xxxxxxxxxxxxx > ====================================== make[1]: *** [check-TESTS] > Error 1 make[1]: Leaving directory > `/root/share/qnx/nanomsg/nanomsg' make: *** [check-am] Error 2 > ------------------------------ > > I did a printf debug to see where the test program is failing and > I know that inproc fails at the second call of "sb = > test_socket(AF_SP, NN_PAIR);" around line 75 of inproc.c. > > Does anyone have any suggestions as to how to debug this? > > Cheers, > > Hajime > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTbKLJAAoJENTpVjxCNN9YNEEH/1CeepVR1H3oz2LFbltUT5L+ 0Uf4fLSBz6o3yaxC4IzQVJ+Yb7Wo9h7+I83sY5IcRDXRuYEb0FEqpWSXS0nPl0dh KPjLn/FCtGjFaUDI00Lu5vMdHaPA/S9w6JssnOzWyjNpEsGpOphIIvYN2+ZCrXKh bLYKUHfXSlHwKcpeHwj1eH5aAsB4/8FDs0H7pf365dMCBKpafy5r1G0Z9l5Irhf4 I0k+9MqP2mt/B2ZocqbNieN6E7hcu9lro3UoJIHL9pzjsz+3/euRZMaRAQEP80EO pQd2Wvjnb6mGAuTrT/RHLERx2E0EMGBrXbReFDfFgQmfXLw62+RgIBT9PSmjQrk= =lvC2 -----END PGP SIGNATURE-----