[Bug c/19873] New: odd behaviour compiling XaoS
kovzol at math dot u-szeged dot hu
gcc-bugzilla@gcc.gnu.org
Thu Feb 10 18:07:00 GMT 2005
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
More information about the Gcc-bugs
mailing list