Opened 14 years ago
Closed 11 years ago
#2470 closed Support Requests (duplicate)
Problem with threads started in a dynamically loaded bundle under Mac OS X
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | thread |
Version: | Boost 1.36.0 | Severity: | Problem |
Keywords: | mac bundle thread | Cc: | viboes |
Description
The attached program (main.cpp) loads a bundle and calls the function exported herein. The code in the bundle (bundle.cpp) simply starts a thread, joins it and exits. Then the bundle is unloaded. After a few hundred of these cycles program crashes.
To compile and create the bundle one might use the following command lines:
g++ -x c++ -arch i386 -IPATH/TO/BOOST/HEADER -c bundle.cpp -o bundle.o mkdir -p bundle.plugin/Contents/MacOS g++ -o bundle.plugin/Contents/MacOS/bundle -LPATH/TO/BOOST/LIB -lboost_thread-xgcc40-mt-1_37 -arch i386 -bundle bundle.o
and for the loader:
g++ -x c++ -arch i386 -I/Developer/Headers/FlatCarbon/ -c main.cpp -o main.o g++ -o main -framework CoreFoundation -arch i386 main.o
I reproduced this behavior with macosx 10.4 / 10.5 and boost 1.35/1.36/1.37/current trunk. My gcc version is 4.0.1.
Attachments (2)
Change History (7)
by , 14 years ago
by , 14 years ago
Attachment: | bundle.cpp added |
---|
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Cc: | added |
---|---|
Milestone: | Boost 1.38.0 → To Be Determined |
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 11 years ago
Type: | Bugs → Feature Requests |
---|
Moved to Support request until resolution clarified
comment:4 by , 11 years ago
Type: | Feature Requests → Support Requests |
---|
comment:5 by , 11 years ago
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Duplicate. #3926 thread_specific_ptr + dlopen library causes a SIGSEGV, or vice versa?
Could we consider that this is a duplicate of #3926 thread_specific_ptr + dlopen library causes a SIGSEGV, or vice versa?