This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19873] New: odd behaviour compiling XaoS
- From: "kovzol at math dot u-szeged dot hu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2005 11:31:39 -0000
- Subject: [Bug c/19873] New: odd behaviour compiling XaoS
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The current source (CVS or 3.1.1, same) of XaoS (http://xaos.sf.net), if you
compile it and run bin/xaos, gives a segmentation fault if you press the button
B twice (setting perturbation on/off). Now if I add the following line to
src/ui-hlp/menu.c in the end of uih_persw():
printf("");
there will be no segfault. Do you think this is a gcc problem? (However,
other statements may solve the problem, not only printf(). I also tried sync()
with success.) I'm using SuSE 9.1 (but the same problem occurs on 9.0, too,
with an earlier gcc version).
However, I'm not an expert in C programming. But this seems to be odd that a
virtually uneffective printf("") can solve a segfault problem. I never
experienced such an odd behaviour earlier in gcc.
--
Summary: odd behaviour compiling XaoS
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kovzol at math dot u-szeged dot hu
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: (uname -a) Linux d7017 2.6.4-54.5-default #1 Fri May 7
21:43:10
GCC target triplet: (gcc --version) gcc (GCC) 3.3.3 (SuSE Linux)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19873