GNOME Bugzilla – Bug 94293
gtk-2.0.6 with -O3 breaks TextView
Last modified: 2009-08-15 18:40:50 UTC
if you compile gtk-2.0.6 with the -O3 optimization, it breaks the TextView widget. any app (gEdit, nautilus) that uses the TextView will coredump whenever you click on the widget, or sometimes even when you move the mouse over it. is -O3 not supported, or is this a gcc bug? my system: gentoo linux 1.4 athlon 1800+ gcc 3.2
Backtrace? (-O3 is almost always a bad idea for GCC, but if it compiles the code correctly, it is supported...)
Please reopen if you add information.
how exactly do i do a backtrace for a library like this?
gdb myprog-that-crashes (gdb) run (gdb) backtrace
here's what i get -- i don't know how to compile gtk to give me more debugging information... ---- [New Thread 1024 (LWP 6274)] Program received signal SIGSEGV, Segmentation fault.
+ Trace 28018
Thread 1024 (LWP 6274)
Use CFLAGS="-g -O3" not "-O3" (And same for the app)
i did! i was very careful. would the optimizations optimize out the debugging code?
No. According to the above backtrace GTK+ was not compiled with debugging. Maybe you have multiple copies of GTK+ installed in different locations?
Closing. Please reopen if you have the necessary information.