run2.exe segfaults when GDI and X11 elements are present

Charles Wilson cygwin@cwilson.fastmail.fm
Sun Dec 27 09:56:00 GMT 2009


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


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /