segmentation fault.

segmentation fault.

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
nir_hp
Posts: 23
Joined: 10 Aug 2007, 15:15

segmentation fault.

Post by nir_hp »

Hello,

I have compiled taspring under slamd64 (64 bit linux slackware),
when I run a test it quits and gives me "segmentation fault".

why?
what can I do?
HAARP
Posts: 182
Joined: 06 Apr 2006, 07:18

Post by HAARP »

Someone better move this to the Linux forum.

You could try compiling with debug enabled and running it through a debugger (gdb)
See how I did it here:
http://spring.clan-sy.com/phpbb/viewtopic.php?t=12568
Last edited by HAARP on 03 Nov 2007, 15:37, edited 1 time in total.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

good point, moved to linux
nir_hp
Posts: 23
Joined: 10 Aug 2007, 15:15

Post by nir_hp »

Ok
I did it and this is what I get:

Code: Select all

bash-3.1# gdb spring 
gdb: Symbol `acs_map' has different size in shared object, consider re-linking
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-slamd64-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run
Starting program: /usr/local/games/spring 
[Thread debugging using libthread_db enabled]
[New Thread 47726499026096 (LWP 3040)]
[New Thread 1082149184 (LWP 3043)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47726499026096 (LWP 3040)]
0x00002b682d2421e8 in _int_malloc () from /lib64/libc.so.6
(gdb) 
Any idea?
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

I've had this exact same problem twice now, on two separate machines. Both times it just magically fixed itself over time. Leaving me with no idea on what the possible root cause for the problem or how it was fixed.

This is my post from the second time it happened:

http://spring.clan-sy.com/phpbb/viewtopic.php?t=12399
nir_hp
Posts: 23
Joined: 10 Aug 2007, 15:15

Post by nir_hp »

what do you mean by "fixed itself over time"?

you compiled it and rerun it evry month?

you recompiled it every month?
nir_hp
Posts: 23
Joined: 10 Aug 2007, 15:15

Re: segmentation fault.

Post by nir_hp »

Ok,
it solved by reinstalling openal 0.0.8 and not the trunk.
It seems to be a well known problem with intel on board soundcard.
Post Reply

Return to “Linux”