Package: gcc-4.0 Version: 4.0.1-2 Severity: normal gcc seems to generate incorrect code for gtkboard-0.11pre0. Seems to occur with many combinations of flags under -O or greater (as well as without any) and seems to be independent of optimization level. Please note that the source doesnt compile initially (due to a static redeclaration of an extern, that's easy to patch by removing the static qualifier) and also when -O0 is passed (not able to find out the reason for that, so it might be possible that once that is fixed, this bug might manifest for -O0 as well). Please note that there is no problem with gcc-3.3 (even with the static qualifier removal), so this is likely to be a problem with gcc-4.0, rather than the package.
Reproducing: CFLAGS="-ggdb3 -O" CPPFLAGS= LDFLAGS= ./configure make gdb src/gtkboard (gdb) run Starting program: /home/ramk/install/gtkboard-0.11pre0/src/gtkboard [Thread debugging using libthread_db enabled] [New Thread -1209157952 (LWP 22549)] Unable to open audio: No available audio device // Select for eg, in the menu, Game -> Select Game -> Infiltrate Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208924480 (LWP 22566)] 0x080995e7 in C.182.7537 () (gdb) bt #0 0x080995e7 in C.182.7537 () #1 0xbfa489ac in ?? () #2 0x4120a728 in ?? () from /usr/lib/libgobject-2.0.so.0 #3 0xbfa48738 in ?? () #4 0x4194023c in gtk_item_factory_get_type () from /usr/lib/libgtk-x11-2.0.so.0 Previous frame inner to this frame (corrupt stack?) (gdb) The name of the function makes my suspicions of a compiler bug greater. Here are the how the dependencies of the compiled gtkboard were satisfied, in case it is some ABI problem with the loaded libraries... ii libatk1.0-0 1.10.1-2 The ATK accessibility toolkit ii libatk1.0-dev 1.10.1-2 Development files for the ATK accessibility toolkit ii libglib2.0-0 2.8.1-1 The GLib library of C routines ii libglib2.0-dev 2.8.1-1 Development files for the GLib library ii libgtk2.0-0 2.6.10-1 The GTK+ graphical user interface library ii libgtk2.0-dev 2.6.10-1 Development files for the GTK+ library ii libpango1.0-0 1.8.2-2 Layout and rendering of internationalized text ii libpango1.0-dev 1.8.2-2 Development files for the Pango ii libsdl-mixer1.2 1.2.6-1 mixer library for Simple DirectMedia Layer 1.2 ii libsdl-mixer1.2-dev 1.2.6-1 development files for SDL1.2 mixer library ii libsdl1.2debian 1.2.7+1.2.8cvs20041007- Simple DirectMedia Layer -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (101, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.12-rc4-ck1-inotify-custom.1 Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Versions of packages gcc-4.0 depends on: ii binutils 2.16.1-2 The GNU assembler, linker and bina ii cpp-4.0 4.0.1-2 The GNU C preprocessor ii gcc-4.0-base 4.0.1-2 The GNU Compiler Collection (base ii libc6 2.3.5-6 GNU C Library: Shared libraries an ii libgcc1 1:4.0.1-2 GCC support library Versions of packages gcc-4.0 recommends: ii libc6-dev 2.3.5-6 GNU C Library: Development Librari ii libmudflap0-dev 4.0.1-2 GCC mudflap support libraries (dev -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]