Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103861 - metacity 2.11.2 (gnome 2.12 beta) Segfaults at start
Summary: metacity 2.11.2 (gnome 2.12 beta) Segfaults at start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 2.12
  Show dependency tree
 
Reported: 2005-08-26 15:39 UTC by pejcao
Modified: 2005-08-28 13:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pejcao 2005-08-26 15:39:18 UTC
x11-wm/metacity-2.11.2 Segfaults starting... I think it is related with not
discoreing the right screen (display)

Reproducible: Always
Steps to Reproduce:
1.UNMASK/KEYWORD 'it
2.INSTALL IT
3.RUN IT ;)

Actual Results:  
Segfaulting

Expected Results:  
WM running

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac alsa apache2 apm avi bash-completion bitmap-fonts
bonobo bzlib cdparanoia cdr crypt cups curl dbus divx4linux dv dvb dvd dvdr
dvdread eds emboss encode esd evo exif expat fam fbcon ffmpeg flac font-server
foomaticdb fortran ftp gd gdbm gif glut gnome gnutls gpm gstreamer gtk gtk2
gtkhtml hal howl imagemagick imap imlib innodb jack java jpeg junit lcms ldap
libg++ libgda libwww lirc lm_sensors mad maildir mailwrapper matroska mhash
mikmod mime mmx mng mono mp3 mpeg msn mysql nas ncurses nls nptl ogg oggvorbis
opengl oss pam pcre pdflib perl php png pnp posix ppds python quicktime readline
samba sdl shared slp sndfile sockets sox spell ssl svg svga symlink sysvipc
tcltk theora tiff tokenizer truetype truetype-fonts type1-fonts unicode usb
userlocales v4l vailas vcd vhosts videos vorbis wifi win32codecs wmf xine xml
xml2 xmlrpc xmms xosd xpm xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS


Debugging I get this:
Starting program: /usr/bin/metacity
[Thread debugging using libthread_db enabled]
[New Thread -1218394448 (LWP 14927)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218394448 (LWP 14927)]
0xb7c15443 in _gdk_visual_init (screen=0x80f0df0) at gdkvisual-x11.c:259
259     gdkvisual-x11.c: No such file or directory.
        in gdkvisual-x11.c
(gdb) bt
#0  0xb7c15443 in _gdk_visual_init (screen=0x80f0df0) at gdkvisual-x11.c:259
#1  0xb7c13376 in _gdk_x11_screen_new (display=0x80ee8d8, screen_number=0) at
gdkscreen-x11.c:497
#2  0xb7bfa8d5 in IA__gdk_display_open (display_name=0x51 <Address 0x51 out of
bounds>) at gdkdisplay-x11.c:183
#3  0xb7bd7694 in IA__gdk_display_open_default_libgtk_only () at gdk.c:237
#4  0xb7d8e938 in IA__gtk_init_check (argc=0x51, argv=0x51) at gtkmain.c:717
#5  0x0809cd5b in meta_ui_init (argc=0x51, argv=0x51) at ui.c:52
#6  0x080750d9 in main (argc=1, argv=0xbfbb06c4) at main.c:388

So after a closer look, invoking metacity with "--display=:0" it runs OK!!!
...
Long after... changing /usr/share/gnome/default.session as :

--- default.session.orig        2005-08-26 18:17:28.000000000 -0400
+++ default.session     2005-08-26 18:18:05.000000000 -0400
@@ -11,7 +11,7 @@
 num_clients=3
 0,id=default0
 0,Priority=0
-0,RestartCommand=gnome-wm --default-wm gnome-wm --sm-client-id default0
+0,RestartCommand=gnome-wm --default-wm gnome-wm --sm-client-id default0
--display=:0
 1,id=default1
 1,Priority=10
 1,RestartCommand=gnome-panel --sm-client-id default1

...does  a hot fix, maybe doing magic with the "gnome-session-*" or GConf thingy
does the job.

This looks like an upstream one, plz somebudy file it to gnome...
thx!
Comment 1 pejcao 2005-08-28 13:08:22 UTC
nevermind, doing rm -rf .gconf* .gnome* .nautilus .metacity <-- Fixed it

plz 4give me...