Created attachment 157202 [details] test program When building ARM packages on stable/10, using poudriere + qemu-user-static after revision 385142, binaries linked against -pthread crash with segmentation fault. For instance, you can use net/openldap24-client or net/ntp to test. I'm going to attach conftest.c, obtained from openldap24-client configure script, that can be used to test too, here are compiler arguments: cc -o conftest -O2 -pipe -mfloat-abi=softfp -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync -fno-strict-aliasing -I/usr/local/include conftest.c -pthread -L/usr/local/lib
emulators/qemu-user-static is maintained by nox@ I won't reassign since I presume all people on this issue know whats going on, but CC'ing MAINTAINER for maintainer-feedback
https://github.com/seanbruno/qemu-bsd-user/commit/bdffcf3bb05520fa064b03a15037406e637db72b Stacey has come up with this change and it resolves things for me. I'll ask the port maintainer to do an update.
This patch fixed the issue for me. Thanks!
A commit references this bug: Author: nox Date: Fri May 29 18:23:31 UTC 2015 New revision: 387876 URL: https://svnweb.freebsd.org/changeset/ports/387876 Log: Catch up with github tree, fixing bsd-user pthread crashes among other things - changelog: https://github.com/seanbruno/qemu-bsd-user/commits/bsd-user PR: 200485 Changes: head/emulators/qemu-sbruno/Makefile head/emulators/qemu-sbruno/distinfo
Committed. Thanks!