public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50239] New: compiled program segfault when -O0 is used to compile
@ 2011-08-30 16:39 eviom at mail dot ru
  2011-08-30 16:49 ` [Bug c++/50239] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: eviom at mail dot ru @ 2011-08-30 16:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239

             Bug #: 50239
           Summary: compiled program segfault when -O0 is used to compile
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: eviom@mail.ru


Original thread:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/591819

When I compile my code, if I compile it -O2, it compiles and runs fine. if I
compile it with -O0, it segfaults while rendering text with FTGL. I've made no
changes to anything in between compiles. Same FTGL code works fine in win32
(vs2010).


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

* [Bug c++/50239] compiled program segfault when -O0 is used to compile
  2011-08-30 16:39 [Bug c++/50239] New: compiled program segfault when -O0 is used to compile eviom at mail dot ru
@ 2011-08-30 16:49 ` paolo.carlini at oracle dot com
  2011-08-31  7:05 ` eviom at mail dot ru
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-08-30 16:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-08-30
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-08-30 16:38:22 UTC ---
Please follow the normal bug reporting instructions:

  http://gcc.gnu.org/bugs/#report


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

* [Bug c++/50239] compiled program segfault when -O0 is used to compile
  2011-08-30 16:39 [Bug c++/50239] New: compiled program segfault when -O0 is used to compile eviom at mail dot ru
  2011-08-30 16:49 ` [Bug c++/50239] " paolo.carlini at oracle dot com
@ 2011-08-31  7:05 ` eviom at mail dot ru
  2011-08-31  8:41 ` redi at gcc dot gnu.org
  2011-10-12 15:48 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: eviom at mail dot ru @ 2011-08-31  7:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239

eviom <eviom at mail dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.7.0                       |4.5.2

--- Comment #2 from eviom <eviom at mail dot ru> 2011-08-31 05:42:06 UTC ---
When I compile my code, if I compile it -O2, it compiles and runs fine. if I
compile the code without it, my program segfaults while rendering text with
FTGL. I've made no changes to anything in between compiles. Same FTGL code
works fine in win32 (vs2010).

system: ubuntu 11.04 & 10.04
gcc version: 4.5.2 (from deb package)
command line: gcc -I /usr/include/freetype2 -o ~/BlocksWorld/BlocksWorld
Src/*.cpp Src/Linux/*.cpp Src/GUI/*.cpp -lpng -lGL -lGLU -lftgl


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

* [Bug c++/50239] compiled program segfault when -O0 is used to compile
  2011-08-30 16:39 [Bug c++/50239] New: compiled program segfault when -O0 is used to compile eviom at mail dot ru
  2011-08-30 16:49 ` [Bug c++/50239] " paolo.carlini at oracle dot com
  2011-08-31  7:05 ` eviom at mail dot ru
@ 2011-08-31  8:41 ` redi at gcc dot gnu.org
  2011-10-12 15:48 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-08-31  8:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-08-31 08:27:43 UTC ---
There's no need to repeat the same info you already provided, please provide
what you _didn't_ provide, as requested by http://gcc.gnu.org/bugs/#report

we need preprocessed source, and preferably a minimal testcase that has been
reduced to the smallest example that still shows the problem


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

* [Bug c++/50239] compiled program segfault when -O0 is used to compile
  2011-08-30 16:39 [Bug c++/50239] New: compiled program segfault when -O0 is used to compile eviom at mail dot ru
                   ` (2 preceding siblings ...)
  2011-08-31  8:41 ` redi at gcc dot gnu.org
@ 2011-10-12 15:48 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-12 15:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-12 15:48:30 UTC ---
Feedback not forthcoming.


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

end of thread, other threads:[~2011-10-12 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 16:39 [Bug c++/50239] New: compiled program segfault when -O0 is used to compile eviom at mail dot ru
2011-08-30 16:49 ` [Bug c++/50239] " paolo.carlini at oracle dot com
2011-08-31  7:05 ` eviom at mail dot ru
2011-08-31  8:41 ` redi at gcc dot gnu.org
2011-10-12 15:48 ` paolo.carlini at oracle dot com

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