1.5.19-4: global constructors not working with dlopen()

Martin linkscrazy@yahoo.com
Wed Feb 1 19:48:00 GMT 2006


I'm having trouble with global constructors/destructors not
executing/crashing within a dlopened DLL.

I've attached a test-case.
FYI: This works fine with 1.5.13-1.

Thanks for your help.
Martin

ps:
Here's my shell log.

Martin@viper[523]$ make clean
/bin/rm -f T1_dl *.exe *.dll *.so *~ mapfile
Martin@viper[524]$ make; ./T1_dl
g++ -Wall -Wl,-Map,mapfile -shared T1.cpp T1_inst.cpp -o T1_inst.dll
gcc -Wall T1_dl.c -o T1_dl
opening...
Martin@viper[525]$ make nocygwin; ./T1_dl
g++ -Wall -mno-cygwin -shared T1.cpp T1_inst.cpp -o T1_inst.dll
gcc -Wall T1_dl.c -o T1_dl
opening...
T1 object created.
opened successfully
closing...
T1 object deleted.
closed
Martin@viper[526]$ make t1inst; ./T1_inst
g++ -Wall -DT1_INST_EXE T1.cpp T1_inst.cpp -o T1_inst
T1 object created.
running
exiting...
T1 object deleted.
Martin@viper[527]$


	

	
		
__________________________________________________________ 
Find your next car at http://autos.yahoo.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 445 bytes
Desc: 402397780-Makefile
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/1e8515ed/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T1.cpp
Type: application/octet-stream
Size: 301 bytes
Desc: 2580513814-T1.cpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/1e8515ed/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T1.hpp
Type: application/octet-stream
Size: 147 bytes
Desc: 2954177392-T1.hpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/1e8515ed/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T1_dl.c
Type: application/octet-stream
Size: 534 bytes
Desc: 190956446-T1_dl.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/1e8515ed/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T1_inst.cpp
Type: application/octet-stream
Size: 197 bytes
Desc: 2018291270-T1_inst.cpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/1e8515ed/attachment-0004.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list