WineHQ
Bug Tracking Database – Bug 28463

 Bugzilla

 

Last modified: 2014-02-20 12:37:15 UTC  

oleaut32/tmarshal.c test crashes if CFLAGS="-fstack-protector-all" is used

Bug 28463 - oleaut32/tmarshal.c test crashes if CFLAGS="-fstack-protector-all" is used
oleaut32/tmarshal.c test crashes if CFLAGS="-fstack-protector-all" is used
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: oleaut32
1.3.28
x86 Linux
: P2 enhancement
: ---
Assigned To: Mr. Bugs
http://wiki.debian.org/Hardening
: download, source, testcase
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-09-21 19:49 UTC by Austin English
Modified: 2014-02-20 12:37 UTC (History)
1 user (show)

See Also:
Regression SHA1:
Fixed by SHA1: 2915e47979e31a8911a4f95d2d90264e6d6a0f40
Distribution: ---
Staged patchset:


Attachments
backtrace (7.28 KB, text/plain)
2011-09-21 19:49 UTC, Austin English
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English 2011-09-21 19:49:48 UTC
Created attachment 36502 [details]
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
Comment 1 Austin English 2014-02-19 17:43:29 UTC
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.
Comment 2 Alexandre Julliard 2014-02-20 12:37:15 UTC
Closing bugs fixed in 1.7.13.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers