Immediate Segfault [Linux x86]

esv
Junior Line Worker
Junior Line Worker
Posts: 3
Joined: Tue Dec 13, 2011 9:43 pm

Re: Immediate Segfault [Linux x86]

Postby esv » Wed Dec 14, 2011 11:15 pm

Raptor85 wrote:I was actually more interested in you running ldd on the .so files packaged with the game...


Code: Select all

libcurl.so.3:
   linux-gate.so.1 =>  (0xb7838000)
   libidn.so.11 => /usr/lib/libidn.so.11 (0xb77c1000)
   libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb77bd000)
   libz.so.1 => /lib/libz.so.1 (0xb77a7000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb764d000)
   /lib/ld-linux.so.2 (0xb7839000)
libogg.so.0:
   linux-gate.so.1 =>  (0xb77d6000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7663000)
   /lib/ld-linux.so.2 (0xb77d7000)
libopenal.so.1:
   linux-gate.so.1 =>  (0xb7704000)
   librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb769d000)
   libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7684000)
   libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb767f000)
   libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7659000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb74ff000)
   /lib/ld-linux.so.2 (0xb7705000)
libSDL-1.2.so.0:
   linux-gate.so.1 =>  (0xb7864000)
   libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7797000)
   libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7793000)
   libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7779000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb761f000)
   /lib/ld-linux.so.2 (0xb7865000)
libSDL_image-1.2.so.0:
   linux-gate.so.1 =>  (0xb771f000)
   libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7661000)
   libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7648000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb74ed000)
   libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb74c7000)
   libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb74c3000)
   libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0xb74be000)
   libpulse.so.0 => /usr/lib/libpulse.so.0 (0xb747c000)
   libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0xb7404000)
   libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0xb73fa000)
   libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0xb73e4000)
   /lib/ld-linux.so.2 (0xb7720000)
   libpulsecommon-0.9.21.so => /usr/lib/libpulsecommon-0.9.21.so (0xb7399000)
   librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7390000)
   libX11.so.6 => /usr/lib/libX11.so.6 (0xb7272000)
   libICE.so.6 => /usr/lib/libICE.so.6 (0xb7259000)
   libSM.so.6 => /usr/lib/libSM.so.6 (0xb7250000)
   libXtst.so.6 => /usr/lib/libXtst.so.6 (0xb724a000)
   libwrap.so.0 => /lib/libwrap.so.0 (0xb7241000)
   libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0xb71d8000)
   libdbus-1.so.3 => /lib/libdbus-1.so.3 (0xb719f000)
   libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7185000)
   libuuid.so.1 => /lib/libuuid.so.1 (0xb7180000)
   libXext.so.6 => /usr/lib/libXext.so.6 (0xb7170000)
   libXi.so.6 => /usr/lib/libXi.so.6 (0xb7161000)
   libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb714a000)
   libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0xb70fd000)
   libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb7001000)
   libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb6fd8000)
   libogg.so.0 => /usr/lib/libogg.so.0 (0xb6fd0000)
   libXau.so.6 => /usr/lib/libXau.so.6 (0xb6fcc000)
   libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6fc6000)
libvorbisfile.so.3:
   linux-gate.so.1 =>  (0xb7756000)
   libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7711000)
   libogg.so.0 => /usr/lib/libogg.so.0 (0xb770a000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb75af000)
   libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7589000)
   /lib/ld-linux.so.2 (0xb7757000)
libvorbis.so.0:
   linux-gate.so.1 =>  (0xb78a2000)
   libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb783f000)
   libogg.so.0 => /usr/lib/libogg.so.0 (0xb7838000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb76dd000)
   /lib/ld-linux.so.2 (0xb78a3000)
sag47
Senior Line Worker
Senior Line Worker
Posts: 9
Joined: Wed Dec 14, 2011 3:42 pm

Re: Immediate Segfault [Linux x86]

Postby sag47 » Thu Dec 15, 2011 2:46 pm

Solution for Ubuntu users!

As per instructions I have installed the libpng12-0, libjpeg62, and libpng3 packages. I started investigating the libs more and found that there is a dead link in the libs. This is an Ubuntu defect.

strace of GSB shows that it is detecting /usr/lib/libpng.so.3 correctly. However when you list out the directory contents for the lib.

Code: Select all

$ ls -l /usr/lib/libpng.so.3
lrwxrwxrwx 1 root root 18 2011-12-15 09:37 /usr/lib/libpng.so.3 -> libpng12.so.0
$ ls -l /usr/lib/libpng12.so.0
ls: cannot access /usr/lib/libpng12.so.0: No such file or directory
$ locate libpng12.so.0
/lib/libpng12.so.0
/lib/libpng12.so.0.42.0


FIX:
So basically when I fixed the dead link then the game works!

Code: Select all

sudo rm /usr/lib/libpng.so.3
sudo ln -s /lib/libpng12.so.0 /usr/lib/libpng.so.3


ALTERNATE FIX:
Another alternative if you don't want to delete anything is to link libpng12 to /usr/lib.

Code: Select all

sudo ln -s /lib/libpng12.so.0 /usr/lib/


Even with the above fix the game still has a hard time getting to the menu. You have to rename or remove the title music ./data/sounds/music/main_title.ogg and even when you get into the menu the game still Segfaults when you click on certain menu options. I still have to investigate all of the other libs to get this to properly work.
User avatar
urkle
Supreme Robot
Supreme Robot
Posts: 130
Joined: Thu Dec 15, 2011 2:27 pm
Contact:

Re: Immediate Segfault [Linux x86]

Postby urkle » Thu Dec 15, 2011 3:41 pm

Hello all,

I am aware of the 32bit GSB issues.. And am working on fixing the problem. Also I will be putting out an updated build shortly that resolves the following isssues.

  • unable to press "V" in the multiplayer key entry screen
  • the png and jpeg loading issues
  • an Actual README for the linux build (Oh, I shall be FLOGGED for that one)
  • hopefully a fix to the infinite loop while loading the main_title.ogg

And to answer some other questions.. the libopenal.so.1 that is included DOES have pulse audio support. For those of you who have played Amnesia the Dark Descent, the libs included here are the *SAME* ones from Amnesia. (same build system too)
Developing away on one of
Mac Pro Dual 2Ghz, 14GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
steven.saus
Senior Line Worker
Senior Line Worker
Posts: 7
Joined: Tue Dec 13, 2011 10:51 pm

Re: Immediate Segfault [Linux x86]

Postby steven.saus » Thu Dec 15, 2011 4:37 pm

urkle wrote:Hello all,

I am aware of the 32bit GSB issues.. And am working on fixing the problem. Also I will be putting out an updated build shortly that resolves the following isssues.


Very cool. Is this the same one that's currently in the .deb on the HIB page? (Sometimes talking computers makes me feel like I'm in the Army again...) Version numbers on them would be great when we're doing this kind of bugsquashing so we can all make sure we're talking about the same thing...
User avatar
urkle
Supreme Robot
Supreme Robot
Posts: 130
Joined: Thu Dec 15, 2011 2:27 pm
Contact:

Re: Immediate Segfault [Linux x86]

Postby urkle » Thu Dec 15, 2011 4:41 pm

steven.saus wrote:
urkle wrote:Hello all,

I am aware of the 32bit GSB issues.. And am working on fixing the problem. Also I will be putting out an updated build shortly that resolves the following isssues.


Very cool. Is this the same one that's currently in the .deb on the HIB page? (Sometimes talking computers makes me feel like I'm in the Army again...) Version numbers on them would be great when we're doing this kind of bugsquashing so we can all make sure we're talking about the same thing...


Unfortunately I didn't package up the deb and rpms. And from other reports it seems the deb has the "newer" binary.
Developing away on one of
Mac Pro Dual 2Ghz, 14GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
steven.saus
Senior Line Worker
Senior Line Worker
Posts: 7
Joined: Tue Dec 13, 2011 10:51 pm

Re: Immediate Segfault [Linux x86]

Postby steven.saus » Thu Dec 15, 2011 7:25 pm

urkle wrote:
steven.saus wrote:
urkle wrote:Hello all,

I am aware of the 32bit GSB issues.. And am working on fixing the problem. Also I will be putting out an updated build shortly that resolves the following isssues.


Very cool. Is this the same one that's currently in the .deb on the HIB page? (Sometimes talking computers makes me feel like I'm in the Army again...) Version numbers on them would be great when we're doing this kind of bugsquashing so we can all make sure we're talking about the same thing...


Unfortunately I didn't package up the deb and rpms. And from other reports it seems the deb has the "newer" binary.


The .deb is working swimmingly for me here so far. Have a bunch of ...ew... "real" work to do, so haven't tested extensively. Registered online, went past main screen and booted just fine, all the main buttons seem to work.
Nexus
Senior Line Worker
Senior Line Worker
Posts: 9
Joined: Thu Dec 15, 2011 5:27 pm

Re: Immediate Segfault [Linux x86]

Postby Nexus » Thu Dec 15, 2011 7:37 pm

Raptor85 wrote:works fine gentoo x86_64, just can't hit the "V" key which is keeping me from inputting the multiplayer key :/ (there's another thread here, there's a lot of us with this issue, seems the HIB4 keys aren't valid).


Just put your key in file .positech/GSB/web/gsbcd (and username in .positech/GSB/web/gsbcdu)

works for me (even galactic conquest campaign starts : )

(Ubuntu 11.10 64 gnome shell)
User avatar
urkle
Supreme Robot
Supreme Robot
Posts: 130
Joined: Thu Dec 15, 2011 2:27 pm
Contact:

Re: Immediate Segfault [Linux x86]

Postby urkle » Thu Dec 15, 2011 8:49 pm

OK everybody.. There is a new binary I just submitted that fixes a number of issues affecting 32bit builds and some newer distributions. It should hopefully be updated sometimes soon on the HIB site.
Developing away on one of
Mac Pro Dual 2Ghz, 14GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
krusty.ar
Junior Line Worker
Junior Line Worker
Posts: 2
Joined: Wed Dec 14, 2011 1:38 pm

Re: Immediate Segfault [Linux x86]

Postby krusty.ar » Fri Dec 16, 2011 12:24 pm

urkle wrote:OK everybody.. There is a new binary I just submitted that fixes a number of issues affecting 32bit builds and some newer distributions. It should hopefully be updated sometimes soon on the HIB site.


I don't know exactly what version I have, but at some point, I downloaded both the tar and the deb and only the deb worked, that may be useful to someone.
henrikp
Junior Line Worker
Junior Line Worker
Posts: 1
Joined: Wed Dec 14, 2011 6:39 pm

Re: Immediate Segfault [Linux x86]

Postby henrikp » Fri Dec 16, 2011 1:32 pm

urkle wrote:OK everybody.. There is a new binary I just submitted that fixes a number of issues affecting 32bit builds and some newer distributions. It should hopefully be updated sometimes soon on the HIB site.

No problems so far (an 1h session), looking good :)

EDIT: Using 32bit Debian squeeze with NVIDIA.
Last edited by henrikp on Fri Dec 16, 2011 2:57 pm, edited 1 time in total.
MrTeatime
Junior Line Worker
Junior Line Worker
Posts: 1
Joined: Fri Dec 16, 2011 2:48 pm

Re: Immediate Segfault [Linux x86]

Postby MrTeatime » Fri Dec 16, 2011 2:54 pm

randomluser wrote:same problem, Debian Wheezy (testing) x86_64 with kernel 3.1.0-1-amd64 on Core2 Duo.

(splash screen flashes briefly then vanishes, binary dies with a segfault)

running GSB.bin.x86_64 I get

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:153
153   ../sysdeps/x86_64/multiarch/memcpy-ssse3.S: No such file or directory.
   in ../sysdeps/x86_64/multiarch/memcpy-ssse3.S
(gdb) bt
#0  __memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:153
#1  0x00000000004eb716 in GVertexBuffer::CopyIn(_D3DTLVERTEX*, int) ()
#2  0x00000000004e96c8 in LibTextEngine::ProcessTextQueue(int) ()
#3  0x00000000005e812b in GUI_MainMenu::Draw() ()
#4  0x0000000000629783 in Game::GameProc() ()
#5  0x00000000006b3bd8 in WinMain(void*, void*, char*, int) ()
#6  0x00007ffff4d02ead in __libc_start_main (main=<optimized out>, argc=<optimized out>, ubp_av=<optimized out>,
    init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffeb08) at libc-start.c:228
#7  0x00000000004e0de9 in _start ()


installing libpng3 makes no difference, I still see a segfault in memcpy with the same call chain.


Same here, although with 32-bit, Ubuntu 11.04:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:195
195     ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S
(gdb) bt
#0  __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:195
#1  0x08117d4d in GVertexBuffer::CopyIn(_D3DTLVERTEX*, int) ()
#2  0x08115b5e in LibTextEngine::ProcessTextQueue(int) ()
#3  0x0821596a in GUI_MainMenu::Draw() ()
#4  0x08257a9f in Game::GameProc() ()
#5  0x082e2b98 in WinMain(void*, void*, char*, int) ()
#6  0x083865ba in main ()


Incidentally, I have an Intel Integrated graphics card (3100, I think) : is this expected to work with GSB? Cheers!

Edit:

This is all using the newly-uploaded binary:

Code: Select all

022caf87c2a1252f348702995afd076c  GSB.bin.x86
offsides
Line Supervisor
Line Supervisor
Posts: 19
Joined: Thu Dec 15, 2011 3:02 pm

Re: Immediate Segfault [Linux x86]

Postby offsides » Fri Dec 16, 2011 3:31 pm

urkle wrote:Unfortunately I didn't package up the deb and rpms. And from other reports it seems the deb has the "newer" binary.

Rather than trying to package them yourself every time, if you just include the spec file and any ancillary stuff in a subdirectory of the tarball, we RPM users can repackage it ourselves. Not sure how .debs are built, but I believe they you can do something similar. Then, 1 tarball supports all comers if they want it packaged natively...
User avatar
urkle
Supreme Robot
Supreme Robot
Posts: 130
Joined: Thu Dec 15, 2011 2:27 pm
Contact:

Re: Immediate Segfault [Linux x86]

Postby urkle » Fri Dec 16, 2011 4:27 pm

offsides wrote:
urkle wrote:Unfortunately I didn't package up the deb and rpms. And from other reports it seems the deb has the "newer" binary.

Rather than trying to package them yourself every time, if you just include the spec file and any ancillary stuff in a subdirectory of the tarball, we RPM users can repackage it ourselves. Not sure how .debs are built, but I believe they you can do something similar. Then, 1 tarball supports all comers if they want it packaged natively...


Personally how I prefer to package things is with a single unified installer (nixstaller) creates a single ".sh" that can be installed via gui, ncurses, or unattended. and supports both 32bit and 64bit. "other people" however want RPMS and DEBS. (I'm an RPM man myself).

however the biggest issues was a snafu where someone packaged the "old" release instead of the "latest" release when putting it up on the HIB. site.
Developing away on one of
Mac Pro Dual 2Ghz, 14GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
User avatar
urkle
Supreme Robot
Supreme Robot
Posts: 130
Joined: Thu Dec 15, 2011 2:27 pm
Contact:

Re: Immediate Segfault [Linux x86]

Postby urkle » Fri Dec 16, 2011 4:31 pm

One cause I have found that can cause a immediate segfault is when the game tries to use a LARGE resolution (spanning dual monitors). the drivers say it's ok to use it, but when the game does try and use it.. things go "boom". The latest build has a *quick check* on initial startup to detect that and force 1024x768.. However that is only on INITIAL startup.. e.g. with no ~/.positech folder.

So, check the resolution defined in ~/.positech/GSB/prefs.ini and make sure it's SANE!!!

More and more, /me thinks I should have used SDL 1.3 instead of 1.2.. (1.3 has multi-monitor support)
Developing away on one of
Mac Pro Dual 2Ghz, 14GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
aibara
Junior Line Worker
Junior Line Worker
Posts: 3
Joined: Wed Dec 14, 2011 4:50 pm

Re: Immediate Segfault [Linux x86]

Postby aibara » Fri Dec 16, 2011 10:37 pm

Still the same problem for me using the latest builds. The resolution is certainly sane. My laptop's 5 years old, but the Windows version does run just fine with Wine. Would be nice to have the native version running though. Thanks for the work put into this so far.

Return to “Linux Support”

Who is online

Users browsing this forum: No registered users and 1 guest