[Bug 591819]

2011-09-05 Thread eviom
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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/591819

Title:
  compiled program segfault when -O0 is used to compile

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-defaults/+bug/591819/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 591819] Re: compiled program segfault when -O0 is used to compile

2011-08-30 Thread eviom
I have the same problem on both ubuntu 10.04 (not updated, gcc 4.4.3) and 
ubuntu 11.04 (fully updated, can't check the gcc version right now). According 
to gdb it crashes in some TFGlyth member function. I really did not expect such 
problem from gcc...
BTW thanks for the solution, I thought the problem was somwhere in my code.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/591819

Title:
  compiled program segfault when -O0 is used to compile

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/591819/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 591819] Re: compiled program segfault when -O0 is used to compile

2011-08-30 Thread eviom
I have submitted it to gcc bugzilla. Here is the thread link:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239

** Bug watch added: GCC Bugzilla #50239
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/591819

Title:
  compiled program segfault when -O0 is used to compile

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/591819/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 591819] Re: compiled program segfault when -O0 is used to compile

2011-08-30 Thread eviom
** Also affects: gcc-defaults via
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/591819

Title:
  compiled program segfault when -O0 is used to compile

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-defaults/+bug/591819/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs