http://bugs.winehq.org/show_bug.cgi?id=7214
------- Additional Comments From xerox_xerox2000@yahoo.co.uk 2007-21-01 13:18 -------
Does the same apply when you rebuild from scratch ?
I always do a "rebuild all" , which compiles everything from scratch.
I'm not sure whether it's a bug that 'dt' is zero in demangle_datatype, but that seems to be the reason it crashes, when it tries to print the error. The crash is easy to reproduce (very dumb example):
1. For example apply the patch below:
diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c index eaa0f70..4bf86d5 100644 --- a/dlls/kernel32/sync.c +++ b/dlls/kernel32/sync.c @@ -86,7 +86,12 @@ HANDLE get_BaseNamedObjects_handle(void) * Sleep (KERNEL32.@) */ VOID WINAPI Sleep( DWORD timeout ) -{ +{char c; +int i; +c=0; +for(i=0;i<100;i++) +ERR("this will crash %c\n",c); + SleepEx( timeout, FALSE ); }
2. Run the following program:
#include "windows.h" int main() { Sleep(10); }
You'll get the same crash...