http://bugs.winehq.org/show_bug.cgi?id=28463
Summary: oleaut32/tmarshal.c test crashes if CFLAGS="-fstack-protector-all" is used Product: Wine Version: 1.3.28 Platform: x86 URL: http://wiki.debian.org/Hardening OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: enhancement Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Created an attachment (id=36502) --> (http://bugs.winehq.org/attachment.cgi?id=36502) backtrace
make test passes for me fine if I use -fstack-protector, but if I use fstack-protector-all, some tests fail. Next up, oleaut32/tmarshal.c:
../../../tools/runtest -q -P wine -M oleaut32.dll -T ../../.. -p oleaut32_test.exe.so tmarshal.c && touch tmarshal.ok err:ole:TMStubImpl_Invoke invoke call failed with exception 0xc0000005 (-1073741819) err:ole:xCall RpcChannelBuffer SendReceive failed, c0000005 tmarshal.c:1034: Test failed: IKindaEnumWidget_Next failed with error 0xc0000005 wine: Unhandled page fault on read access to 0x889bc38d at address 0x68516376 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x889bc38d in 32-bit code (0x68516376). ... Backtrace: =>0 0x68516376 test_typelibmarshal+0x346() [/home/austin/wine-git/dlls/oleaut32/tests/tmarshal.c:1039] in oleaut32_test (0x0033fb78) 1 0x68518ebb func_tmarshal+0x4a() [/home/austin/wine-git/dlls/oleaut32/tests/tmarshal.c:1607] in oleaut32_test (0x0033fcc8) 2 0x685f344c run_test+0x16b(name=<is not available>) [/home/austin/wine-git/dlls/oleaut32/tests/../../../include/wine/test.h:556] in oleaut32_test (0x0033fd28) 3 0x685f3662 main+0x161(argc=<couldn't compute location>, argv=<couldn't compute location>) [/home/austin/wine-git/dlls/oleaut32/tests/../../../include/wine/test.h:624] in oleaut32_test (0x0033fdf8) 4 0x685f436c __wine_spec_exe_entry+0x8b(peb=0x7ffdf000) [/home/austin/wine-git/dlls/winecrt0/exe_entry.c:36] in oleaut32_test (0x0033fe50) 5 0x7b85f91c call_process_entry+0xb() in kernel32 (0x0033fe68) 6 0x7b86361a start_process+0x69(peb=0x7ffdf000) [/home/austin/wine-git/dlls/kernel32/process.c:1091] in kernel32 (0x0033feb8) 7 0x7bc77df8 call_thread_func+0xb() in ntdll (0x0033fec8) 8 0x7bc78061 call_thread_entry_point+0x90(entry=0x7b8635b0, arg=0x7ffdf000) [/home/austin/wine-git/dlls/ntdll/signal_i386.c:2499] in ntdll (0x0033ffb8) 9 0x7bc4ecd9 start_process+0x28(kernel_start=0x7b8635b0) [/home/austin/wine-git/dlls/ntdll/loader.c:2612] in ntdll (0x0033ffe8) 10 0x6802884d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000) 0x68516376 test_typelibmarshal+0x346 [/home/austin/wine-git/dlls/oleaut32/tests/tmarshal.c:1039] in oleaut32_test: call *0xc(%edx) 1039 hr = IWidget_GetTypeInfoCount(pWidget, &uval);
testing this when I noticed that Debian is planning to harden packages by default: http://wiki.debian.org/Hardening http://lists.debian.org/debian-devel/2011/09/msg00054.html
http://bugs.winehq.org/show_bug.cgi?id=28463
nathan.n saturn_systems@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saturn_systems@yahoo.com
https://bugs.winehq.org/show_bug.cgi?id=28463
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED URL| |http://wiki.debian.org/Hard |http://wiki.debian.org/Hard |ening |ening | Resolution|--- |FIXED
--- Comment #1 from Austin English austinenglish@gmail.com --- Works now, fixed by 2915e47979e31a8911a4f95d2d90264e6d6a0f40.
austin@aw25 ~/wine-test/dlls/ieframe/tests $ git describe wine-1.7.12-213-gb0b6728 austin@aw25 ~/wine-test/dlls/ieframe/tests $ gcc --version gcc (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
https://bugs.winehq.org/show_bug.cgi?id=28463
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2915e47979e31a8911a4f95d2d9 | |0264e6d6a0f40
https://bugs.winehq.org/show_bug.cgi?id=28463
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |oleaut32
https://bugs.winehq.org/show_bug.cgi?id=28463
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.13.