Menu

#89 torcs crashes with a segfault

closed
5
2012-07-03
2007-06-09
No

I have this difficulty since torcs-1.3.0 (before all worked well).

I begin a new race, I can start. All is well displayed. But if my car touches another one or a wall or anything, Torcs exists with a segfault.

I'm on a AMD64 Gentoo machine. I removed the .torcs directory but nothing changed.

The console output is :

david@denebe ~ $ torcs
Visual Properties Report


Compatibility mode, properties unknown.
WARNING: ssgLoadTexture: Cannot determine file type for './(null)'
GfParmCheckHandle: parameter "Front Wing/angle" out of bounds: min:0 max:0.20944 val:0.261799 in ("NASCAR RWD" - "drivers/lliaw/tracksdata/car_g-track-3.xml")
GfParmCheckHandle: parameter "Rear Right Suspension/packers" out of bounds: min:0 max:0.01 val:0.02 in ("Tanhoj" - "drivers/tanhoj/tracksdata/car_g-track-3.xml")
GfParmCheckHandle: parameter "Rear Left Suspension/packers" out of bounds: min:0 max:0.01 val:0.02 in ("Tanhoj" - "drivers/tanhoj/tracksdata/car_g-track-3.xml")
GfParmCheckHandle: parameter "Front Wing/angle" out of bounds: min:0 max:0.20944 val:0.523599 in ("Tanhoj" - "drivers/tita/tracksdata/car_g-track-3.xml")
OpenAL backend info:
Vendor: OpenAL Community
Renderer: Software
Version: 1.1
Available sources: 1024 or more
Available buffers: 1024 or more
Dynamic Sources: requested: 1003, created: 1003
#static sources: 21
#dyn sources : 1003
/usr/games/bin/torcs: line 52: 26783 Erreur de segmentation $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*

All those lines are written before me to begin the race except the last one...

My graphic card is an nVidia, the driver is the proprietary driver 1.0.9755 (I don't see any problem with it...)

Thanks.

Discussion

  • David Boucher

    David Boucher - 2007-06-16

    Logged In: YES
    user_id=1169201
    Originator: YES

    I have installed torcs from sources, compiled it with --enable-debug. The last informations on the console are

    OpenAL backend info:
    Vendor: OpenAL Community
    Renderer: Software
    Version: 1.1
    Available sources: 1024 or more
    Available buffers: 1024 or more
    Dynamic Sources: requested: 1003, created: 1003
    #static sources: 21
    #dyn sources : 1003
    GfParmWriteFile: /home/david/.torcs/config/graph.xml file written

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1082677568 (LWP 3879)]
    0x00002ba4bdd7d27b in ?? () from /usr/lib/libopenal.so.0
    (gdb) #0 0x00002ba4bdd7d27b in ?? () from /usr/lib/libopenal.so.0

    1 0x00002ba4bdd73979 in ?? () from /usr/lib/libopenal.so.0

    2 0x00002ba4bdd6ddae in ?? () from /usr/lib/libopenal.so.0

    3 0x00002ba4bdd6fb5b in ?? () from /usr/lib/libopenal.so.0

    4 0x00002ba4bdd70caa in ?? () from /usr/lib/libopenal.so.0

    5 0x00002ba4bdd784fb in ?? () from /usr/lib/libopenal.so.0

    6 0x00002ba4bfc4c135 in start_thread () from /lib/libpthread.so.0

    7 0x00002ba4bef9662d in clone () from /lib/libc.so.6

    8 0x0000000000000000 in ?? ()

    (gdb) quit
    The program is running. Exit anyway? (y or n) [answered Y; input not from termi---Type <return> to continue, or q <return> to quit---nal]

    So the problem seems coming from OpenAl...

    I then tried to switch the sound engine to plib and all works fine.

     
  • Bernhard Wymann

    Bernhard Wymann - 2007-09-09

    Logged In: YES
    user_id=318462
    Originator: NO

    If OpenAL is broken on your platform this is the wrong place for reporting it. Thank you for the report anyway.

    Bernhard