public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine
@ 2010-11-13 22:39 austinenglish at gmail dot com
  2010-11-13 23:10 ` [Bug target/46468] " pinskia at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: austinenglish at gmail dot com @ 2010-11-13 22:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

           Summary: enabling -fomit-frame-pointer by default breaks Wine
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: austinenglish@gmail.com


I've noticed lately that 'winetricks -q fm20' fails on my machine. I finally
got around to running an svn bisect:

=============================================
Regression found!
Last good revision: r163193
First bad revision:
------------------------------------------------------------------------
r163196 | hjl | 2010-08-12 09:39:37 -0700 (Thu, 12 Aug 2010) | 16 lines

Turn on -fomit-frame-pointer by default for 32bit Linux/x86.

2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
        Uros Bizjak  <ubizjak@gmail.com>

    * config.gcc: Handle --enable-frame-pointer.

    * configure.ac: Add --enable-frame-pointer.
    * configure: Regenerated.

    * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
    (override_options): If not configured with --enable-frame-pointer,
    enable -fomit-frame-pointer (but not for TARGET_MACHO or when
    optimizing for size), -fasynchronous-unwind-tables and
    -maccumulate-outgoing-args by default.

=============================================

so, I tried compiling wine with -fno-omit-frame-pointer, still fails. The only
way to get a working wine was to compile gcc with --enable-frame-pointer.

The wine failure isn't too helpful:
$ wine /home/austin/.wine/dosdevices/c:/winetrickstmp/setup /qt
wine client error:3b: write: Bad file descriptor
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr
0x7dd247be
wine client error:3b: write: Bad file descriptor

however, the bug seems to be gcc producing bad code unless
--enable-frame-pointer is used.

-- 
-Austin


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
@ 2010-11-13 23:10 ` pinskia at gcc dot gnu.org
  2010-11-14 10:48 ` rguenth at gcc dot gnu.org
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-11-13 23:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-11-13 22:46:08 UTC ---
So compiling wine with -fomit-frame-pointer creates a broken wine?  Can you try
to find a small testcase.  Try first by bi-secting the object files.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
  2010-11-13 23:10 ` [Bug target/46468] " pinskia at gcc dot gnu.org
@ 2010-11-14 10:48 ` rguenth at gcc dot gnu.org
  2010-11-14 15:33 ` hjl.tools at gmail dot com
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-14 10:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl at gcc dot gnu.org

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-14 10:46:39 UTC ---
I think they require a FP for unwinding.  But indeed -fno-omit-frame-pointer
should work - can you check what code differences occur with
-fno-omit-frame-pointer vs. --enable-frame-pointer?


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
  2010-11-13 23:10 ` [Bug target/46468] " pinskia at gcc dot gnu.org
  2010-11-14 10:48 ` rguenth at gcc dot gnu.org
@ 2010-11-14 15:33 ` hjl.tools at gmail dot com
  2010-11-20 14:20 ` marcus at jet dot franken.de
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-14 15:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|hjl at gcc dot gnu.org      |hjl.tools at gmail dot com

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-14 15:03:09 UTC ---
It sounds like Wine doesn't use unwind library provided by
gcc to unwind the Linux stack. When Wine unwinds Linux
stack, it has to use the gcc unwind library, NOT Windows
unwind library, to unwind Linux stack.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (2 preceding siblings ...)
  2010-11-14 15:33 ` hjl.tools at gmail dot com
@ 2010-11-20 14:20 ` marcus at jet dot franken.de
  2010-11-25  8:50 ` marcus at jet dot franken.de
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-20 14:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

marcus at jet dot franken.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcus at jet dot
                   |                            |franken.de

--- Comment #4 from marcus at jet dot franken.de 2010-11-20 14:02:47 UTC ---
we use dwarf2 for unwinding.

the code should work with omit-frame-pointer too, we have some issues.

(Steam required no-omit as it hooked functions, but for this we have hooking
now.)

Have to test it myself.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (3 preceding siblings ...)
  2010-11-20 14:20 ` marcus at jet dot franken.de
@ 2010-11-25  8:50 ` marcus at jet dot franken.de
  2010-11-25 10:05 ` marcus at jet dot franken.de
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-25  8:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #5 from marcus at jet dot franken.de 2010-11-25 08:12:28 UTC ---
i can reproduce this.

I will try to bisect which file of wine gets miscompiled to get a smaller
testcase.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (4 preceding siblings ...)
  2010-11-25  8:50 ` marcus at jet dot franken.de
@ 2010-11-25 10:05 ` marcus at jet dot franken.de
  2010-11-26  8:05 ` marcus at jet dot franken.de
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-25 10:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #6 from marcus at jet dot franken.de 2010-11-25 10:01:26 UTC ---
first wine search converged on ntdll.dll.so being miscompiled (as i expected to
some degree).

i will tomorrow focus on the specific object files.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (5 preceding siblings ...)
  2010-11-25 10:05 ` marcus at jet dot franken.de
@ 2010-11-26  8:05 ` marcus at jet dot franken.de
  2010-11-26  8:08 ` marcus at jet dot franken.de
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-26  8:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #7 from marcus at jet dot franken.de 2010-11-26 07:26:56 UTC ---
.o hunting converged on dlls/ntdll/thread.o

however:
$ diff -u bad.lst good.lst
--- bad.lst     2010-11-26 08:25:05.000000000 +0100
+++ good.lst    2010-11-26 08:25:12.000000000 +0100
@@ -1,5 +1,5 @@

-bad/thread.o:     file format elf32-i386
+good/thread.o:     file format elf32-i386


 Disassembly of section .text:
$ 

testing now unwinding flags...


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (6 preceding siblings ...)
  2010-11-26  8:05 ` marcus at jet dot franken.de
@ 2010-11-26  8:08 ` marcus at jet dot franken.de
  2010-11-28 15:24 ` marcus at jet dot franken.de
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-26  8:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #8 from marcus at jet dot franken.de 2010-11-26 07:31:39 UTC ---
when I add 
-fno-omit-frame-pointer -fno-asynchronous-unwind-tables
it goes back to the "good" behaviour.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (7 preceding siblings ...)
  2010-11-26  8:08 ` marcus at jet dot franken.de
@ 2010-11-28 15:24 ` marcus at jet dot franken.de
  2010-11-28 15:48 ` hjl.tools at gmail dot com
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-28 15:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #9 from marcus at jet dot franken.de 2010-11-28 14:55:31 UTC ---
(gdb) bt
#0  0xffffe425 in __kernel_vsyscall ()
#1  0xf7d1eb46 in kill () from /lib/libc.so.6
#2  0x7efab485 in server_protocol_error (err=0x7efcfe71 "write errnp=%d,
reqfd=%d") at /home/marcus/projects/wine/dlls/ntdll/server.c:164
#3  0x7efab881 in send_request (req_ptr=0x6fd874) at
/home/marcus/projects/wine/dlls/ntdll/server.c:215
#4  wine_server_call (req_ptr=0x6fd874) at
/home/marcus/projects/wine/dlls/ntdll/server.c:289
#5  0x7efb1c10 in NtCreateEvent (EventHandle=0x6fd96c, DesiredAccess=2031619,
attr=0x6fd950, type=NotificationEvent, InitialState=0 '\000')
    at /home/marcus/projects/wine/dlls/ntdll/sync.c:278
#6  0x7ed992bc in start_debugger_atomic (epointers=0x6fd9ac) at
/home/marcus/projects/wine/dlls/kernel32/except.c:369
#7  UnhandledExceptionFilter (epointers=0x6fd9ac) at
/home/marcus/projects/wine/dlls/kernel32/except.c:456
#8  0x7efc1ece in __wine_exception_handler (record=0x6fddf8, frame=0x6fea90,
context=0x6fdb2c, pdispatcher=0x6fda80) at
/home/marcus/projects/wine/dlls/winecrt0/exception.c:90
#9  0x7efac825 in call_exception_handler () from
/usr/bin/../lib/wine/ntdll.dll.so
#10 0x7efac7f7 in EXC_CallHandler () from /usr/bin/../lib/wine/ntdll.dll.so
#11 0x7efaca2e in call_stack_handlers (rec=0x6fddf8, context=0x6fdb2c,
first_chance=1) at /home/marcus/projects/wine/dlls/ntdll/signal_i386.c:606
#12 raise_exception (rec=0x6fddf8, context=0x6fdb2c, first_chance=1) at
/home/marcus/projects/wine/dlls/ntdll/signal_i386.c:684
#13 0x7efaea0d in NtRaiseException (rec=0x6fddf8, context=0x6fdb2c,
first_chance=1) at /home/marcus/projects/wine/dlls/ntdll/signal_i386.c:2394
#14 0x7efaeb14 in raise_segv_exception (rec=0x6fddf8, context=0x6fdb2c) at
/home/marcus/projects/wine/dlls/ntdll/signal_i386.c:1720
#15 0xdeadbabe in ?? ()
#16 0x7dc812c5 in ?? () from /lib/libgcc_s.so.1
#17 0x7dc816ea in _Unwind_ForcedUnwind () from /lib/libgcc_s.so.1
#18 0xf7e6d032 in _Unwind_ForcedUnwind () from /lib/libpthread.so.0
#19 0xf7e6aa97 in __pthread_unwind () from /lib/libpthread.so.0
#20 0xf7e64a5e in pthread_exit () from /lib/libpthread.so.0
#21 0x7efb574b in exit_thread (status=5) at
/home/marcus/projects/wine/dlls/ntdll/thread.c:369
#22 0x7efaee2d in RtlExitUserThread (status=5) at
/home/marcus/projects/wine/dlls/ntdll/signal_i386.c:2488
#23 0x7edcf8b4 in ExitThread (code=5) at
/home/marcus/projects/wine/dlls/kernel32/thread.c:155
#24 0x7dca7879 in ?? ()
#25 0x00000005 in ?? ()
#26 0x00000000 in ?? ()

(the kill a kill(gettid(),SIGSTOP) from me.)


So we basically exited our thread, closed the fd already ... and crash during
the final unwinding. The crash wants to attach the debugger which does a server
call which of course breaks as we jhave no server connetion anymore.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (8 preceding siblings ...)
  2010-11-28 15:24 ` marcus at jet dot franken.de
@ 2010-11-28 15:48 ` hjl.tools at gmail dot com
  2010-11-28 19:54 ` marcus at jet dot franken.de
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-28 15:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-28 15:23:22 UTC ---
(In reply to comment #9)
> 
> 
> So we basically exited our thread, closed the fd already ... and crash during

What caused the crash?

> the final unwinding. The crash wants to attach the debugger which does a server
> call which of course breaks as we jhave no server connetion anymore.

If crash is independent of -fno-omit-frame-pointer, it is a bug
in wine unwinder.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (9 preceding siblings ...)
  2010-11-28 15:48 ` hjl.tools at gmail dot com
@ 2010-11-28 19:54 ` marcus at jet dot franken.de
  2010-11-28 20:22 ` marcus at jet dot franken.de
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-28 19:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #11 from marcus at jet dot franken.de 2010-11-28 19:31:27 UTC ---
it is unclear. ... it seems to crash in libgcc_s.so.1 (both the installed 4.5
and the built 4.6 trunk versuon) during this pthread_exit unwinding.

behaviour changes if thread.o is built with -fasynchronous-unwind-tables . then
it will not crash

(i guess it seems to unwind over the thread.o functions and fails if the info
is not there)


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (10 preceding siblings ...)
  2010-11-28 19:54 ` marcus at jet dot franken.de
@ 2010-11-28 20:22 ` marcus at jet dot franken.de
  2010-11-28 20:34 ` hjl.tools at gmail dot com
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-28 20:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #12 from marcus at jet dot franken.de 2010-11-28 19:31:58 UTC ---
the gcc or glibc unwinding is in use, not wine's if I take it correctly from
the bakctrace.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (11 preceding siblings ...)
  2010-11-28 20:22 ` marcus at jet dot franken.de
@ 2010-11-28 20:34 ` hjl.tools at gmail dot com
  2010-11-28 20:39 ` marcus at jet dot franken.de
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-28 20:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-28 19:47:02 UTC ---
(In reply to comment #11)
> it is unclear. ... it seems to crash in libgcc_s.so.1 (both the installed 4.5
> and the built 4.6 trunk versuon) during this pthread_exit unwinding.
> 
> behaviour changes if thread.o is built with -fasynchronous-unwind-tables . then
> it will not crash
> 

Why isn't thread.o built with -fasynchronous-unwind-tables?
-fasynchronous-unwind-tables should be on by default with
gcc 4.6.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (12 preceding siblings ...)
  2010-11-28 20:34 ` hjl.tools at gmail dot com
@ 2010-11-28 20:39 ` marcus at jet dot franken.de
  2010-11-28 21:04 ` hjl.tools at gmail dot com
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-28 20:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #14 from marcus at jet dot franken.de 2010-11-28 19:53:45 UTC ---
actually it is built with it and crashes.

Atfer i change thread.o with -fno-asynchronous-unwind-tables
it starts to work again.

so somehting in there confuses the glibc/libgcc unwinder. any clue on how to
debug this?


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (13 preceding siblings ...)
  2010-11-28 20:39 ` marcus at jet dot franken.de
@ 2010-11-28 21:04 ` hjl.tools at gmail dot com
  2010-11-28 21:18 ` marcus at jet dot franken.de
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-28 21:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-28 20:38:46 UTC ---
Which glibc are you using?


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (14 preceding siblings ...)
  2010-11-28 21:04 ` hjl.tools at gmail dot com
@ 2010-11-28 21:18 ` marcus at jet dot franken.de
  2010-11-28 23:15 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: marcus at jet dot franken.de @ 2010-11-28 21:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #16 from marcus at jet dot franken.de 2010-11-28 20:44:38 UTC ---
glibc-32bit-2.11.2-3.3.1.x86_64

/lib/libc.so.6 
GNU C Library stable release version 2.11.2 (20100531), by Roland McGrath et
al.
[...]
Configured for i686-suse-linux.
Compiled by GNU CC version 4.5.0 20100604 [gcc-4_5-branch revision 160292].
Compiled on a Linux 2.6.32 system on 2010-10-27.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        NoVersion patch for broken glibc 2.0 binaries
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (15 preceding siblings ...)
  2010-11-28 21:18 ` marcus at jet dot franken.de
@ 2010-11-28 23:15 ` hjl.tools at gmail dot com
  2011-06-29  2:16 ` austinenglish at gmail dot com
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-28 23:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #17 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-28 21:05:41 UTC ---
It sounds like this bug

http://sourceware.org/bugzilla/show_bug.cgi?id=3597

But your glibc should be OK.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (16 preceding siblings ...)
  2010-11-28 23:15 ` hjl.tools at gmail dot com
@ 2011-06-29  2:16 ` austinenglish at gmail dot com
  2011-06-29  2:21 ` austinenglish at gmail dot com
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: austinenglish at gmail dot com @ 2011-06-29  2:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #18 from austinenglish at gmail dot com 2011-06-29 02:16:04 UTC ---
This bug is now affecting the World of Warcraft launcher, which crashes:
http://bugs.winehq.org/show_bug.cgi?id=27057

I've was able to narrow it down to a single .c file in wine (and a single
patch):
http://source.winehq.org/git/wine.git/commitdiff/dc96c688d397eb4ef1392ee6a98f3eb6b176dc56

I'll attach preprocessed files with good/bad gcc.

command used was:
gcc -E -I. -I. -I../../include -I../../include  -D__WINESRC__
-DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits
-Wwrite-strings -Wpointer-arith -Wlogical-op  -g -O2  mutation.c &> ~/output.i

good gcc:
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3

bad gcc:
gcc (GCC) 4.6.0 20100812 (experimental)
(this is at commit fc00a76a26bb71539e8e4355e824986baf852f32 / Turn on
-fomit-frame-pointer by default for 32bit Linux/x86.)


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (17 preceding siblings ...)
  2011-06-29  2:16 ` austinenglish at gmail dot com
@ 2011-06-29  2:21 ` austinenglish at gmail dot com
  2011-06-29  2:21 ` austinenglish at gmail dot com
  2011-07-29 18:56 ` jacek at codeweavers dot com
  20 siblings, 0 replies; 22+ messages in thread
From: austinenglish at gmail dot com @ 2011-06-29  2:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #20 from austinenglish at gmail dot com 2011-06-29 02:20:42 UTC ---
Created attachment 24628
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24628
good preproccessed file


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (18 preceding siblings ...)
  2011-06-29  2:21 ` austinenglish at gmail dot com
@ 2011-06-29  2:21 ` austinenglish at gmail dot com
  2011-07-29 18:56 ` jacek at codeweavers dot com
  20 siblings, 0 replies; 22+ messages in thread
From: austinenglish at gmail dot com @ 2011-06-29  2:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

--- Comment #19 from austinenglish at gmail dot com 2011-06-29 02:20:27 UTC ---
Created attachment 24627
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24627
bad preprocessed file


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug target/46468] enabling -fomit-frame-pointer by default breaks Wine
  2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
                   ` (19 preceding siblings ...)
  2011-06-29  2:21 ` austinenglish at gmail dot com
@ 2011-07-29 18:56 ` jacek at codeweavers dot com
  20 siblings, 0 replies; 22+ messages in thread
From: jacek at codeweavers dot com @ 2011-07-29 18:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46468

Jacek Caban <jacek at codeweavers dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jacek at codeweavers dot
                   |                            |com

--- Comment #21 from Jacek Caban <jacek at codeweavers dot com> 2011-07-29 18:55:54 UTC ---
FWIW mutation.c was a Wine bug that is already fixed in Wine.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-07-29 18:56 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
2010-11-13 23:10 ` [Bug target/46468] " pinskia at gcc dot gnu.org
2010-11-14 10:48 ` rguenth at gcc dot gnu.org
2010-11-14 15:33 ` hjl.tools at gmail dot com
2010-11-20 14:20 ` marcus at jet dot franken.de
2010-11-25  8:50 ` marcus at jet dot franken.de
2010-11-25 10:05 ` marcus at jet dot franken.de
2010-11-26  8:05 ` marcus at jet dot franken.de
2010-11-26  8:08 ` marcus at jet dot franken.de
2010-11-28 15:24 ` marcus at jet dot franken.de
2010-11-28 15:48 ` hjl.tools at gmail dot com
2010-11-28 19:54 ` marcus at jet dot franken.de
2010-11-28 20:22 ` marcus at jet dot franken.de
2010-11-28 20:34 ` hjl.tools at gmail dot com
2010-11-28 20:39 ` marcus at jet dot franken.de
2010-11-28 21:04 ` hjl.tools at gmail dot com
2010-11-28 21:18 ` marcus at jet dot franken.de
2010-11-28 23:15 ` hjl.tools at gmail dot com
2011-06-29  2:16 ` austinenglish at gmail dot com
2011-06-29  2:21 ` austinenglish at gmail dot com
2011-06-29  2:21 ` austinenglish at gmail dot com
2011-07-29 18:56 ` jacek at codeweavers dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).