This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 175669 - gnome canvas segfaults when built with gcc 4.1
gnome canvas segfaults when built with gcc 4.1
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
: 175588 175689 (view as bug list)
Depends On: 175588
  Show dependency treegraph
Reported: 2005-12-13 15:18 EST by Jeremy Katz
Modified: 2007-11-30 17:11 EST (History)
5 users (show)

See Also:
Fixed In Version: 4.1.0-0.9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-12-16 06:34:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 24899 None None None Never

  None (edit)
Description Jeremy Katz 2005-12-13 15:18:45 EST
libgnomecanvas is segfaulting when built with gcc 4.1.  Reproducible with the
demos in the source or something like the following:

  import gtk, gnomecanvas

  w = gtk.Window()
  c = gnomecanvas.Canvas()
  root = c.root()
  root.add(gnomecanvas.CanvasText, text='xxxxx', fill_color='red') 

Backtrace is 
#0  0x00966ab0 in uta_union_clip (uta1=0x9e0ff48, uta2=0x0, clip=Variable "clip"
is not available.
    at gnome-canvas.c:3593
#1  0x0096c3bb in gnome_canvas_request_redraw_uta (canvas=0x9dd2520,
    uta=0x9e0ff48) at gnome-canvas.c:3698
#2  0x0096c59c in gnome_canvas_request_redraw (canvas=0x9dd2520, x1=-15,
    y1=-7, x2=15, y2=8) at gnome-canvas.c:3745
#3  0x00964bc9 in gnome_canvas_update_bbox (item=0x9dd7510, x1=-15, y1=-7,
    x2=15, y2=8) at gnome-canvas-util.c:618
#4  0x0095f6d2 in gnome_canvas_text_update (item=0x9dd7510, affine=0xbfb9bd78,
    clip_path=0x0, flags=3) at gnome-canvas-text.c:1411
#5  0x00966f6c in gnome_canvas_item_invoke_update (item=0x9dd7510,
    p2cpx=0x9dd7510, clip_path=0x0, flags=3) at gnome-canvas.c:474
#6  0x0096afb2 in gnome_canvas_group_update (item=0x9dd3570,
    affine=0xbfb9be58, clip_path=0x0, flags=3) at gnome-canvas.c:1572
#7  0x00966f6c in gnome_canvas_item_invoke_update (item=0x9dd3570,
    p2cpx=0x9dd3570, clip_path=0x0, flags=0) at gnome-canvas.c:474
#8  0x00967e00 in do_update (canvas=0x9dd2520) at gnome-canvas.c:3163
#9  0x00968c79 in idle_handler (data=0x9dd2520) at gnome-canvas.c:3199
#10 0x0060813e in g_list_remove_link () from /usr/lib/
#11 0x00609943 in g_main_context_dispatch () from /usr/lib/
#12 0x0060c893 in g_main_context_check () from /usr/lib/
#13 0x0060cc3c in g_main_loop_run () from /usr/lib/
#14 0x003acd3c in gtk_main () from /usr/lib/
---Type <return> to continue, or q <return> to quit---
#15 0x001dcd48 in init_gtk ()
   from /usr/lib/python2.4/site-packages/gtk-2.0/gtk/
#16 0x00d9f597 in PyEval_EvalFrame () from /usr/lib/
#17 0x00da0f3a in PyEval_EvalCodeEx () from /usr/lib/
#18 0x00da10ad in PyEval_EvalCode () from /usr/lib/
#19 0x00dbd9da in PyErr_Display () from /usr/lib/
#20 0x00dbecd2 in PyRun_SimpleFileExFlags () from /usr/lib/
#21 0x00dbf759 in PyRun_AnyFileExFlags () from /usr/lib/
#22 0x00dc5724 in Py_Main () from /usr/lib/
#23 0x0804859a in main ()

Compiling gnome-canvas.o with -O0 or -O1 instead lets things work.
Comment 1 sangu 2005-12-13 21:21:41 EST
*** Bug 175689 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Jelinek 2005-12-14 07:43:51 EST
Does it fail on all arches or just i386 (judging from #175689, this bug
doesn't have arch filled)?
Does different -mtune= setting (say -mtune=i686 rather than -mtune=pentium4)
Comment 3 Jakub Jelinek 2005-12-14 09:55:46 EST
I have googled around and found PR24899, guess that's it.
Can anyone verify that -fno-strength-reduce makes the problem go away?
If so, I'll see what I can do.
Comment 4 Jeremy Katz 2005-12-14 10:41:20 EST
-fno-strength-reduce does fix it.   And it happens on at least x86_64 as well

And I thought I attached the .i files here last night before I went home but
they're not here... bleah, sorry about that.
Comment 5 Bill Nottingham 2005-12-14 14:26:35 EST
*** Bug 175588 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Jelinek 2005-12-16 06:34:53 EST
Should be fixed in gcc-4.1.0-0.9.

Note You need to log in before you can comment on or make changes to this bug.