Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Segmentation fault.
05-06-2013, 04:35 AM
Post: #1
Segmentation fault.
After compiling the latest version of vdrift I decided to test in on an NVIDIA Optimus machine. It segfaulted:

DRI_PRIME=1 gdb ./build/vdrift
GNU gdb (GDB) 7.6
Copyright © 2013 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/antonio/Projects/vdrift/build/vdrift...done.
(gdb) run
Starting program: /home/antonio/Projects/vdrift/build/vdrift
warning: Could not load shared library symbols for linux-vdso.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".
INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: development-full, Revision: Unversioned directory, O/S: Unix
INFO: Home directory: /home/antonio
INFO: Settings file: /home/antonio/.vdrift/VDrift.config (does not exist, will be created)
INFO: Data directory: data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/antonio/.vdrift/tmp
INFO: Log file: /home/antonio/.vdrift/log.txt
ERROR: Failed to load /home/antonio/.vdrift/VDrift.config
INFO: The last VDrift startup was unsuccessful.
Settings have been set to failsafe defaults.
Your original VDrift.config file was backed up to VDrift.config.backup
[New Thread 0x7fffea578700 (LWP 1948)]
[Thread 0x7fffea578700 (LWP 1948) exited]
INFO: Disabling antialiasing
ATTENTION: default value of option force_s3tc_enable overridden by environment.
INFO: Display change was successful: 800x600x32 16z fullscreen=0
INFO: Video card information:
GL Vendor: Intel Open Source Technology Center
GL Renderer: Mesa DRI Intel® Ivybridge Mobile
GL Version: 3.0 Mesa 9.1.2
Texture units: 8 full, 16 partial
Maximum texture size: 8192
Maximum varying floats: 64
INFO: You don't have an NVIDIA or ATI/AMD card. This game may not run correctly or at all.
INFO: Using GLEW 1.9.0
INFO: Maximum color attachments: 8
INFO: Maximum draw buffers (1 required): 8
INFO: Disabling shaders
INFO: Maximum anisotropy: 16

Program received signal SIGSEGV, Segmentation fault.
0x00007fffede435a3 in ?? () from /usr/lib/libdricore9.1.2.so.1
(gdb) bt
#0 0x00007fffede435a3 in ?? () from /usr/lib/libdricore9.1.2.so.1
#1 0x00007fffedd5405a in _ae_ArrayElement () from /usr/lib/libdricore9.1.2.so.1
#2 0x00007fffede37632 in ?? () from /usr/lib/libdricore9.1.2.so.1
#3 0x0000000000587a40 in MODEL::GenerateListID (this=0xa020d0, error_output=...) at src/graphics/model.cpp:185
#4 0x000000000058733b in MODEL::Load (this=0xa020d0, varray=..., error_output=..., genlist=true) at src/graphics/model.cpp:85
#5 0x000000000048571f in Factory<MODEL>::init (this=0x7fffffff3508, use_vbo=false) at src/content/modelfactory.cpp:40
#6 0x000000000049f44c in GAME::InitCoreSubsystems (this=0x7fffffff2f50) at src/game.cpp:418
Python Exception <type 'exceptions.IndexError'> list index out of range:
#7 0x000000000049d3df in GAME::Start (this=0x7fffffff2f50, args=std::list) at src/game.cpp:170
#8 0x000000000062d142 in main (argc=1, argv=0x7fffffffe128) at src/main.cpp:84

I don't know if this is vdrift or libdri bug.

Thanks for your help.
Find all posts by this user
Quote this message in a reply
05-06-2013, 01:05 PM (This post was last modified: 05-06-2013 01:06 PM by NaN.)
Post: #2
RE: Segmentation fault.
It works fine on windows and with ati blob on linux. I've filed a bug some time ago. I don't think it is going to be fixed: In order to view links, you must have to reply to this thread. We will have to implement a workaround I guess.
Find all posts by this user
Quote this message in a reply
05-07-2013, 03:32 AM
Post: #3
RE: Segmentation fault.
Thank you very much.
Find all posts by this user
Quote this message in a reply
05-22-2013, 06:54 AM
Post: #4
RE: Segmentation fault.
I've pushed a possible fix/workaround into "mesa" branch.

Skybox is missing, everything else seems ok, even the friggin particles work:
[Image: shot001bit.jpg]

Would be great if anyone on linux/mesa could checkout and test.
Find all posts by this user
Quote this message in a reply
05-22-2013, 08:40 AM
Post: #5
RE: Segmentation fault.
Wow! Perfectly working.

Some textures are not working because of a bug in archlinux libpng package.

I will dow deeper tests soon.

Log:

./build/vdrift
INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: development-full, Revision: Unversioned directory, O/S: Unix
INFO: Home directory: /home/antonio
INFO: Settings file: /home/antonio/.vdrift/VDrift.config (does not exist, will be created)
INFO: Data directory: data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/antonio/.vdrift/tmp
INFO: Log file: /home/antonio/.vdrift/log.txt
ERROR: Failed to load /home/antonio/.vdrift/VDrift.config
INFO: The last VDrift startup was unsuccessful.
Settings have been set to failsafe defaults.
Your original VDrift.config file was backed up to VDrift.config.backup
INFO: Disabling antialiasing
ATTENTION: default value of option force_s3tc_enable overridden by environment.
INFO: Display change was successful: 800x600x32 16z fullscreen=0
INFO: Using GLEW 1.9.0
INFO: Video card information:
GL Vendor: Intel Open Source Technology Center
GL Renderer: Mesa DRI Intel® Ivybridge Mobile
GL Version: 3.0 Mesa 9.1.2
Texture units: 8 full, 16 partial
Maximum texture size: 8192
Maximum varying floats: 64
INFO: You don't have an NVIDIA or ATI/AMD card. This game may not run correctly or at all.
INFO: Maximum anisotropy: 16
INFO: 0 joysticks found.
INFO: Loading car controls from: /home/antonio/.vdrift/controls.config
INFO: Failed to load car controls file /home/antonio/.vdrift/controls.config
INFO: Car control file /home/antonio/.vdrift/controls.config doesn't exist; using defaults
INFO: Update status file /home/antonio/.vdrift/updates.config will be created
INFO: Update status file /home/antonio/.vdrift/updates.config will be created
INFO: Sound initialization information:
INFO: Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 1024
Size: 4096
Sound initialization successful
INFO: Loaded fonts successfully
INFO: Loaded GUI successfully
ERROR: force feedback: can not open /dev/input/event0 (Permission denied) [src/forcefeedback.cpp:198]
INFO: Loading track from path: data/skins/simple
INFO: Can't find surfaces configfile: data/skins/simple/surfaces.txt
INFO: No Surfaces File. Continuing with standard surfaces
ERROR: Error opening roads file: data/skins/simple/roads.trk
ERROR: Error during road loading; continuing with an unsmoothed track
INFO: No lap sequence found. Lap timing will not be possible.
ERROR: Failed to load "objects.txt" from:
/home/antonio/.vdrift/skins/simple/objects
data/skins/simple/objects
data/carparts
data/trackparts
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
INFO: Car loading was successful: XS
Find all posts by this user
Quote this message in a reply
05-22-2013, 10:21 AM (This post was last modified: 05-22-2013 10:33 AM by NaN.)
Post: #6
RE: Segmentation fault.
I need to recheck if I get this warning too, haven't really paid attention.
Find all posts by this user
Quote this message in a reply
06-01-2013, 08:10 AM
Post: #7
RE: Segmentation fault.
Good news. Looks like the bug will be fixed in next mesa stable.

I've also got shaders (GL2) running with mesa (even though intel driver seem to have some issues).

AMD: In order to view links, you must have to reply to this thread.
Intel: In order to view links, you must have to reply to this thread.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)