Bug 650875 - Office 2007 crashes due to compiling with Fortify
Summary: Office 2007 crashes due to compiling with Fortify
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wine
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 652552 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-08 08:55 UTC by Matt Hirsch
Modified: 2010-11-26 21:08 UTC (History)
4 users (show)

Fixed In Version: wine-1.3.7-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-19 00:09:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Wine HQ 24606 0 None None None Never
Wine HQ 25073 0 None None None Never

Description Matt Hirsch 2010-11-08 08:55:51 UTC
Description of problem:

According to the wine maintainers, compiling wine with Fortify causes problems in Office 2007.

Version-Release number of selected component (if applicable):
wine-1.3.5-1.fc14.i686

How reproducible:
always

Steps to Reproduce:
1. Attempt to open a file dialog in Office 2007 suite programs
  
Actual results:
Soft crash

Expected results:
Normal operation

Additional info:
Please see this bug in the winehq.org bug tracker:

http://bugs.winehq.org/show_bug.cgi?id=25073

Comment 1 Matt Hirsch 2010-11-09 20:30:02 UTC
I rebuilt 32-bit wine rpms without fortify that solve this issue. You can find them here:

http://bit.ly/99vt0h

I just made one change to the spec file to enable this:


--- wine.spec.original	2010-11-09 15:21:49.273238715 -0500
+++ wine.spec	2010-11-09 13:29:41.522533539 -0500
@@ -433,7 +433,7 @@
 autoreconf
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS -Wno-error"
+export CFLAGS="$RPM_OPT_FLAGS -Wno-error -D_FORTIFY_SOURCE=0"
 %configure \
 	--sysconfdir=%{_sysconfdir}/wine \
 	--x-includes=%{_includedir} --x-libraries=%{_libdir} \

No idea if this is the right way to do it, but I have my horrible windows file dialogs back. 

Also, note that I added another "See also" link to the original bug in winehq. Any chance we can just build wine in the official repos without fortify until fortify is fixed?

Comment 2 Matt Hirsch 2010-11-11 04:42:42 UTC
This issue still occurs with wine-1.3.6-1.fc14.i686. I'll rebuild it with my above modification and test.

Comment 3 Andreas Bierfert 2010-11-13 14:45:57 UTC
*** Bug 652552 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2010-11-13 15:47:46 UTC
wine-1.3.7-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/wine-1.3.7-1.fc13

Comment 5 Fedora Update System 2010-11-13 15:48:37 UTC
wine-1.3.7-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/wine-1.3.7-1.fc14

Comment 6 Andreas Bierfert 2010-11-14 13:13:18 UTC
*** Bug 652552 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2010-11-14 21:27:59 UTC
wine-1.3.7-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update wine'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/wine-1.3.7-1.fc14

Comment 8 Matt Hirsch 2010-11-15 00:14:51 UTC
This update has not fixed the bug. I've installed

wine-1.3.7-1.fc14.i686 and friends,

and I still get Office crashing with this:


*** buffer overflow detected ***: /home/mhirsch/.wine/drive_c/Program Files/Microsoft Office/Office12/POWERPNT.EXE terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x4d)[0x681345dd]
/lib/libc.so.6(+0x4cb4c5fa)[0x681325fa]
/lib/libc.so.6(__strcpy_chk+0x3f)[0x681318af]
/usr/bin/../lib/wine/shell32.dll.so(_ILCreateEntireNetwork+0x5d)[0x202278dd]
/usr/bin/../lib/wine/shell32.dll.so(+0x66bd5)[0x20251bd5]
/usr/bin/../lib/wine/shell32.dll.so(SHELL32_ParseNextElement+0x9a)[0x20264dca]
/usr/bin/../lib/wine/shell32.dll.so(+0x5e831)[0x20249831]


So, its still built with fortify, which is still incorrectly killing the process.

Comment 9 Nicholas Kudriavtsev 2010-11-15 18:49:45 UTC
> This update has not fixed the bug
I confirm that with Visio 2003.

Comment 10 Andreas Bierfert 2010-11-16 22:01:07 UTC
Please try http://koji.fedoraproject.org/koji/taskinfo?taskID=2605375
 and report back here.

Comment 11 Nicholas Kudriavtsev 2010-11-17 17:44:06 UTC
No change with version 1.3.7-2 from Comment #10

[nickk@nick-k Visio11]$ wine VISIO.EXE 
fixme:win:EnumDisplayDevicesW ((null),0,0x32f514,0x00000000), stub!
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x1008e 0x00000000
fixme:imm:ImmReleaseContext (0x10076, 0x12a698): stub
*** buffer overflow detected ***: VISIO.EXE terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x4d)[0x681125dd]
/lib/libc.so.6(+0x4e95fa)[0x681105fa]
/lib/libc.so.6(__strcpy_chk+0x3f)[0x6810f8af]
/usr/bin/../lib/wine/shell32.dll.so(_ILCreateEntireNetwork+0x5d)[0x685208dd]
/usr/bin/../lib/wine/shell32.dll.so(+0x66bd5)[0x6854abd5]
/usr/bin/../lib/wine/shell32.dll.so(SHELL32_ParseNextElement+0x9a)[0x6855ddca]
/usr/bin/../lib/wine/shell32.dll.so(+0x5e831)[0x68542831]

Comment 12 Nicholas Kudriavtsev 2010-11-17 17:54:36 UTC
Sorry! I was wrong, had not updated wine-core and wine-wow. Now file dialog opens without error.

Comment 13 Matt Hirsch 2010-11-17 19:17:14 UTC
I'm also confirming that wine-1.3.7-2.fc14.i686 solves this for me.

Thanks.

Comment 14 Fedora Update System 2010-11-19 00:09:04 UTC
wine-1.3.7-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2010-11-26 21:08:20 UTC
wine-1.3.7-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.