http://bugs.winehq.org/show_bug.cgi?id=3738
Summary: Loading and unloading builtin OpenGL.DLL leads to crash Product: Wine Version: CVS Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P3 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: saulius.krasuckas@elst.vtu.lt
Hmmm, I put simple function inside the heap wine test (it was very simple and easy to modify), by running which I get some exception:
| static void test_UnloadOpenGL() | { | HMODULE hGL; | | trace("+++ start\n"); | hGL = LoadLibrary("opengl32.dll"); | if(!hGL) | { | trace("--- opengl32.dll failed to load\n"); | return; | } | trace("+++ loaded\n"); | FreeLibrary(hGL); | trace("+++ unloaded\n"); | }
$ WINEDLLOVERRIDES='imm32=' ./wine dlls/kernel/tests/kernel32_test.exe.so heap | heap.c:32:+++ start | heap.c:39:+++ loaded | heap.c:41:+++ unloaded | heap: 0 tests executed, 0 marked as todo, 0 failures. | wine: Unhandled exception (thread 0009), starting debugger... | WineDbg starting on pid 0x8 | Unhandled exception: page fault on read access to 0x7f6d892a in 32-bit code (0x7fca5147). | In 32 bit mode. | Register dump: | CS:0073 SS:007b DS:007b ES:007b FS:1007 GS:0033 | EIP:7fca5147 ESP:7f9bf870 EBP:7f9bf8c8 EFLAGS:00010246( - 00 -RIZP1) | EAX:00000001 EBX:7fced600 ECX:ffffffff EDX:7f6d892a | ESI:00000000 EDI:00000000
I will attach detailed logs later. BTW, backtraces differs quite a lot when I run compiled PE file and compiled ELF file.