Linux segmentation fault

Get support for Unvanquished.
User avatar
Ishq
Project Head
Posts: 1147
Joined: Tue Mar 06, 2012 8:32 pm UTC

Re: Linux segmentation fault

Post by Ishq »

Also, installing Linux drivers from AMD is probably not the best idea. It is best to install drivers from your distro's repositories where you know they will be set up properly.

Battery
Posts: 8
Joined: Thu Aug 23, 2012 11:05 pm UTC

Re: Linux segmentation fault

Post by Battery »

alphathreethree wrote:

I installed the ATI drivers from their website, downloaded a fresh copy of the Unvanquished source and recompiled. When I run it now, it doesnt even get far very into the startup sequence.

Initializing OpenGL display
Estimated display aspect: 1.250
...setting mode -1: 1024 768
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 136 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 13
Current serial number in output stream: 13

Program exited with code 01.

------ Thanks for all your help. This looks like it might be a fun game, but I have reached my limit. I will try your game again maybe sometime in the future.

Make sure that libGL.so isn't the one that shipped with your distro. It must be fglrx or w/e, not the mesa+gallium one.
Also, if you are running 32bit Unvanquished on 64bit os, install the lib32 compat gl from AMD.

Little*Butterfly
Posts: 14
Joined: Sun Mar 03, 2013 4:47 pm UTC

Re: Linux segmentation fault

Post by Little*Butterfly »

I've noticed a similar segfault issue on a 64-bit Gentoo Linux system with a AMD Firepro (Radeon 7870M), using the proprietary drivers by AMD called fglrx.

I have tried both the 0.21.0 binaries from the site and just compiled the latest git with the same segfault results with both GL/GL3 renderers.

Sources were compiled with gcc 4.8.1

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Heathrow XT [Radeon HD 7870M]
Linux lappy 3.12.0-gentoo #20 SMP Thu Nov 14 18:17:08 MUT 2013 x86_64 Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz GenuineIntel GNU/Linux

I strongly suspect this is an issue with the proprietary drivers but I cannot unfortunately break this system by attempting to go with the opensource drivers at this moment. I'll try again in the next days with the opensource drivers and post results.

<snip>
----- Client Initialization -----
----- Client Initialization Complete -----
----- Initializing Renderer -----
Loading "/usr/local/Unvanquished/librendererGL3.so"…done
Calling GetRefAPI…
SDL_Init( SDL_INIT_VIDEO )... Using SDL Version 2.0.1
SDL using driver "x11"
Initializing OpenGL display
Display aspect: 1.778
...setting mode 6: 1024 768
Using 24 Color bits, 24 depth, 8 stencil display.
Using GLEW 1.10.0
Using enhanced (GL3) Renderer in GL 3.x mode...
Available modes: '1280x720 1600x900 1920x1080 1024x600 800x480 1280x768 1440x900 1680x1050 640x480 800x600 1024x768 1280x960 1400x1050 1280x1024 '
GL_RENDERER: AMD Radeon HD 7800M Series
]Segmentation fault

User avatar
Ishq
Project Head
Posts: 1147
Joined: Tue Mar 06, 2012 8:32 pm UTC

Re: Linux segmentation fault

Post by Ishq »

I test these builds using fglrx drivers. It is more likely related to libraries. I'll have a look at this. Best thing that could help would be running this with gdb and giving me the function where it segfaults.

Little*Butterfly
Posts: 14
Joined: Sun Mar 03, 2013 4:47 pm UTC

Re: Linux segmentation fault

Post by Little*Butterfly »

Hi Ishq,

I ran it with gdb and got a "no stack" despite comping a Debug binary, so I played around with the ccmake settings. I resolved my segfault problem with ENABLE_HARDENING set to OFF. What does that option do?

Alphathreethree, can you try with this setting if you have not yet resolved your segfault problem?

User avatar
kharnov
Granger
Posts: 1851
Joined: Tue Mar 06, 2012 10:54 pm UTC
Clan: GT
Location: New York City

Re: Linux segmentation fault

Post by kharnov »

The thread is more than a year old, so I don't know if he's still around.

User avatar
JOURNEYMAN
Dragoon
Posts: 339
Joined: Thu Mar 08, 2012 9:42 pm UTC

Re: Linux segmentation fault

Post by JOURNEYMAN »

You may want to update to Opensuse 12.1 or newer. I don't remember whether I disabled the curses or not, but I'm running 12.1 on a 10 year old laptop and I can still play the game (with minimal settings).

Post Reply