gcc-4.0: Segfaulting code generated for gtkboard-0.11pre0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.0 (Debian) |
Fix Released
|
Unknown
|
|||
gcc-4.0 (Ubuntu) |
Invalid
|
High
|
Matthias Klose |
Bug Description
Automatically imported from Debian bug report #333118 http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #2 |
Automatically imported from Debian bug report #333118 http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #3 |
Message-Id: <email address hidden>
Date: Mon, 10 Oct 2005 19:11:30 +0530
From: "R.Ramkumar" <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: gcc-4.0: Segfaulting code generated for gtkboard-0.11pre0
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/
[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/
#3 0xbfa48738 in ?? ()
#4 0x4194023c in gtk_item_
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.
-- 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-
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #4 |
Message-ID: <email address hidden>
Date: Mon, 10 Oct 2005 19:21:40 +0530
From: "R.Ramkumar" <email address hidden>
To: <email address hidden>
Subject: Changing the severity of Bug #333118
severity 333118 critical
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Dennis Kaarsemaker (dennis) wrote : | #5 |
*** Bug 23654 has been marked as a duplicate of this bug. ***
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#6 |
On Mon, Oct 10, 2005 at 07:14:12PM +0530, R.Ramkumar wrote:
> 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.
Why are you not using gcc-4.0 4.0.2-2, the current version of gcc-4.0 in
unstable?
What is the last version of the compiler that you are able to use to
successfully compile this code in this environment with no other changes?
Have you confirmed that this bug exists in gcc-snapshot?
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
<email address hidden> http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #7 |
Message-ID: <email address hidden>
Date: Mon, 10 Oct 2005 16:50:13 -0700
From: Steve Langasek <email address hidden>
To: "R.Ramkumar" <email address hidden>, <email address hidden>
Subject: Re: Bug#333119: gcc-4.0: Segfaulting code generated for gtkboard-0.11pre0
--V0207lvV8h4k8FAm
Content-Type: text/plain; charset=us-ascii
Content-
Content-
On Mon, Oct 10, 2005 at 07:14:12PM +0530, R.Ramkumar wrote:
> gcc seems to generate incorrect code for gtkboard-0.11pre0. Seems to occu=
r with
> many combinations of flags under -O or greater (as well as without any) a=
nd
> seems to be independent of optimization level. Please note that the source
> doesnt compile initially (due to a static redeclaration of an extern, tha=
t's
> easy to patch by removing the static qualifier) and also when -O0 is pass=
ed (not
> able to find out the reason for that, so it might be possible that once t=
hat is
> fixed, this bug might manifest for -O0 as well). Please note that there i=
s 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.
Why are you not using gcc-4.0 4.0.2-2, the current version of gcc-4.0 in
unstable?
What is the last version of the compiler that you are able to use to
successfully compile this code in this environment with no other changes?
Have you confirmed that this bug exists in gcc-snapshot?
--=20
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
<email address hidden> http://
--V0207lvV8h4k8FAm
Content-Type: application/
Content-
Content-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDSv40KN6
24SCeJ2gvf4QEgN
=Oqgj
-----END PGP SIGNATURE-----
--V0207lvV8h4k8
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#8 |
> Why are you not using gcc-4.0 4.0.2-2, the current version of gcc-4.0 in
> unstable?
I generally go with the testing packages.. should I be reporting the
bugs only with the unstable version?
> What is the last version of the compiler that you are able to use to
> successfully compile this code in this environment with no other changes?
gcc-3.3 3.3.6-7 has no problems whatsoever (I needn't have to make
changes like removing static, but I guess this is an intended
feature in gcc-4.0, this is not the first package I have seen not
compiling due to this) and no segfault occurs.
> Have you confirmed that this bug exists in gcc-snapshot?
I have, now. Segfaults still. However, the bt is slightly different.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208879424 (LWP 9790)]
0x0809c7ff in __PRETTY_
(gdb) bt
#0 0x0809c7ff in __PRETTY_
#1 0x081a63a0 in ?? ()
#2 0x08180ff8 in ?? ()
#3 0xbfa39a88 in ?? ()
#4 0x4120a728 in ?? () from /usr/lib/
#5 0xbfa39cfc in ?? ()
#6 0x4120a728 in ?? () from /usr/lib/
#7 0xbfa39a88 in ?? ()
#8 0x48aa823c in gtk_item_
Previous frame inner to this frame (corrupt stack?)
Ramkumar.
--
96.31% of all statistics are fiction.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#9 |
# see http://
severity 333118 important
thanks, control, and have a nice day
I can confirm that this bug exists in the latest version of gcc-4.0
(4.0.2-2). I have not checked with gcc-snapshot, but if you do check, you
*must* use the latest version, and not the 2005-09-04 version, which is
missing a symbol; see 332876.
--
($_,$a)
M961H<F$
M<FUL+F=
5:75Q96AT9V1Y>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #10 |
Message-ID: <email address hidden>
Date: Tue, 11 Oct 2005 10:17:55 +0530
From: "R.Ramkumar" <email address hidden>
To: Steve Langasek <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#333119: gcc-4.0: Segfaulting code generated for gtkboard-0.11pre0
> Why are you not using gcc-4.0 4.0.2-2, the current version of gcc-4.0 in
> unstable?
I generally go with the testing packages.. should I be reporting the
bugs only with the unstable version?
> What is the last version of the compiler that you are able to use to
> successfully compile this code in this environment with no other changes?
gcc-3.3 3.3.6-7 has no problems whatsoever (I needn't have to make
changes like removing static, but I guess this is an intended
feature in gcc-4.0, this is not the first package I have seen not
compiling due to this) and no segfault occurs.
> Have you confirmed that this bug exists in gcc-snapshot?
I have, now. Segfaults still. However, the bt is slightly different.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208879424 (LWP 9790)]
0x0809c7ff in __PRETTY_
(gdb) bt
#0 0x0809c7ff in __PRETTY_
#1 0x081a63a0 in ?? ()
#2 0x08180ff8 in ?? ()
#3 0xbfa39a88 in ?? ()
#4 0x4120a728 in ?? () from /usr/lib/
#5 0xbfa39cfc in ?? ()
#6 0x4120a728 in ?? () from /usr/lib/
#7 0xbfa39a88 in ?? ()
#8 0x48aa823c in gtk_item_
Previous frame inner to this frame (corrupt stack?)
Ramkumar.
--
96.31% of all statistics are fiction.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #11 |
Message-Id: <email address hidden>
Date: Tue, 11 Oct 2005 05:19:40 +0000
From: "Brian M. Carlson" <email address hidden>
To: <email address hidden>, <email address hidden>
Subject: Re: Bug#333118: gcc-4.0: Segfaulting code generated for gtkboard-0.11pre0
--nextPart10570
Content-Type: text/plain;
charset=
Content-
Content-
# see http://
severity 333118 important
thanks, control, and have a nice day
I can confirm that this bug exists in the latest version of gcc-4.0=20
(4.0.2-2). I have not checked with gcc-snapshot, but if you do check, you=
=20
*must* use the latest version, and not the 2005-09-04 version, which is=20
missing a symbol; see 332876.
=2D-=20
($_,$a)
M961H<F$
M<FUL+F=
5:75Q96AT9V1Y>
--nextPart10570
Content-Type: application/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iQEVAwUAQ0tLduW
bCraYtaUJ/
Npfq6SwpdcOhmtD
QSss371TMSg0dYL
drVE+a7qnrDN2ta
ynrdaseWxZvuuAg
=d4Uk
-----END PGP SIGNATURE-----
--nextPart10570
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#12 |
reassign 333118 gtkboard
severity 333118 grave
thanks
On Tue, Oct 11, 2005 at 10:17:55AM +0530, R.Ramkumar wrote:
> > Why are you not using gcc-4.0 4.0.2-2, the current version of gcc-4.0 in
> > unstable?
> I generally go with the testing packages.. should I be reporting the
> bugs only with the unstable version?
When you are going to claim that a core package is broken to the point of
being unreleasable, it is very important to know what version of the package
is actually affected. It's also pretty bold to claim that gcc is completely
unreleasable when most of the base system in unstable has been rebuilt with
gcc-4.0 and works fine; it seems equally as likely that gcc-4.0 is exposing
a bug in the gtkboard source.
Anyway, your bug is a gtkboard bug, in menu_start_game():
[...]
for (i=0; i<4; i++)
{
}
Yeah, this smashes the stack. Just because it worked with gcc-3.3 doesn't
mean this is a gcc-4.0 bug.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
<email address hidden> http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #13 |
Message-ID: <email address hidden>
Date: Tue, 11 Oct 2005 00:14:32 -0700
From: Steve Langasek <email address hidden>
To: "R.Ramkumar" <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#333119: gcc-4.0: Segfaulting code generated for gtkboard-0.11pre0
--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-
Content-
reassign 333118 gtkboard
severity 333118 grave
thanks
On Tue, Oct 11, 2005 at 10:17:55AM +0530, R.Ramkumar wrote:
> > Why are you not using gcc-4.0 4.0.2-2, the current version of gcc-4.0 in
> > unstable?
> I generally go with the testing packages.. should I be reporting the
> bugs only with the unstable version?
When you are going to claim that a core package is broken to the point of
being unreleasable, it is very important to know what version of the package
is actually affected. It's also pretty bold to claim that gcc is completely
unreleasable when most of the base system in unstable has been rebuilt with
gcc-4.0 and works fine; it seems equally as likely that gcc-4.0 is exposing
a bug in the gtkboard source.
Anyway, your bug is a gtkboard bug, in menu_start_game():
[...]
for (i=3D0; i<4; i++)
{
}
Yeah, this smashes the stack. Just because it worked with gcc-3.3 doesn't
mean this is a gcc-4.0 bug.
--=20
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
<email address hidden> http://
--vkogqOf2sHV7VnPd
Content-Type: application/
Content-
Content-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDS2ZYKN6
krwKZjKjg+
=JVsO
-----END PGP SIGNATURE-----
--vkogqOf2sHV7V
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Matthias Klose (doko) wrote : | #14 |
bug in gtkboard, not in gcc
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#15 |
Hello,
I'm doing an NMU of gtkboard to fix #333118; diff attached.
Thanks,
Matej
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#16 |
tag 333118 + fixed
quit
This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 19 Feb 2006 23:28:33 +0100
Source: gtkboard
Binary: gtkboard
Architecture: source i386
Version: 0.11pre0-4.1
Distribution: unstable
Urgency: medium
Maintainer: Barak A. Pearlmutter <email address hidden>
Changed-By: Matej Vela <email address hidden>
Description:
gtkboard - many board games in one program
Closes: 333118
Changes:
gtkboard (0.11pre0-4.1) unstable; urgency=medium
.
* NMU.
* src/menu.c (menu_start_game): Fix array size. Closes: #333118.
Files:
45bd2382607275
20c5f93ea8417d
545dec94dee52e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD+
0OVeW8RdhmnzShz
=FfeO
-----END PGP SIGNATURE-----
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#17 |
Source: gtkboard
Source-Version: 0.11pre0-5
We believe that the bug you reported is fixed in the latest version of
gtkboard, which is due to be installed in the Debian FTP archive:
gtkboard_
to pool/main/
gtkboard_
to pool/main/
gtkboard_
to pool/main/
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Barak A. Pearlmutter <email address hidden> (supplier of updated gtkboard package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 20 Feb 2006 10:30:45 +0000
Source: gtkboard
Binary: gtkboard
Architecture: source i386
Version: 0.11pre0-5
Distribution: unstable
Urgency: low
Maintainer: Barak A. Pearlmutter <email address hidden>
Changed-By: Barak A. Pearlmutter <email address hidden>
Description:
gtkboard - many board games in one program
Closes: 333118
Changes:
gtkboard (0.11pre0-5) unstable; urgency=low
.
* Accept patch; thanks to Steve Langasek and Matej Vela! (closes: #333118)
Files:
7b1bbf87349fa3
5604cc38abf261
91790d1bfb2039
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFD+
QaShTzPd8v0f1uW
=NNcr
-----END PGP SIGNATURE-----
severity 333118 critical