[Bug 221882] Segmentation fault encountered while using boost::thread
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 28 19:30:21 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221882
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 at FreeBSD.org
Reporter: shivanshrai84 at gmail.com
CC: asomers at FreeBSD.org, brooks at FreeBSD.org,
shivansh at 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 running
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=c++11 boost_test.cpp -I /usr/local/include -lboost_system -lboost_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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list