Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479698 - games-sports/torcs-1.3.6 is crashing with segfault when using OpenAL
Summary: games-sports/torcs-1.3.6 is crashing with segfault when using OpenAL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2013-08-04 08:03 UTC by Paul Osmialowski
Modified: 2022-11-01 04:48 UTC (History)
2 users (show)

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 Paul Osmialowski 2013-08-04 08:03:33 UTC
I can't point any particular reason for this, but I guess it was caused by one of recent updates (I'm updating my Gentoo box more often than playing games). Although it starts and shows main menu screen, Torcs segfaults wehever I try to start a new race.
I tried to rebuild but it didn't help. During rebuild I copied unstripped torcs-bin dynamically linked binary and tried to do post portem analysis. It isn't helpful - seems like the stack is corrupted:

Reading symbols from ./torcs-bin...done.
[New LWP 17143]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/usr/games/lib/torcs/torcs-bin -l ~/.torcs -L /usr/games/lib/torcs -D /usr/'.
Program terminated with signal 11, Segmentation fault.
#0  0xb2d1d03b in ?? ()
(gdb) bt
#0  0xb2d1d03b in ?? ()
#1  0x08c88bf0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) 


Reproducible: Always

Steps to Reproduce:
1. update Gentoo box often
2. try to play games-sports/torcs game
3. in the main menu, try to start a new race
Actual Results:  
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
/usr/games/bin/torcs: line 53: 17255 Segmentation fault      (core dumped) $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*

Expected Results:  
no crash

Portage 2.1.12.2 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo i686)
=================================================================
System uname: Linux-3.8.13-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.2
KiB Mem:     2067276 total,    125160 free
KiB Swap:    2104508 total,   2055836 free
Timestamp of tree: Sat, 03 Aug 2013 07:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.4.6, 2.6.8, 2.7.5, 3.1.5, 3.2.5-r1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo armagetron
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/armagetron"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit-indices 24bpp 32bit 7zip R X Xaw3d a52 aac aacplus aacs aalib abiword accessibility acl acoustid acpi adns adplug ads aesicm afp akode akonadi alias alisp allegro alsa alstream amr amrnb amrwb analitza angelscript animgif ao apbs aplaymidi apng applet archive armadillo arpack artworkextra asf asn aspell ass assistant asyncns athena attica attrib audacious audio audiofile auth automount autoreplace autotrace aux_xml avalon-framework avalon-logkit avantgo avcodec avformat awt background badval bash-completion bazaar bcmath berkdb bidi bitmap bittorrent bl blas blaster blender-game blksha1 bluetooth bluray boehm-gc bonjour bonobo bookmarks boost branding bs2b bzip2 cache cairo calendar canberra canlock caps caps-ng capslib catalogs cblas cdda cddax cdf cdio cdparanoia cdr cdrtools cegui celt cg cgraph chappa chardet chdir chicken chm ciao city clamd clamdtop clang cli client clipboard clisp clucene cluster clutter collab colord combination-explosion-check common-lisp community compat connectionstatus consolekit contactnotes context contrast contrib corefonts coverart cpufreq cracklib cramfs crashreporter creds cron crypt cryptsetup cscope css ctype ctypes-python cuda cue cups curl cursors cvs cxx d data dbase dbi dbus dc1394 ddate debugger declarative default-font deprecated designer designer-plugin desktopglobe detex devfs-compat devhelp device-mapper devil dht dia digitalradio dirac discard-path discouraged djbfft djvu dmi dnd docbook doctool dot double-precision down-root dri drmaa dsdp dselect dssi dtmf dts dv dvb dvbpsi dvd dvdnav dvdr dvi dvi2tty dvipdfm dynamic e2fsprogs eap-tls ebook eclipse edd edit editor eds egl eigen elf elisp emacs embedded emf emoticons-manager emovix enca enchant encode enscript eolconv epiphany epspdf equalizer escreen eselect ethernet etiquette excel exceptions exif expat expoblending extensions external-fuse extra extra-cardsets extra-tools extrafilters extramodules extras faac faad facedetect fam fame farstream fat fax fdk festival ffamber ffmpeg fftw filecaps fileinfo filter filters findbugs finger fingerprint firefox firefox3 fits flac flash floppy fltk fluidsynth fontconfig fontforge foomaticdb fortran fortran2003 fox fping fpx frei0r ftd2xx ftdi ftp fts3 fuse futures g15 g3dvl gadu gallium games gcdmaster gcode gconf gcrypt gd gdal gdbm gdm gdu gecko gedit geoip geoloc geolocation geonames geos ggi gif gimp ginac git gjdoc glade glep glew glib glitz gloox glpk glut gmath gme gml gmp gmplayer gnet gnokii gnome gnome-keyring gnomecd gnumeric gnuplot gnutls google gopher gpg gphoto2 gpm gps gptfdisk gpu grammar graphics graphicsmagick graphite graphviz groupwise grp grub gs gsettings gsf gsl gsm gsmloc gssapi gstreamer gtk gtk3 gtkhtml gtkstyle gudev guile gunit gzip-el h224 h281 h323 hal handbook hardcoded-tables harfbuzz hash hdf hdf5 health help heterogeneous highlight hipe hires-icons history hlapi hog hostip hotpixels howl-compat hpcups hpijs html http humanities hunspell hwdb i18n iax ical icecast icons iconv icu id3 id3tag idn iec61883 ieee1394 ifp ilbc image image-cache imagemagick imaging imlib infinality inherit-graph inifile inkjar inotify internal-fltk intl introspection iodbc ipc iplayer ipod iproute2 iptables ipv6 ipython irc irrlicht isag iscsi iso it3tag itk jabber jack jadetex jai java java5 java6 javacomm javamail javascript jbig jit jmf jms joystick jpeg jpeg2k json kate kde kdm kdrive kexiv2 keymap keyutils kig-scripting kipi kmod kontact kpathsea ladspa lame lapack largefile lash lasi lastfm lastfmradio latex latex3 lcdfilter lcms ldap ldap-sasl ldapdb ldb ldos leim less levels libadns libass libburn libcaca libcanberra libclamav libdsk libev libevent libextractor libffi libgda libkms libmms libmpeg2 libnotify libs libsamplerate libssh2 libssp libsysfs libtar libtiger libv4l libv4l2 libvisual libwww libxml2 libyaml lid lightning linuxkeys lirc listen-queue live llvm lm_sensors log4j logitech-mouse logrotate lpsol lqr lua luatex lucene lvm1 lxde lyx lzma lzo m17n-lib m4lib-png mad magic mail manual maps math mathml matplotlib matroska mbox mclib mcve md5sum mdns-bundled mdnsresponder-compat mediawiki memmap mercurial metalink metapost metis metric mew mhash midi mikmod mime minizip mixer mjpeg mmap mms mmx mng mod modplug modules mono moonlight motif mouse moviepack moviesounds mozdevelop mozdom mozilla mozsha1 mp2 mp3 mp3tunes mp4 mpeg mpg123 mpi mplayer mpx msn mta mtp mudflap mule multimedia mumble musepack music musicbrainz mvl mzscheme natspec nautilus ncat ncurses ndiff neXt nelma net netapi netbeans netcdf netlink netpbm nettle network networking new-clx new-login nextaw nfsdcld nfsidmap nfsv3 nfsv4 nfsv41 nio-buffers nis njb nls nntp no-old-linux nodrm nogyroscopic nokia nominatim normalize nowlistening nping npp nptl nsplugin nss ntfs ntfsprogs ntlm ntlm_unsupported_patch ntp numpy nut nuv nvidia nvtt nyx objc objc++ objc-gc ocaml ocamlopt ocr octave odbc ode offensive offscreen ofx ogdi ogg ogg123 ogm ois okteta okular omega omxil opal openal opencl opencore-amr openexr opengl openldap openmedia openmp openrc openssl openxml opus orc oscar osdmenu osgapps osmesa oss otp otr ots overlays pac pager pam pango pari parport password pasteafter pbs pcap pci pcntl pcre pcsc-lite pda pdf pdfannotextractor pdo perl perl-geoipupdate pg-intdatetime pgm phar phonon php physfs pipe pixmaps pkinit places plasma player playlist playtools plot plotutils plugin-checksum plugin-doat plugin-fishlim plugin-sysinfo plugins pm-utils pnat png pnm policykit poppler-data portaudio posix postgres postproc postscript povray powerkadu ppds ppp presto preview-latex prison private-headers profiler proj projectm ps pstricks pth publishers pvr pyglet python qalculate qemu qhull qimageblitz qos qpak qrupdate qscintilla qt-bundled qt-faststart qt-static qt3 qt3support qt4 qthelp quicktime quotes qwt radio raptor rar raw rcs readline real recursion-limit redeyes redland reflection regex remote remoteosd resid reviewboard rle romio rpm rrdtool rss rtc rtf rtmp rtsp ruby rups samba sametime sasl sbc scale0tilt scanner schroedinger science screen script scripting scripttools scsi sctp sdk sdl sdl-image sdl-sound sdlgfx seccomp segger semantic-desktop sensord serial servletapi session sftp sge shaders shapefile shared-glapi sharedext sharedmem shine shm shmvideo shout sid sift sigsegv simplexml sip sipim skins skype slang smbclient smbtav2 smi smime smp smpeg sms sna sndfile snmp soap sockets solver sound soundex sounds soundtouch soup sourceview sox sparse speech speex spell spidermonkey spl splash sql sqlite sqlite3 srtp sse sse2 sse2check ssl startup-notification static-analyzer statistics stats stl stream stun subject-rewrite subtitles subversion suhosin supernodal svg svm swat swig switcher swscale syslog system-mpmath systemtap sysvipc szip t1lib taglib tbb tcl tcpd tdb tdbtest teamarena telepathy teletext telnet test-framework tevent tex4ht texi2html texmacs texteffect tga themedesigner themes theora thesaurus thin thin-splines threads threadsafe thumbnail thumbnails tidy tiff tilepath timezone timidity tinfo tk tls tokenizer toolame toolbar toolkit-scroll-bars tools toporouter totem track-src-odirect traits translator tremor truetype tta twisted twolame type3 udev udev-acl udis86 udisks umfpack unicode unlock-notify usb usbredir utempter utils uudeview uuid v4l v4l2 vaapi vala valgrind vamp vapigen vcd vcdinfo vcdx vdpau vdr versaloon verse vhook vhost-net video videoslideshow vidix vim-pager vim-with-x virtuoso visualization vlm vmd vmware vmware-tools vnc voice vorbis vpx vst wad wallpapers watchdog wav wavpack wddx weather web webdav webdav-neon webdav-serf webgl webkit webkit2 webm webp widescreen win32codecs winbind wininst winpopup wma wma-fixed wmf wordperfect wxwidgets wxwindows x264 x86 xa xanim xbase xcap xcb xchatdccserver xcomposite xemacs xembed xerces-c xetex xext xface xforms xforward xfs xft xgetdefault xindy xine xinerama xinetd xls xml xmldoclet xmlpatterns xmlreader xmlrpc xmlwriter xmp xmpp xnest xorg xorgmodule xosd xpdf-headers xpm xrandr xrender xscreensaver xsl xslt xterm xulrunner xv xvfb xvid xvmc xz yahoo yahoo-geo yaz youtube yp yv12 zip zlib zvbi" ABI_X86="32" ALSA_CARDS="emu10k1 emu10k1x" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon spca50x template ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="dummy nv nvidia v4l r128 intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paul Osmialowski 2013-08-04 08:06:27 UTC
I've forgotten to add version info: this is games-sports/torcs-1.3.4
Comment 2 Paul Osmialowski 2013-08-10 21:11:00 UTC
After recent alsa-lib upgrade (to version media-libs/alsa-lib-1.0.27.1) I can see some progress here: after selecting new race in menu, a race screen is opened (for a first time!) with following output printed on a console:

OpenAL backend info:
  Vendor: OpenAL Community
  Renderer: OpenAL Soft
  Version: 1.1 ALSOFT 1.15.1
  Available sources: 256
  Available buffers: 1024 or more
  Dynamic Sources: requested: 235, created: 235
  #static sources: 21
  #dyn sources   : 235

Unfortunately, after few seconds of hearing nice tune, a crash as usual kills the game.
Comment 3 Paul Osmialowski 2013-08-10 21:16:54 UTC
Rebuilding of OpenAL did not help. However, since I've found that it is the sound that causes all of the problems, I went into configuration menu and changed sound system from OpenAL to plib - now torcs works fine!
Comment 4 David Heidelberg (okias) 2014-07-01 17:02:20 UTC
you didn't proviede any debug information, so it's hard to say where is problem.

You may try media-libs/openal-9999 from ::ixit overlay and report if it still segfailts?

At least for me it solved one crash.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2014-09-02 00:54:40 UTC
it's no better in 1.3.6 as far as I can tell.
Comment 6 Larry the Git Cow gentoo-dev 2022-11-01 04:48:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97caaf827ca530c3b8dcb7b1377bb403cac9b632

commit 97caaf827ca530c3b8dcb7b1377bb403cac9b632
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-11-01 04:37:21 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-11-01 04:37:21 +0000

    games-sports/torcs: treeclean
    
    Closes: https://bugs.gentoo.org/253517
    Closes: https://bugs.gentoo.org/479698
    Closes: https://bugs.gentoo.org/601636
    Closes: https://bugs.gentoo.org/711644
    Closes: https://bugs.gentoo.org/846671
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 games-sports/torcs/Manifest                        |  1 -
 .../torcs/files/torcs-1.3.6-as-needed.patch        | 96 ----------------------
 games-sports/torcs/files/torcs-1.3.6-flags.patch   | 14 ----
 games-sports/torcs/files/torcs-1.3.6-format.patch  | 34 --------
 games-sports/torcs/files/torcs-1.3.6-gcc6.patch    | 11 ---
 games-sports/torcs/files/torcs-1.3.6-gcc7.patch    | 11 ---
 .../torcs/files/torcs-1.3.6-no-automake.patch      | 21 -----
 games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch | 15 ----
 games-sports/torcs/metadata.xml                    | 11 ---
 games-sports/torcs/torcs-1.3.6-r2.ebuild           | 68 ---------------
 profiles/package.mask                              |  7 --
 11 files changed, 289 deletions(-)