#11815: pthread Posix test suite failures ---------------------------------+---------------------------- Reporter: kallisti5 | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1/beta1 Component: System/libroot.so | Version: R1/Development Resolution: | Keywords: pthread Blocked By: | Blocking: Has a Patch: 0 | Platform: All ---------------------------------+---------------------------- Description changed by kallisti5: Old description: > Our pthread implementation still has some crashes and bugs. > > The open posix test suite is handy to bring these to the surface... > > http://sourceforge.net/projects/posixtest/files/posixtest/posixtestsuite-1.5.2/ > > ``` > /Builds/posixtestsuite> ./run_tests THR > Executing threads tests > conformance/interfaces/pthread_atfork/1-1: build: PASS > conformance/interfaces/pthread_atfork/1-1: link: PASS > conformance/interfaces/pthread_atfork/1-2: build: PASS > conformance/interfaces/pthread_atfork/1-2: link: PASS > conformance/interfaces/pthread_atfork/2-1: build: PASS > conformance/interfaces/pthread_atfork/2-1: link: PASS > conformance/interfaces/pthread_atfork/2-2: build: PASS > conformance/interfaces/pthread_atfork/2-2: link: PASS > conformance/interfaces/pthread_atfork/3-2: build: PASS > conformance/interfaces/pthread_atfork/3-2: link: PASS > conformance/interfaces/pthread_atfork/3-3: build: PASS > conformance/interfaces/pthread_atfork/3-3: link: PASS > conformance/interfaces/pthread_atfork/4-1: build: PASS > conformance/interfaces/pthread_atfork/4-1: link: PASS > Building timeout helper files > echo `./t0 0; echo $?` > ./t0.val > conformance/interfaces/pthread_atfork/1-1: execution: PASS > conformance/interfaces/pthread_atfork/1-2: execution: PASS > conformance/interfaces/pthread_atfork/2-1: execution: PASS > conformance/interfaces/pthread_atfork/2-2: execution: PASS > conformance/interfaces/pthread_atfork/3-1: execution: PASS > conformance/interfaces/pthread_atfork/3-2: execution: PASS > conformance/interfaces/pthread_atfork/3-3: execution: PASS > conformance/interfaces/pthread_atfork/4-1: execution: PASS > conformance/interfaces/pthread_attr_destroy/1-1: build: PASS > conformance/interfaces/pthread_attr_destroy/1-1: link: PASS > conformance/interfaces/pthread_attr_destroy/2-1: build: PASS > conformance/interfaces/pthread_attr_destroy/2-1: link: PASS > conformance/interfaces/pthread_attr_destroy/3-1: build: PASS > conformance/interfaces/pthread_attr_destroy/3-1: link: PASS > conformance/interfaces/pthread_attr_destroy/1-1: execution: PASS > conformance/interfaces/pthread_attr_destroy/2-1: execution: PASS > conformance/interfaces/pthread_attr_destroy/3-1: execution: PASS > conformance/interfaces/pthread_attr_getdetachstate/1-1: build: PASS > conformance/interfaces/pthread_attr_getdetachstate/1-1: link: PASS > conformance/interfaces/pthread_attr_getdetachstate/1-2: build: PASS > conformance/interfaces/pthread_attr_getdetachstate/1-2: link: PASS > conformance/interfaces/pthread_attr_getdetachstate/1-1: execution: PASS > conformance/interfaces/pthread_attr_getdetachstate/1-2: execution: PASS > conformance/interfaces/pthread_attr_getdetachstate/2-1: execution: PASS > conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED > conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED > conformance/interfaces/pthread_attr_getinheritsched/2-1: execution: PASS > conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED > conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED > conformance/interfaces/pthread_attr_getschedparam/2-1: execution: PASS > conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED > conformance/interfaces/pthread_attr_getschedpolicy/1-1: execution: PASS > conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED > conformance/interfaces/pthread_attr_getschedpolicy/3-1: execution: PASS > conformance/interfaces/pthread_attr_getscope/1-1: build: PASS > conformance/interfaces/pthread_attr_getscope/1-1: link: PASS > conformance/interfaces/pthread_attr_getscope/1-1: execution: PASS > conformance/interfaces/pthread_attr_getscope/2-1: execution: PASS > conformance/interfaces/pthread_attr_getstack/1-1: build: FAILED > conformance/interfaces/pthread_attr_getstack/1-1: build: FAILED > conformance/interfaces/pthread_attr_getstack/2-1: execution: PASS > make: Nothing to be done for `build-tests'. > make: Nothing to be done for `run-tests'. > conformance/interfaces/pthread_attr_getstacksize/1-1: build: PASS > conformance/interfaces/pthread_attr_getstacksize/1-1: link: PASS > conformance/interfaces/pthread_attr_getstacksize/1-1: execution: PASS > conformance/interfaces/pthread_attr_getstacksize/2-1: execution: PASS > conformance/interfaces/pthread_attr_init/1-1: build: PASS > conformance/interfaces/pthread_attr_init/1-1: link: PASS > conformance/interfaces/pthread_attr_init/2-1: build: PASS > conformance/interfaces/pthread_attr_init/2-1: link: PASS > conformance/interfaces/pthread_attr_init/3-1: build: PASS > conformance/interfaces/pthread_attr_init/3-1: link: PASS > conformance/interfaces/pthread_attr_init/4-1: build: PASS > conformance/interfaces/pthread_attr_init/4-1: link: PASS > conformance/interfaces/pthread_attr_init/1-1: execution: PASS > conformance/interfaces/pthread_attr_init/2-1: execution: PASS > conformance/interfaces/pthread_attr_init/3-1: execution: PASS > conformance/interfaces/pthread_attr_init/4-1: execution: PASS > conformance/interfaces/pthread_attr_setdetachstate/1-1: build: PASS > conformance/interfaces/pthread_attr_setdetachstate/1-1: link: PASS > conformance/interfaces/pthread_attr_setdetachstate/1-2: build: PASS > conformance/interfaces/pthread_attr_setdetachstate/1-2: link: PASS > conformance/interfaces/pthread_attr_setdetachstate/2-1: build: PASS > conformance/interfaces/pthread_attr_setdetachstate/2-1: link: PASS > conformance/interfaces/pthread_attr_setdetachstate/4-1: build: PASS > conformance/interfaces/pthread_attr_setdetachstate/4-1: link: PASS > conformance/interfaces/pthread_attr_setdetachstate/1-1: execution: PASS > conformance/interfaces/pthread_attr_setdetachstate/1-2: execution: PASS > <lockup> + crash > ``` > > pthread_attr_setdetachstate seems to trigger a crash at the moment. New description: Our pthread implementation still has some crashes and bugs. The open posix test suite is handy to bring these to the surface... http://sourceforge.net/projects/posixtest/files/posixtest/posixtestsuite-1.5.2/ {{{ /Builds/posixtestsuite> ./run_tests THR Executing threads tests conformance/interfaces/pthread_atfork/1-1: build: PASS conformance/interfaces/pthread_atfork/1-1: link: PASS conformance/interfaces/pthread_atfork/1-2: build: PASS conformance/interfaces/pthread_atfork/1-2: link: PASS conformance/interfaces/pthread_atfork/2-1: build: PASS conformance/interfaces/pthread_atfork/2-1: link: PASS conformance/interfaces/pthread_atfork/2-2: build: PASS conformance/interfaces/pthread_atfork/2-2: link: PASS conformance/interfaces/pthread_atfork/3-2: build: PASS conformance/interfaces/pthread_atfork/3-2: link: PASS conformance/interfaces/pthread_atfork/3-3: build: PASS conformance/interfaces/pthread_atfork/3-3: link: PASS conformance/interfaces/pthread_atfork/4-1: build: PASS conformance/interfaces/pthread_atfork/4-1: link: PASS Building timeout helper files echo `./t0 0; echo $?` > ./t0.val conformance/interfaces/pthread_atfork/1-1: execution: PASS conformance/interfaces/pthread_atfork/1-2: execution: PASS conformance/interfaces/pthread_atfork/2-1: execution: PASS conformance/interfaces/pthread_atfork/2-2: execution: PASS conformance/interfaces/pthread_atfork/3-1: execution: PASS conformance/interfaces/pthread_atfork/3-2: execution: PASS conformance/interfaces/pthread_atfork/3-3: execution: PASS conformance/interfaces/pthread_atfork/4-1: execution: PASS conformance/interfaces/pthread_attr_destroy/1-1: build: PASS conformance/interfaces/pthread_attr_destroy/1-1: link: PASS conformance/interfaces/pthread_attr_destroy/2-1: build: PASS conformance/interfaces/pthread_attr_destroy/2-1: link: PASS conformance/interfaces/pthread_attr_destroy/3-1: build: PASS conformance/interfaces/pthread_attr_destroy/3-1: link: PASS conformance/interfaces/pthread_attr_destroy/1-1: execution: PASS conformance/interfaces/pthread_attr_destroy/2-1: execution: PASS conformance/interfaces/pthread_attr_destroy/3-1: execution: PASS conformance/interfaces/pthread_attr_getdetachstate/1-1: build: PASS conformance/interfaces/pthread_attr_getdetachstate/1-1: link: PASS conformance/interfaces/pthread_attr_getdetachstate/1-2: build: PASS conformance/interfaces/pthread_attr_getdetachstate/1-2: link: PASS conformance/interfaces/pthread_attr_getdetachstate/1-1: execution: PASS conformance/interfaces/pthread_attr_getdetachstate/1-2: execution: PASS conformance/interfaces/pthread_attr_getdetachstate/2-1: execution: PASS conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED conformance/interfaces/pthread_attr_getinheritsched/2-1: execution: PASS conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED conformance/interfaces/pthread_attr_getschedparam/2-1: execution: PASS conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED conformance/interfaces/pthread_attr_getschedpolicy/1-1: execution: PASS conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED conformance/interfaces/pthread_attr_getschedpolicy/3-1: execution: PASS conformance/interfaces/pthread_attr_getscope/1-1: build: PASS conformance/interfaces/pthread_attr_getscope/1-1: link: PASS conformance/interfaces/pthread_attr_getscope/1-1: execution: PASS conformance/interfaces/pthread_attr_getscope/2-1: execution: PASS conformance/interfaces/pthread_attr_getstack/1-1: build: FAILED conformance/interfaces/pthread_attr_getstack/1-1: build: FAILED conformance/interfaces/pthread_attr_getstack/2-1: execution: PASS make: Nothing to be done for `build-tests'. make: Nothing to be done for `run-tests'. conformance/interfaces/pthread_attr_getstacksize/1-1: build: PASS conformance/interfaces/pthread_attr_getstacksize/1-1: link: PASS conformance/interfaces/pthread_attr_getstacksize/1-1: execution: PASS conformance/interfaces/pthread_attr_getstacksize/2-1: execution: PASS conformance/interfaces/pthread_attr_init/1-1: build: PASS conformance/interfaces/pthread_attr_init/1-1: link: PASS conformance/interfaces/pthread_attr_init/2-1: build: PASS conformance/interfaces/pthread_attr_init/2-1: link: PASS conformance/interfaces/pthread_attr_init/3-1: build: PASS conformance/interfaces/pthread_attr_init/3-1: link: PASS conformance/interfaces/pthread_attr_init/4-1: build: PASS conformance/interfaces/pthread_attr_init/4-1: link: PASS conformance/interfaces/pthread_attr_init/1-1: execution: PASS conformance/interfaces/pthread_attr_init/2-1: execution: PASS conformance/interfaces/pthread_attr_init/3-1: execution: PASS conformance/interfaces/pthread_attr_init/4-1: execution: PASS conformance/interfaces/pthread_attr_setdetachstate/1-1: build: PASS conformance/interfaces/pthread_attr_setdetachstate/1-1: link: PASS conformance/interfaces/pthread_attr_setdetachstate/1-2: build: PASS conformance/interfaces/pthread_attr_setdetachstate/1-2: link: PASS conformance/interfaces/pthread_attr_setdetachstate/2-1: build: PASS conformance/interfaces/pthread_attr_setdetachstate/2-1: link: PASS conformance/interfaces/pthread_attr_setdetachstate/4-1: build: PASS conformance/interfaces/pthread_attr_setdetachstate/4-1: link: PASS conformance/interfaces/pthread_attr_setdetachstate/1-1: execution: PASS conformance/interfaces/pthread_attr_setdetachstate/1-2: execution: PASS <lockup> + crash }}} pthread_attr_setdetachstate seems to trigger a crash at the moment. -- -- Ticket URL: <https://dev.haiku-os.org/ticket/11815#comment:1> Haiku <https://dev.haiku-os.org> Haiku - the operating system.