[Bug 28463] New: oleaut32/tmarshal.c test crashes if CFLAGS="-fstack-protector-all" is used

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Sep 21 19:49:50 CDT 2011


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 at winehq.org
        ReportedBy: austinenglish at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list