This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: run2.exe segfaults when GDI and X11 elements are present


Charles Wilson wrote:
> Still hunting the stack corruption/segv bug. PTC!

I think I found it. Before, I was dynamically loading function pointers
to XOpenDisplay and XCloseDisplay in the main thread, and passing them
to the worker thread as user data.  By deferring the calls to
dlopen/dlsym into the worker thread itself, the segvs go away (I'm not
sure -- it's hard to debug threads other than main in cygwin -- but I
*think* the function pointers became invalid in the worker thread
context, in the previous scenario).

So, give r20 a shot. (mintty is still invisible -- but at least run2
doesn't appear to segfault).

--
Chuck

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]