1.7.9: static const std::string initialization lost in child process when using fork, dlopen

Thomas D. Dean tomdean@speakeasy.org
Sun Aug 21 23:56:00 GMT 2011


On Sun, 2011-08-21 at 18:19 -0400, Christopher Faylor wrote:
> 're reporting.
> 
> If you don't want to try a snapshot for some reason then you could also
> try setting the base address of the DLL by using the --auto-image-base
> option when linking the DLL.

I used 

g++ -Wall -I. -shared -g -c dll.cpp -o dll.o
g++ -Wall -shared -o libdll.dll dll.o
g++ -Wall -I. -g -c dlltest.cpp -o dlltest.o
g++ -Wall -o dlltest dlltest.o -L. -ldll -Wl,--enable-auto-image-base

I still have the stackdump problem.

I used hd to look at the files I created with emacs and there are no
strange characters.

tomdean


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list