public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19873] New: odd behaviour compiling XaoS
@ 2005-02-10 18:07 kovzol at math dot u-szeged dot hu
  2005-02-10 18:51 ` [Bug c/19873] " falk at debian dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kovzol at math dot u-szeged dot hu @ 2005-02-10 18:07 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2005-05-12  1:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-10 18:07 [Bug c/19873] New: odd behaviour compiling XaoS kovzol at math dot u-szeged dot hu
2005-02-10 18:51 ` [Bug c/19873] " falk at debian dot org
2005-02-10 19:04 ` kovzol at math dot u-szeged dot hu
2005-02-10 19:57 ` [Bug middle-end/19873] " pinskia at gcc dot gnu dot org
2005-05-12  1:23 ` pinskia at gcc dot gnu dot org

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).