gdb backtrace: Core was generated by `openbox'. Program terminated with signal 11, Segmentation fault. #0 0x00002b7f9ab6c98f in g_option_context_parse () from /usr/lib/libglib-2.0.so.0 (gdb) where #0 0x00002b7f9ab6c98f in g_option_context_parse () from /usr/lib/libglib-2.0.so.0 #1 0x00002b7f9922a9ff in gtk_parse_args () from /usr/lib/libgtk-x11-2.0.so.0 #2 0x00002b7f9922aa59 in gtk_init_check () from /usr/lib/libgtk-x11-2.0.so.0 #3 0x00002b7f9922aa89 in gtk_init () from /usr/lib/libgtk-x11-2.0.so.0 #4 0x000000000042beab in main (argc=1, argv=0x7fff12320918) at openbox/openbox.c:112 (gdb) emerge --info: Portage 2.1.1_pre2-r6 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17.3 x86_64) ================================================================= System uname: 2.6.17.3 x86_64 AMD Athlon(tm) 64 Processor 3700+ Gentoo Base System version 1.12.1 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon64 -pipe " DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch http://pandemonium.tiscali.de/pub/gentoo/" LC_ALL="en_US.utf8" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage" USE="amd64 X a52 alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 calendar cdparanoia cdr cli crypt cups dio dlloader dri dts dvb dvd dvdr dvdread emboss encode ethereal exif ffmpeg fftw firefox foomaticdb fortran ftp gif glitz gpm gstreamer gtk gtk2 imlib imlib2 isdnlog jpeg kdeenablefinal ladcca lcms lua lzw lzw-tiff matroska mmap mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mysqli ncurses nls nptl nptlonly offensive ogg opengl pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline recode reflection sdl session sharedmem sockets sox spell spl ssl svg szip tcpd tetex theora tiff truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vim vim-pager vlm vorbis wmf xorg xosd xpm xv xvid zlib dvb_cards_ttpci elibc_glibc input_devices_keyboard input_devices_mouse input_devices_wacom kernel_linux userland_GNU video_cards_vesa video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS cvs checkout as of Wed Jul 12 12:26:28 2006 works just fine.
this is due to the patch that is applied by gentoo when you have gtk in USE.
Downgrade to openbox-20060509-r1, which is the exact same thing without the experimental gtk-colors patch. Optionally, you can get my openbox-3.3.1 ebuild from bug #145214, but I recommend you just wait until it gets into portage.
Oops! I forgot to mention why downgrading is better than disabling the gtk USE flag. The patch is applied whether or not the gtk flag is enabled, however the support for gtk is not compiled in if it's not. Why use the one with the extra patch when you aren't going to compile the feature from the patch? Not to mention that the source code is changed for no reason at all if you use openbox-20060509-r2 without the gtk USE flag.
right fix is to change openbox-20060509-gtkcolors.patch + gtk_init (&argv, &argv); to + gtk_init (&argc, &argv);
a) This bug is ancient and b) the version mentioned hasn't been in the tree for months. Closing.