Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153859 - fluxbox crashes on start as non-root user
Summary: fluxbox crashes on start as non-root user
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Commonbox Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 13:18 UTC by Daniel Drake (RETIRED)
Modified: 2006-11-17 07:52 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 Daniel Drake (RETIRED) gentoo-dev 2006-11-02 13:18:23 UTC
Here's an odd bug. I guess this should probably go upstream, but I wanted to get your thoughts first. This has been reproduced on several fluxbox versions including 1.0_rc2-r2

When run as root, fluxbox starts fine.

When run as a user, startfluxbox gives this output:

Failed to read: session.tabs
Setting default value
Failed to read: session.ignoreBorder
Setting default value
Failed to read: session.forcePseudoTransparency
Setting default value
Failed to read: session.numLayers
Setting default value
Failed to read: session.tabPadding
Setting default value
Failed to read: session.focusTabMinWidth
Setting default value
Failed to read: session.styleOverlay
Setting default value
Failed to read: session.slitlistFile
Setting default value
Failed to read: session.groupFile
Setting default value
Failed to read: session.appsFile
Setting default value
Failed to read: session.tabsAttachArea
Setting default value
Failed to read: session.modKey
Setting default value
apps file failure
ThemeItem<Font>: Warning! Failed to load default value 'fixed'
ThemeItem<Font>: Warning! Failed to load default value 'fixed'
ThemeItem<Font>: Warning! Failed to load default value 'fixed'
Aborted

I have tried using the root ~/.fluxbox directory under my user, no change. strace shows a segfault:
read(3, 0x7fffffa6b3b0, 32)             = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\1\0\320\0\0\0\0\0\377\377\377\377\377\377\0\0\377\377"..., 32) = 32
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid()                                = 12386
tgkill(12386, 12386, SIGABRT)           = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
Process 12386 detached

gdb says it is font related:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004e1544 in FbTk::Font::height (this=0x0) at Font.cc:240
240         return m_fontimp->height();
(gdb) bt
#0  0x00000000004e1544 in FbTk::Font::height (this=0x0) at Font.cc:240
#1  0x00000000004f075e in MenuTheme (this=0x718f10, screen_num=0)
    at MenuTheme.hh:85
#2  0x000000000048e12a in MenuTheme (this=0x718f10, screen_num=7447296)
    at MenuTheme.cc:56
#3  0x000000000044f48a in BScreen (this=0x691c00, rm=@0x67ef40, 
    screenname=@0x7fffffe74870, altscreenname=@0x7fffffe74850, scrn=0, 
    num_layers=6889192) at memory:191
#4  0x000000000042e4e7 in Fluxbox::initScreen (this=0x67ef10, scrnr=0)
    at fluxbox.hh:129
#5  0x00000000004311d6 in Fluxbox (this=0x67ef10, argc=1, argv=0x67f5c0, 
    dpy_name=0x71a300 "", rcfilename=0x7fffffe74c10 "@&#65533;h") at stl_vector.h:462
#6  0x000000000043cb90 in main (argc=1, argv=0x7fffffe75178)
    at basic_string.h:1458

Any ideas?

Portage 2.1.1-r1 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r12 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r12 x86_64 Dual Core AMD Opteron(tm) Processor 265
Gentoo Base System version 1.12.5
Last Sync: Sun, 22 Oct 2006 07:00:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe -fomit-frame-pointer -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=opteron -pipe -fomit-frame-pointer -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer nodoc noinfo noman parallel-fetch sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://mirror http://distfiles.gentoo.org"
LINGUAS="en"
MAKEOPTS="-j5"
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://mirror/gentoo-portage"
USE="amd64 X acl alsa apm bitmap-fonts bzip2 cairo cdr cli cracklib crypt dbus dlloader dri dvdr eds elibc_glibc emboss encode fam foomaticdb fortran gif gnutls gtk gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libclamav linguas_en lzw lzw-tiff madwifi mp3 mpeg ncurses nptl nptlonly nvidia oav opengl openntpd pam pam_chroot pam_timestamp pcre png pppd pwdb python quicktime quotas readline reflection rtc samba sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU userlocales video_cards_nv video_cards_nvidia video_cards_vesa winbind xinerama xml xml2 xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2006-11-17 07:52:54 UTC
We had a bad zlib in LD_LIBRARY_PATH for that user. Sorry for the noise.