how do I find where wine itself is segfaulting?

Mike McCormack mike at
Thu Dec 8 11:40:04 CST 2005

Bill Medland wrote:

>>Wine crashes the first time it enters/uses a entry/function
>>using the debug setup from ntdll/relay.c:RELAY_SetupDLL.
>>(Which happens to be a RtlInitUnicode in
>>kernel/module:GetModuleHandleW) .
> So is anyone actively looking into this?  I'll make a start until 
> someone says that they are already doing it.

We have a hack in CrossOver's Wine to avoid crashes in +relay.  This 
might help you see what's happening after the point of the crash in 
Wine.  See the attached patch.

-------------- next part --------------
Index: dlls/ntdll/relay.c
RCS file: /cvstrees/crossover/office/wine/dlls/ntdll/relay.c,v
retrieving revision
retrieving revision 1.22
diff -u -r1.1.1.19 -r1.22
--- dlls/ntdll/relay.c	30 Nov 2005 13:23:56 -0000
+++ dlls/ntdll/relay.c	30 Nov 2005 14:52:06 -0000	1.22
@@ -847,6 +847,7 @@
     int i,nostring;
+    return;
     if (!HIWORD(x) || TRACE_ON(seh)) return; /* trivial reject to avoid faults */

More information about the wine-devel mailing list