You are not logged in.

#1 2013-02-18 13:46:13

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

[Partially solved]Torcs Segmentation fault

Everything working until I start race,text shows on screen and when it show 'Ready.' application crushes. I can change options and customize race,it working. I tried all races but it is same. I use nvidia-96xx proprietary driver.This is terminal output:

[nale@nale ~]$ torcs
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
/usr/bin/torcs: line 53: 12670 Segmentation fault      (core dumped) $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*

Comp specs:
processor: AMD 1.5 GHz
ram: 256 MB
video: nvidia  GeForce4 MX 4000 with 64MB

Last edited by na12 (2013-02-21 10:04:41)

Offline

#2 2013-02-19 05:19:31

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: [Partially solved]Torcs Segmentation fault

Provide a backtrace so we can see where it crashes.

Offline

#3 2013-02-19 12:17:54

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: [Partially solved]Torcs Segmentation fault

Svenstaro wrote:

Provide a backtrace so we can see where it crashes.

Sorry,I forgot for backtrace,it's been so long since I had unresolvable problem. Here it is:

[nale@nale ~]$ torcs -d
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/torcs/torcs-bin...(no debugging symbols found)...done.
(gdb) Starting program: /usr/lib/torcs/torcs-bin -l /home/nale/.torcs -L /usr/lib/torcs -D /usr/share/games/torcs
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
[New Thread 0xb4460b40 (LWP 453)]
[Thread 0xb4460b40 (LWP 453) exited]
[New Thread 0xb3a0ab40 (LWP 455)]
[Thread 0xb3a0ab40 (LWP 455) exited]

Program received signal SIGSEGV, Segmentation fault.
0xb3a35adb in ?? ()
(gdb) #0  0xb3a35adb in ?? ()
#1  0x08142e10 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) quit
A debugging session is active.
---Type <return> to continue, or q <return> to quit---
	Inferior 1 [process 449] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]

Offline

#4 2013-02-21 10:14:22

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: [Partially solved]Torcs Segmentation fault

I disable sound in options,and now it works. Apparently my sound card is not supported.

Offline

#5 2013-09-27 16:02:04

cephus5
Member
Registered: 2013-09-27
Posts: 5

Re: [Partially solved]Torcs Segmentation fault

Hi Gurus,

glxgears and other openGL apps work fine, but Torcs (self-compiled) fails on startup:

~$ torcs
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
/usr/local/bin/torcs: line 53:  4267 Segmentation fault      $LIBDIR/torcs-bin -l $LOCAL_CONF -L $LIBDIR -D $DATADIR $*

~$

and here the debug output:

~$ torcs -d
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/lib/torcs/torcs-bin...done.
(gdb) Starting program: /usr/local/lib/torcs/torcs-bin -l /home/peter/.torcs -L /usr/local/lib/torcs -D /usr/local/share/games/torcs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Visual Properties Report
------------------------
Compatibility mode, properties unknown.
[New Thread 0x7fffee823700 (LWP 4343)]
[New Thread 0x7fffee022700 (LWP 4344)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffeeeac773 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
(gdb) #0  0x00007fffeeeac773 in ?? ()
   from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#1  0x00007ffff6b446d1 in getGLTextureMaxSize (result=@0x7ffff6d4ad14: 0)
    at glfeatures.cpp:113
#2  0x00007ffff6b447d8 in checkGLFeatures () at glfeatures.cpp:155
#3  0x00007ffff6b3c554 in GfScrInit (argc=7, argv=0x7fffffffe2f8)
    at screen.cpp:413
#4  0x000000000040153c in main (argc=7, argv=0x7fffffffe2f8) at main.cpp:132
(gdb) quit
A debugging session is active.
---Type <return> to continue, or q <return> to quit---
	Inferior 1 [process 4340] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
~$ 

Any idea how I can fix the segmention fault?

Things I've tried:
- my user is in the 'video' group
- I have not found any way to disable sound, since startup fails. I think from Debug that the sound isn't the issue.

Thanks!

Offline

#6 2013-09-27 16:04:45

cephus5
Member
Registered: 2013-09-27
Posts: 5

Re: [Partially solved]Torcs Segmentation fault

Is there a way to disable sound before startup, e.g. in a command line or configuration file?

Offline

#7 2013-09-27 16:18:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Partially solved]Torcs Segmentation fault

See https://bugs.archlinux.org/task/33171
Post the PKGBUILD you used.


Edit: Groups like 'video' shouldn't be necessary with systemd. They may even break stuff.

Last edited by karol (2013-09-27 16:19:05)

Offline

#8 2013-09-27 16:22:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Partially solved]Torcs Segmentation fault

Merged threads


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2013-09-27 16:31:01

sas
Member
Registered: 2009-11-24
Posts: 155

Re: [Partially solved]Torcs Segmentation fault

@cephus5

The reference to "swrast_dri.so" (which is Mesa's fallback software rasterizer) in the debug output, suggests that you do not have direct rendering.

(The fact that glxgears works is no evidence to the contrary, because unlike most games it can run just fine on Mesa's software rendering...)

What output do you get for the following command:

LIBGL_DEBUG=verbose glxinfo | grep -P '.*(direct|string).*:'

Last edited by sas (2013-09-27 16:43:22)

Offline

#10 2013-09-27 17:35:25

cephus5
Member
Registered: 2013-09-27
Posts: 5

Re: [Partially solved]Torcs Segmentation fault

libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: Can't open configuration file /home/peter/.drirc: No such file or directory.
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x209)
OpenGL version string: 2.1 Mesa 8.0.5
OpenGL shading language version string: 1.20

Offline

#11 2013-09-27 17:56:11

cephus5
Member
Registered: 2013-09-27
Posts: 5

Re: [Partially solved]Torcs Segmentation fault

By the way, this is in a VMWare virtual machine - do you think that makes a difference?

Offline

#12 2013-09-27 18:29:25

sas
Member
Registered: 2009-11-24
Posts: 155

Re: [Partially solved]Torcs Segmentation fault

Your glxinfo output confirms that you've only got software rendering ("llvmpipe" renderer).

Running inside a virtual machine certainly complicates things, and requires additional set-up effort to make hardware-accelerated OpenGL rendering work (and it may not work at all, or not satisfactorily, with some host/guest combinations).

I have no personal experience with Arch Linux running as a VMWare guest, but the following wiki page will probably help you: Installing_Arch_Linux_in_VMware (especially the "Xorg configuration" section)

Of course hardware-accelerated direct OpenGL rendering already needs to be working on the host system.
If you need further assistance, be sure to mention what host operating system and graphics card you're using.

Offline

#13 2013-09-27 19:04:05

cephus5
Member
Registered: 2013-09-27
Posts: 5

Re: [Partially solved]Torcs Segmentation fault

Thanks for the advice everyone!

I'll do some more exploring and return with some more info if I am able to solve this.

Offline

Board footer

Powered by FluxBB