http://bugs.winehq.org/show_bug.cgi?id=14427
Summary: widl crashes in dlls/rpcrt4 Product: Wine Version: 1.1.1 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: ambro@b4ever.net
Created an attachment (id=14749) --> (http://bugs.winehq.org/attachment.cgi?id=14749) gdb backtrace
I am unable to compile Wine 1.1.1. 1.0 and 1.1.0 compile fine. I am getting the following error:
../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -D_RPCRT4_ -DCOM_NO_WINDOWS_H -DMSWMSG -c -C epm_c.c epm.idl make[2]: *** [epm_c.c] Segmentation fault
Interestingly, it crashes only if widl is compiled with -O2 (0,1 and 3 work). I compiled widl with "-O2 -g" and ran it in gdb. I'm attaching the backtrace. I'm using Gentoo and gcc version is "Gentoo 4.1.2 p1.0.2".
If you think this is compiler related, should I post a bug at Gentoo?
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2008-07-12 10:57:36 --- Have you tried "ulimit -s unlimited" ?
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #2 from Ambro ambro@b4ever.net 2008-07-12 11:26:11 --- doesn't make any difference
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2008-07-14 15:08:45 --- Please run it under gdb and attach the backtrace (as a text file).
http://bugs.winehq.org/show_bug.cgi?id=14427
Ambro ambro@b4ever.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #4 from Ambro ambro@b4ever.net 2008-07-15 05:49:56 --- Well, it's probably caused by a buggy kernel (2.6.25), as it doesn't happen in a chroot from another system (kernel 2.6.24), and also not after updating to kernel 2.6.26. Sorry about that; I'm closing it as invalid.
http://bugs.winehq.org/show_bug.cgi?id=14427
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Lei Zhang thestig@google.com 2008-07-16 15:34:36 --- closing.
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #6 from Peter pmlists@free.fr 2008-08-19 15:53:16 --- Created an attachment (id=15494) --> (http://bugs.winehq.org/attachment.cgi?id=15494) gdb backtrace
http://bugs.winehq.org/show_bug.cgi?id=14427
Peter pmlists@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pmlists@free.fr
--- Comment #7 from Peter pmlists@free.fr 2008-08-19 15:54:20 --- Hello,
I get also a Segmentation fault, but with linux kernel 2.6.26.
Linux 2.6.26-6-default #1 SMP 2008-07-17 18:46:12 +0200 x86_64 x86_64 x86_64 GNU/Linux openSUSE-11.0
I attach the backtrace.
The status should perhaps be changed to "open".
Cheers, Peter
http://bugs.winehq.org/show_bug.cgi?id=14427
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|INVALID |
--- Comment #8 from Vitaliy Margolen vitaliy@kievinfo.com 2008-08-19 16:29:25 --- Does the problem happen with current Wine git?
Reopening.
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #9 from Peter pmlists@free.fr 2008-08-20 00:54:09 --- No problem with git-version. Excuse me, I had only tried 1.1.1 (as the OP) before.
Cheers, Peter
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #10 from Peter pmlists@free.fr 2008-08-20 02:40:23 --- I have to investigate further, because it fails again with openSUSE-factory rpm-spec file. It has nothing to do with the wine version (1.1.1 or git). It compiles cleanly with "./configure && make" and it fails with "rpmbuild -bb --target i586 /usr/src/packages/SPECS/wine.spec"
So don't close it too soon, I'm going to do some further tests this evening (there are no patches, so I think it must be the compiler flags...).
Cheers, Peter
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #11 from Peter pmlists@free.fr 2008-08-21 02:08:10 --- These are the CFLAGS, that lead to the Segmentation fault: -O2 -m32 -mtune=i686 -D_FORTIFY_SOURCE=2
Command for reproducing: make distclean ; autoconf && CFLAGS="-O2 -m32 -mtune=i686 -D_FORTIFY_SOURCE=2" ./configure && make depend && make -C libs/port && make -C libs/wpp && make -C tools/widl && make -C dlls/rpcrt4 epm_c.c
Cheers, Peter
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #12 from Dmitry Timoshkov dmitry@codeweavers.com 2008-08-21 02:18:40 --- Does it help if you remove -D_FORTIFY_SOURCE=2 ?
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #13 from Peter pmlists@free.fr 2008-08-21 02:54:52 --- These are the minimal options to reproduce the segmentation fault: -O2 -mtune=i686 -D_FORTIFY_SOURCE=2
Whenever you omit one of these, there won't be a segmentation fault. So perhaps, it's a compiler bug. This is my version: gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]
Cheers, Peter
http://bugs.winehq.org/show_bug.cgi?id=14427
Gregor Münch greg87@online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |greg87@online.de
--- Comment #14 from Gregor Münch greg87@online.de 2008-09-15 13:32:05 --- Hi, I have exactly the same issue. Using: gcc-4.3.1, glibc-2.8_p20080602-r0 on gentoo
With: "CC=gcc -m32" CFLAGS="-march=native -pipe"
http://bugs.winehq.org/show_bug.cgi?id=14427
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #15 from Lei Zhang thestig@google.com 2008-09-15 17:22:57 --- confirming then
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #16 from Lukáš Krejza gryffus@hkfree.org 2008-10-20 13:52:19 --- Created an attachment (id=16760) --> (http://bugs.winehq.org/attachment.cgi?id=16760) cd dlls/rpcrt4 && make output
I am getting same error...
It segfaults only with -O2
CFLAGS="-O2 -g" ./configure
My system is:
Linux gryffus 2.6.25.9-4-default #1 SMP 2008-06-28 00:00:07 +0200 i686 athlon i386 GNU/Linux gcc (SUSE Linux) 4.3.2 20080613 (prerelease) [gcc-4_3-branch revision 136744] glibc-2.8-18
Steps to reproduce on clean git source:
CFLAGS="-O2 -g" ./configure make depend make include cd dlls/rpcrt4 && make
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #17 from Lukáš Krejza gryffus@hkfree.org 2008-10-20 13:55:49 --- Created an attachment (id=16761) --> (http://bugs.winehq.org/attachment.cgi?id=16761) gdb backtrace
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #18 from Austin English austinenglish@gmail.com 2009-04-20 12:28:46 --- Is this still an issue in current (1.1.19 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #19 from Austin English austinenglish@gmail.com 2009-10-29 15:27:04 --- Works fine here in git. Is this still an issue in current (1.1.32 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=14427
--- Comment #20 from Peter pmlists@free.fr 2009-11-03 04:25:36 --- No more problem here with 1.1.32. Cheers, Peter
http://bugs.winehq.org/show_bug.cgi?id=14427
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #21 from Dmitry Timoshkov dmitry@codeweavers.com 2009-11-03 05:34:13 --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=14427
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #22 from Alexandre Julliard julliard@winehq.org 2009-11-13 12:43:06 --- Closing bugs fixed in 1.1.33.