After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 94293 - gtk-2.0.6 with -O3 breaks TextView
gtk-2.0.6 with -O3 breaks TextView
Status: VERIFIED INCOMPLETE
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-09-26 16:48 UTC by Matt Adam
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Matt Adam 2002-09-26 16:48:13 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
Comment 1 Owen Taylor 2002-09-26 18:33:08 UTC
Backtrace?

(-O3 is almost always a bad idea for GCC, but if it compiles
the code correctly, it is supported...)

Comment 2 Owen Taylor 2002-09-27 18:39:12 UTC
Please reopen if you add information.
Comment 3 Matt Adam 2002-09-27 18:47:00 UTC
how exactly do i do a backtrace for a library like this?
Comment 4 Owen Taylor 2002-09-27 21:19:46 UTC
gdb myprog-that-crashes
(gdb) run
(gdb) backtrace
Comment 5 Matt Adam 2002-09-29 19:24:06 UTC
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.

Thread 1024 (LWP 6274)

  • #0 gtk_text_mark_set_visible
    from /usr/lib/libgtk-x11-2.0.so.0
  • #1 ??
  • #2 ??
  • #3 ??

Comment 6 Owen Taylor 2002-09-30 13:53:14 UTC
Use CFLAGS="-g -O3" not "-O3" (And same for the app)
Comment 7 Matt Adam 2002-09-30 16:28:56 UTC
i did!  i was very careful.

would the optimizations optimize out the debugging code?
Comment 8 Owen Taylor 2002-09-30 22:06:54 UTC
No. According to the above backtrace GTK+ was not compiled
with debugging. Maybe you have multiple copies of GTK+ 
installed in different locations?
Comment 9 Kjartan Maraas 2003-10-29 14:27:38 UTC
Closing. Please reopen if you have the necessary information.