Date: Mon, 28 Aug 2017 19:30:20 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221882] Segmentation fault encountered while using boost::thread Message-ID: <bug-221882-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221882 Bug ID: 221882 Summary: Segmentation fault encountered while using boost::thread Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: shivanshrai84@gmail.com CC: asomers@FreeBSD.org, brooks@FreeBSD.org, shivansh@freebsd.org I installed boost C++ libraries in my FreeBSD-12.0-CURRENT machine via the = port `boost-all-1.64.0` ; However, on using `boost::thread`, I always receive a segmentation fault during execution. This behavior can be reproduced by run= ning the reference program [1] available at the boost website. Steps to reproduce - Save the program [1] as `boost_test.cpp` and compile it - ``` >> g++ -std=3Dc++11 boost_test.cpp -I /usr/local/include -lboost_system -lb= oost_thread -L /usr/local/lib ``` The above step should result in a successful compilation and generation of = the compiled binary. Execute the generated binary - ``` ./a.out ``` This will result in a segmentation fault. The same steps followed on my Linux machine produce the following output successfully - ``` 0 1 2 3 4 ``` [1]: https://theboostcpplibraries.com/boost.thread-management#ex.thread_01 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221882-13>