Metacity consistently crashes when gajim pops up a dialog

Bug #20384 reported by Trent Lloyd
26
Affects Status Importance Assigned to Milestone
metacity (Ubuntu)
Fix Released
Medium
Sebastien Bacher

Bug Description

Metacity crashes every time gajim pops up a dialog box, for telling you someone
has accepted you onto their contact list, i got the following backtrace

#0 0x08079fc4 in meta_accel_label_set_accelerator ()
#1 0x0807aac4 in meta_window_place ()
#2 0x0805c55f in meta_window_constrain ()
#3 0x080a8195 in meta_window_activate ()
#4 0x080a8aff in meta_window_move_resize ()
#5 0x080a8bd4 in meta_window_move_resize_now ()
#6 0x080a6b4d in meta_window_queue_calc_showing ()
#7 0x080a61f5 in meta_window_should_be_showing ()
#8 0x080a6217 in meta_window_calc_showing ()
#9 0x080a63cb in meta_window_calc_showing ()
#10 0xb793b6f0 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#11 0xb793948e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb793c496 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#13 0xb793c783 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0x080775cf in main ()

Unfortunatley theres no metacity-dbg for more information

Revision history for this message
Sebastien Bacher (seb128) wrote :

what version of the package do you use? it matches the backtrace of
http://bugzilla.gnome.org/show_bug.cgi?id=311819 which is fixed with the current
version according to upstream

Revision history for this message
Trent Lloyd (lathiat) wrote :

2.11.3-0ubuntu1

Revision history for this message
Hervé Cauwelier (bug tracking) (debian-oursours) wrote :

I experience the same with metacity 2.11.3-0ubuntu2 when the battery status
alert pops up the low battery dialog. Gnome-panel is 2.11.92-0ubuntu2 and
gnome-applets 2.11.92.1-0ubuntu1. Breezy with up-to-date with complete
ubuntu-desktop, though I have not restarted Gnome since this morning, France.

Revision history for this message
Sebastien Bacher (seb128) wrote :

can anybody getting this crash rebuild metacity with DEB_BUILD_OPTIONS=nostrip set?

Revision history for this message
Trent Lloyd (lathiat) wrote :

Yeh i rebuilt with nostrip and its not crashing

Revision history for this message
Hervé Cauwelier (bug tracking) (debian-oursours) wrote :

(In reply to comment #5)
> Yeh i rebuilt with nostrip and its not crashing

And with rebuilding the regular package? (I suspect the rebuilding itself,
compiled and linked with newer libraries.)

Revision history for this message
Trent Lloyd (lathiat) wrote :

naw i rebuilt the standard package
and given metacity in the archive was only rebuilt a couple days ago i doubt its
linked to much different.

Revision history for this message
Crispin Flowerday (crispin-flowerday-deactivatedaccount) wrote :

I also see crashes with the same backtrace. Rebuilding the package with either
'nostrip' set or without it set stops the crashes! (this is with 2.11.3-0ubuntu2).

Revision history for this message
Crispin Flowerday (crispin-flowerday-deactivatedaccount) wrote :
Revision history for this message
Trent Lloyd (lathiat) wrote :

OK so my rebuild fixed some crashes, such as from gajim, but ti still happens
randomly, just less so.

Revision history for this message
Elijah (newren) wrote :

Trent: If you still get it after a rebuild, could you post a stack trace--with
debugging symbols? (and if so, what's the exact version of Metacity you're
running?)

(The stack trace is invalid as meta_window_place() doesn't call
meta_accel_label_set_accelerator(). It calls a bunch of static functions,
however, so that's probably the cause of the bad trace--but meta_window_place()
is too huge for me to really guess at what's going on. Besides, I have been
totally unable to duplicate this bug using any of the instructions provided at
the various different reports I have seen of it)

Revision history for this message
Allison Karlitskaya (desrt) wrote :

As posted upstream:

This is a _really_ recent regression. It didn't happen before I just
dist-upgraded my laptop and now it's happening there too. Here's the chunk of
log from dist-upgrade:

Preparing to replace libmetacity0 1:2.11.2-0ubuntu1 (using
.../libmetacity0_1%3a2.11.3-0ubuntu1_powerpc.deb) ...

Preparing to replace metacity 1:2.11.2-0ubuntu1 (using
.../metacity_1%3a2.11.3-0ubuntu1_powerpc.deb) ...

The problem also goes away for me when I dpkg-buildpackage one for myself.

Revision history for this message
Trent Lloyd (lathiat) wrote :

Ryan: I foudn that building my own package *helped* but it didn't go away, just
happened less. I did build it with nostrip tho

Revision history for this message
Matt Zimmerman (mdz) wrote :

I just saw this happen with gaim today. Also, bug #20517 looks related.

Revision history for this message
Sebastien Bacher (seb128) wrote :

*** Bug 20517 has been marked as a duplicate of this bug. ***

Revision history for this message
Elijah (newren) wrote :

Fixed by the patch in http://bugzilla.gnome.org/show_bug.cgi?id=315000
(uninitialized variable, which explains the difficulty in reproducing...)

Revision history for this message
Allison Karlitskaya (desrt) wrote :

I can verify that this patch fixes the problem on my breezy machine.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Yes, this would certainly do it! One of gcc's least useful attributes is that
it zero-initialises all variables when you use the debugging support. I
should've realised that might be an explanation when the crash mysteriously
vanished with -g, but *sigh*.

Revision history for this message
Jan Schmidt (thaytan) wrote :

This bug sounds exactly like what I'm seeing on 2.11.3-0ubuntu2 too. It's really
irritating - it seems to happen every time I shut the lid and come back (ie,
when xscreensaver/unlock stuff is running) and also randomly when I'm working.
Every time metacity restarts, every window slides down the screen by the
distance of the title bar and across to the right a little, and I have to shift
them all back into place. </whine>

I'd love to see the fix uploaded :)

Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed with GNOME 2.12

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.