Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 206573

Summary: games-strategy/savage-bin-2.00e doesn't start (xcb problem)
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174434    

Description Pacho Ramos gentoo-dev 2008-01-18 20:10:36 UTC
I get the following error:
$ savage
System_Init()
silverback.bin: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Signal 

Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-tuxonice-r5 i686)
=================================================================
System uname: 2.6.23-tuxonice-r5 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Timestamp of tree: Sat, 12 Jan 2008 09:47:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium-m -mfpmath=sse -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium-m -mfpmath=sse -msse3"
DISTDIR="/usr/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa ape asf audiofile avahi avi bash-completion bcmath beagle bitmap-fonts bonobo bzip2 bzlib cairo caps cdb cddb cdparanoia cdr cdrparanoia cli cpdflib cracklib cross crypt css cups curl curlwrappers daap dbus divx4linux djvu dts dv dvb dvd dvdr dvdread dvi eds emerald encode escreen evo exif fam fbcon fbsplash ffmpeg firefox flac foomaticdb fortran ftp galago gb gcj gd gif gimp gimpprint glitz glut glx gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hddtemp iconv imagemagick imlib ipv6 isdnlog jabber jack java jikes jpeg kde kdeenablefinal kdehiddenvisibility latex lcms lesstif libnotify lm_sensors logrotate mac mad mbox midi mikmod mime ming mmap mmx mmxext mng modplug mono motif mp3 mpeg mpi mplayer mudflap musepack musicbrainz nas ncurses nethack nls nocd nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis openal opengl openmp opnegl pam pcmcia pcre pdf pdflib perl pic png pnp posix ppds pppd python qt qt3 qt4 quicktime readline real reflection reiserfs rpm rtc ruby scanner sdl seamonkey session slang slp smp sndfile sockets socks5 speex spell spl sse sse2 sse3 ssl startup-notification svg syslog tcltk tcpd tetex tga theora threads tiff timidity tk truetype truetype-fonts trusted type1-fonts unicode usb userlocales v4l v4l2 vcd videos vim vorbis wifi win32codecs wma wmf wxwindows x86 xattr xcb xcomposite xine xml xorg xpm xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS=" " ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2008-01-18 21:28:00 UTC
I have also tried with x11-libs/libxcb-1.1 launching it with:
LIBXCB_ALLOW_SLOPPY_LOCK=1 savage

It is launched, but freezes with a black window, after killing it, I get the following:
$ LIBXCB_ALLOW_SLOPPY_LOCK=1 savage
System_Init()
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
#1 ./libs/libSDL-1.2.so.0(X11_GetVideoModes+0x407) [0xb7e74387]
#2 ./libs/libSDL-1.2.so.0 [0xb7e75c80]
#3 ./libs/libSDL-1.2.so.0(SDL_VideoInit+0x286) [0xb7e6c126]
#4 ./libs/libSDL-1.2.so.0(SDL_InitSubSystem+0x4b) [0xb7e4f0eb]
#5 ./silverback.bin [0x8081f8f]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
#1 ./libs/libSDL-1.2.so.0(SDL_VideoInit+0x286) [0xb7e6c126]
#2 ./libs/libSDL-1.2.so.0(SDL_InitSubSystem+0x4b) [0xb7e4f0eb]
#3 ./silverback.bin [0x8081f8f]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
#1 ./libs/libSDL-1.2.so.0 [0xb7e769e9]
#2 ./libs/libSDL-1.2.so.0 [0xb7e76b9a]
#3 ./libs/libSDL-1.2.so.0(SDL_SetVideoMode+0x1a5) [0xb7e6c90d]
#4 ./silverback.bin [0x8081883]
silverback.bin: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
#1 ./libs/libSDL-1.2.so.0(SDL_FreeCursor+0x85) [0xb7e68949]
#2 ./libs/libSDL-1.2.so.0(SDL_CursorQuit+0x64) [0xb7e684c4]
#3 ./libs/libSDL-1.2.so.0(SDL_VideoQuit+0x44) [0xb7e6d98c]
#4 ./libs/libSDL-1.2.so.0(SDL_QuitSubSystem+0x8c) [0xb7e4f298]
#5 ./libs/libSDL-1.2.so.0(SDL_Quit+0x20) [0xb7e4f2ec]
#6 ./silverback.bin [0x809a5a6]
#7 [0xb7f65420]
silverback.bin: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.
Signal Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7a287c7]
#1 ./libs/libSDL-1.2.so.0 [0xb7e7740e]
#2 ./libs/libSDL-1.2.so.0(SDL_VideoQuit+0x52) [0xb7e6d99a]
#3 ./libs/libSDL-1.2.so.0(SDL_QuitSubSystem+0x8c) [0xb7e4f298]
#4 ./libs/libSDL-1.2.so.0(SDL_Quit+0x20) [0xb7e4f2ec]
#5 ./silverback.bin [0x809a5a6]
#6 [0xb7f65420]
silverback.bin: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (d
Comment 2 Pacho Ramos gentoo-dev 2008-02-02 23:45:33 UTC
I got the fix :-D

Simply use system sdl instead of savage provided one:
rm /opt/savage/libs/libSDL-1.2.so.0
ln -s /usr/lib/libSDL-1.2.so.0 .

Now works even without exporting LIBXCB_ALLOW_SLOPPY_LOCK=1

Comment 3 Pacho Ramos gentoo-dev 2008-02-02 23:46:35 UTC
(In reply to comment #2)
> ln -s /usr/lib/libSDL-1.2.so.0 .

After:
cd /opt/savage/libs of course

Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2008-09-05 15:47:53 UTC
probably fixed by the reworked ebuild from Scarabeus.  Reopen if it's still broken in the same way.