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 419118 - crash in Terminal: Started gnome-terminal
crash in Terminal: Started gnome-terminal
Status: RESOLVED NOTGNOME
Product: gnome-terminal
Classification: Core
Component: general
2.18.x
Other Linux
: High critical
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 420758 434749 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-16 21:09 UTC by Jose M. daLuz
Modified: 2007-05-01 18:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Fill the alpha mask for a 32bit visual. (722 bytes, patch)
2007-03-17 20:24 UTC, Chris Wilson
none Details | Review

Description Jose M. daLuz 2007-03-16 21:09:54 UTC
Version: 2.18.0

What were you doing when the application crashed?
Started gnome-terminal


Distribution: Gentoo Base System version 1.13.0_alpha12
Gnome Release: 2.18.0 2007-03-16 (Gentoo)
BugBuddy Version: 2.18.0

System: Linux 2.6.19-gentoo-r4 #4 PREEMPT Sat Feb 17 13:32:46 EST 2007 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10299901
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: Tango

Memory status: size: 137596928 vsize: 137596928 resident: 20152320 share: 13348864 rss: 20152320 rss_rlim: 18446744073709551615
CPU usage: start_time: 1174079378 rtime: 44 utime: 39 stime: 5 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/gnome-terminal'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47312761430832 (LWP 19451)]
[New Thread 1082140992 (LWP 19457)]
0x00002b07d99bbacf in __libc_waitpid (pid=19458, stat_loc=0x7fffd5022f1c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41
	in ../sysdeps/unix/sysv/linux/waitpid.c

Thread 1 (Thread 47312761430832 (LWP 19451))

  • #0 __libc_waitpid
    at ../sysdeps/unix/sysv/linux/waitpid.c line 41
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 872
  • #2 <signal handler called>
  • #3 IA__g_logv
    at gmessages.c line 503
  • #4 IA__g_log
    at gmessages.c line 517
  • #5 gdk_x_error
    at gdkmain-x11.c line 641
  • #6 _XError
    at XlibInt.c line 2905
  • #7 _XEventsQueued
    at XlibInt.c line 897
  • #8 XPending
    at Pending.c line 57
  • #9 gdk_event_prepare
    at gdkevents-x11.c line 2275
  • #10 IA__g_main_context_prepare
    at gmain.c line 2364
  • #11 g_main_context_iterate
    at gmain.c line 2657
  • #12 IA__g_main_loop_run
    at gmain.c line 2881
  • #13 IA__gtk_main
    at gtkmain.c line 1154
  • #14 main
    at terminal.c line 1773


----------- .xsession-errors ---------------------
Bonobo-Activation-Message: Registration environment for 'DISPLAY' = ':0.0'
Bonobo-Activation-Message: registration of 'OAFIID:GNOME_Terminal_Factory' returns (success)
Bonobo-Activation-Message: Successfully registered `OAFIID:GNOME_Terminal_Factory'
Gdk-ERROR **: The program 'gnome-terminal' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 634 error_code 8 request_code 72 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...
41	../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
--------------------------------------------------
Comment 1 Jose M. daLuz 2007-03-16 21:16:49 UTC
This is with vte 0.16.0. I did not run into this with 2.17.92/0.15.6.
Comment 2 Chris Wilson 2007-03-16 21:46:20 UTC
Thanks for reporting this. A couple of questions:
1. Are you running a compositor? Eg XGL and compiz/beryl?
2. Could you rerun g-t with --sync and report the stacktrace?

BadMatch would imply that we're mixing drawables with incompatible visuals, but where and why?
Comment 3 Jose M. daLuz 2007-03-16 21:56:44 UTC
(In reply to comment #2)
> Thanks for reporting this. A couple of questions:
> 1. Are you running a compositor? Eg XGL and compiz/beryl?

I am running beryl 0.2.0 with the binary nvidia driver 1.0.9755, no Xgl or AIGLX

> 2. Could you rerun g-t with --sync and report the stacktrace?

Sure:

Distribution: Gentoo Base System version 1.13.0_alpha12
Gnome Release: 2.18.0 2007-03-16 (Gentoo)
BugBuddy Version: 2.18.0

System: Linux 2.6.19-gentoo-r4 #4 PREEMPT Sat Feb 17 13:32:46 EST 2007 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10299901
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: Tango

Memory status: size: 137707520 vsize: 137707520 resident: 20197376 share: 13279232 rss: 20197376 rss_rlim: 18446744073709551615
CPU usage: start_time: 1174081918 rtime: 31 utime: 24 stime: 7 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/gnome-terminal'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47176310219568 (LWP 14721)]
[New Thread 1082140992 (LWP 14945)]
0x00002ae8147b7acf in __libc_waitpid (pid=14947, stat_loc=0x7fff9a221c6c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41
	in ../sysdeps/unix/sysv/linux/waitpid.c

Thread 1 (Thread 47176310219568 (LWP 14721))

  • #0 __libc_waitpid
    at ../sysdeps/unix/sysv/linux/waitpid.c line 41
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 872
  • #2 <signal handler called>
  • #3 IA__g_logv
    at gmessages.c line 503
  • #4 IA__g_log
    at gmessages.c line 517
  • #5 gdk_x_error
    at gdkmain-x11.c line 641
  • #6 _XError
    at XlibInt.c line 2905
  • #7 _XReply
    at XlibInt.c line 1831
  • #8 XSync
    at Sync.c line 48
  • #9 _XSyncFunction
    at Synchro.c line 37
  • #10 XPutImage
    at PutImage.c line 1032
  • #11 _draw_image_surface
    at cairo-xlib-surface.c line 781
  • #12 _cairo_xlib_surface_release_dest_image
    at cairo-xlib-surface.c line 847
  • #13 _cairo_surface_fallback_composite
    at cairo-surface-fallback.c line 1040
  • #14 _clip_and_composite_trapezoids
    at cairo-surface-fallback.c line 444
  • #15 _cairo_surface_fallback_fill
    at cairo-surface-fallback.c line 836
  • #16 _cairo_surface_fill
    at cairo-surface.c line 1368
  • #17 _cairo_gstate_fill
    at cairo-gstate.c line 994
  • #18 *INT_cairo_fill_preserve
    at cairo.c line 2052
  • #19 cairo_fill
    at cairo.c line 2030
  • #20 clearlooks_draw_scrollbar_trough
    at ./src/clearlooks_draw.c line 1510
  • #21 clearlooks_style_draw_box
    at ./src/clearlooks_style.c line 576
  • #22 gtk_range_expose
    at gtkrange.c line 1271
  • #23 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #24 IA__g_closure_invoke
    at gclosure.c line 490
  • #25 signal_emit_unlocked_R
    at gsignal.c line 2478
  • #26 IA__g_signal_emit_valist
    at gsignal.c line 2209
  • #27 IA__g_signal_emit
    at gsignal.c line 2243
  • #28 gtk_widget_event_internal
    at gtkwidget.c line 3915
  • #29 IA__gtk_container_propagate_expose
    at gtkcontainer.c line 2461
  • #30 gtk_box_forall
    at gtkbox.c line 680
  • #31 gtk_container_expose
    at gtkcontainer.c line 2372
  • #32 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #33 IA__g_closure_invoke
    at gclosure.c line 490
  • #34 signal_emit_unlocked_R
    at gsignal.c line 2478
  • #35 IA__g_signal_emit_valist
    at gsignal.c line 2209
  • #36 IA__g_signal_emit
    at gsignal.c line 2243
  • #37 gtk_widget_event_internal
    at gtkwidget.c line 3915
  • #38 IA__gtk_container_propagate_expose
    at gtkcontainer.c line 2461
  • #39 gtk_container_expose
    at gtkcontainer.c line 2372
  • #40 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #41 IA__g_closure_invoke
    at gclosure.c line 490
  • #42 signal_emit_unlocked_R
    at gsignal.c line 2478
  • #43 IA__g_signal_emit_valist
    at gsignal.c line 2209
  • #44 IA__g_signal_emit
    at gsignal.c line 2243
  • #45 gtk_widget_event_internal
    at gtkwidget.c line 3915
  • #46 IA__gtk_container_propagate_expose
    at gtkcontainer.c line 2461
  • #47 gtk_notebook_expose
    at gtknotebook.c line 2042
  • #48 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #49 IA__g_closure_invoke
    at gclosure.c line 490
  • #50 signal_emit_unlocked_R
    at gsignal.c line 2478
  • #51 IA__g_signal_emit_valist
    at gsignal.c line 2209
  • #52 IA__g_signal_emit
    at gsignal.c line 2243
  • #53 gtk_widget_event_internal
    at gtkwidget.c line 3915
  • #54 IA__gtk_container_propagate_expose
    at gtkcontainer.c line 2461
  • #55 gtk_box_forall
    at gtkbox.c line 680
  • #56 gtk_container_expose
    at gtkcontainer.c line 2372
  • #57 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #58 IA__g_closure_invoke
    at gclosure.c line 490
  • #59 signal_emit_unlocked_R
    at gsignal.c line 2478
  • #60 IA__g_signal_emit_valist
    at gsignal.c line 2209
  • #61 IA__g_signal_emit
    at gsignal.c line 2243
  • #62 gtk_widget_event_internal
    at gtkwidget.c line 3915
  • #63 IA__gtk_container_propagate_expose
    at gtkcontainer.c line 2461
  • #64 gtk_container_expose
    at gtkcontainer.c line 2372
  • #65 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #66 IA__g_closure_invoke
    at gclosure.c line 490
  • #67 signal_emit_unlocked_R
    at gsignal.c line 2478
  • #68 IA__g_signal_emit_valist
    at gsignal.c line 2209
  • #69 IA__g_signal_emit
    at gsignal.c line 2243
  • #70 gtk_widget_event_internal
    at gtkwidget.c line 3915
  • #71 IA__gtk_main_do_event
    at gtkmain.c line 1533
  • #72 gdk_window_process_updates_internal
    at gdkwindow.c line 2338
  • #73 IA__gdk_window_process_all_updates
    at gdkwindow.c line 2401
  • #74 gtk_container_idle_sizer
    at gtkcontainer.c line 1113
  • #75 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #76 g_main_context_iterate
    at gmain.c line 2677
  • #77 IA__g_main_loop_run
    at gmain.c line 2881
  • #78 IA__gtk_main
    at gtkmain.c line 1154
  • #79 main
    at terminal.c line 1773

----------- .xsession-errors (2323 sec old) ---------------------
2b8f732f2000-2b8f73304000 r--p 00000000 fd:01 208009                     /usr/share/fonts/TTF/luxisb.ttf
2b8f73304000-2b8f73364000 rw-s 00000000 00:07 10059819                   /SYSV00000000 (deleted)
2b8f73364000-2b8f73375000 r--p 00000000 fd:01 208012                     /usr/share/fonts/TTF/luxisbi.ttf
2b8f73375000-2b8f73386000 r--p 00000000 fd:01 207999                     /usr/share/fonts/TTF/luxisri.ttf
7fff43d96000-7fff43dab000 rw-p 7fff43d96000 00:00 0                      [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0                  [vdso]
LoadPlugin: failed to initialize shared library /home/jdaluz/.mozilla/plugins/nprhapengine.so [/home/jdaluz/.mozilla/plugins/nprhapengine.so: failed to map segment from shared object: Operation not pe
Bonobo-Activation-Message: Reset cache
Bonobo-Activation-Message: Reset cache
Bonobo-Activation-Message: Reset cache
Bonobo-Activation-Message: Reset cache
Bonobo-Activation-Message: Reset cache
Bonobo-Activation-Message: Reset cache
Bonobo-Activation-Message: Reset cache
Bonobo-Activation-Message: Reset cache
--------------------------------------------------
Comment 4 Carl Worth 2007-03-16 22:26:37 UTC
Hmmm... BadMatch and gnome-terminal. That sounds quite similar to this bug report over here:

https://bugs.freedesktop.org/show_bug.cgi?id=10250

-Carl
Comment 5 Jose M. daLuz 2007-03-16 22:48:00 UTC
That fdo bug doesn't match my symptoms, I crash when starting g-t in any circumstances. 

However, the xcb references are interesting in that I had xcb enabled before, then due to multiple apps crashing because of the latest xcb being more strict about certain bugs in calling apps, I disabled xcb and rebuilt all packages affected by that (using Gentoo's revdep-rebuild script to find/rebuild affected packages). I rebuilt vte and gnome-terminal when I first ran into this.
Comment 6 Chris Wilson 2007-03-16 22:58:07 UTC
Hmm, appears a short-term workaround can be acheived by
export XLIB_SKIP_ARGB_VISUALS=1
Comment 7 Jose M. daLuz 2007-03-17 02:44:23 UTC
(In reply to comment #6)
> Hmm, appears a short-term workaround can be acheived by
> export XLIB_SKIP_ARGB_VISUALS=1
> 
Yes, that works here. I'm not so much concerned with a workaround, though, as I can use xterm or urxvt until this is fixed. Is there something else I can do to help track down where the problem is?
Comment 8 Chris Wilson 2007-03-17 20:24:00 UTC
Created attachment 84782 [details] [review]
Fill the alpha mask for a 32bit visual.

The bug is rather simple: Cairo is creating a 24bit XImage to draw onto a 32bit window. This is because no visual can specify the full 32bit colour masks and so Cairo assumes that only 24bit [at most] visuals exist.

If you're feeling adventurous, you can try this hack.
Comment 9 Carl Worth 2007-03-20 19:43:20 UTC
(In reply to comment #8)
> Created an attachment (id=84782) [edit]
> Fill the alpha mask for a 32bit visual.
> 
> The bug is rather simple: Cairo is creating a 24bit XImage to draw onto a 32bit
> window. This is because no visual can specify the full 32bit colour masks and
> so Cairo assumes that only 24bit [at most] visuals exist.

It's true that the visual doesn't have the information needed, but the XRenderPictFormat does, and cairo does have that information. The bug is that cairo was trying to use the visual first instead of the format.

This is fixed in cairo upstream, and the fix is in the cairo 1.4.2 release.

-Carl

PS. I'd close this as NOTGNOME or something, but it appears I don't have permission to do that. It's definitely not a gnome-terminal bug.
Comment 10 Chris Wilson 2007-03-20 20:47:50 UTC
Thank you Carl, and thanks for solving it in time for 1.4.2.
Comment 11 Chris Wilson 2007-03-20 22:59:57 UTC
*** Bug 420758 has been marked as a duplicate of this bug. ***
Comment 12 Jack Malmostoso 2007-03-21 11:55:58 UTC
Hi everyone,

I'm the one who reported 420758.
I have rebuilt libcairo2-1.4.2 and now gnome-terminal works just fine.

If someone needs/wants badly built debian AMD64 packages, just write to me.

Thanks everyone!
Comment 13 Chris Wilson 2007-05-01 18:36:57 UTC
*** Bug 434749 has been marked as a duplicate of this bug. ***