Author Topic: psclient 0.3.012-R4 seg faults after loading engine.cfg before loading  (Read 884 times)

Samus_Aran

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
I have spent the past few hours trying to get PlaneShift running, without luck.  I downloaded the approximately 260 MiB \"PlaneShift_CBV0.3.011.linux.x86-2.run\" file from http://www.planeshift.it/download.html and installed it.  It popped up the GUI fine, but informed me that I needed a newer version to use on this server.

So I found the IRC channel and they passed me on to this forum to download the 0.3.012-R2 and -R4 update/patches, which I did.  After installing R2 and then R4, I ran the ./updater, and had no issues.  It updated around 100 MiB of files or so, without any noticeable errors.

I then tried to run the new ./psclient and it seg faulted almost immediately.  Same with ./pssetup, though ./updater continued to work fine.  Checking an strace of the pssetup.bin, the only things I notice of possible interest are:

* It opens \"data/config/engine.cfg\" just before it crashes
* It tries to open a non-existant \"data/config/glext.cfg\" file a little while before the crash
* It looks for the file \"/config/mouse.cfg\" (in the root directory of the system) and of course does not find it

Past that, nothing of interest shows up that I can see.

I tried using gdb to get a backtrace, but it is almost entirely (??) items, so I assume the client was not compiled with debug symbols.

Any help would be greatly appreciated.

More about my system ...

Kernel & Hardware:

Linux 2.6.15.2 (custom compiled)
1.25 GiB PC3200 DDR SDRAM @ 333Mhz
4.01 GiB Swap
0.51 TiB Storage (DeviceMapper Encrypted ReiserFS)
AMD Athlon(tm) XP 2200+, 1805Mhz, 256KB Cache, 3613 BMIPs
Geforce FX5700LE 128MB DDR SDRAM AGP 8x

Distro:

Arch Linux 0.7.1 (Noodle)

GNU Tools:

GLIBC 2.3.5
GCC 4.0.3 2005_12_22 (Prerelease)
CoreUtils 5.2.1
Bash 3.00.16(1)-Release

X11:

Xorg 6.8.2
nVIDIA binary driver version 1.0_8178
1280x1024x32bit display

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #1 on: February 13, 2006, 12:26:14 pm »
A paste of your console would be helpful please.

Samus_Aran

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #2 on: February 14, 2006, 03:10:21 am »
Quote
Originally posted by Xordan
A paste of your console would be helpful please.

Which console are you referring to, Bash or PlaneShift ?

When I run the client, no GUI pops up, it immediately spits out \"Segmentation fault\" and nothing more.

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
(No subject)
« Reply #3 on: February 14, 2006, 09:58:59 pm »
Just a thought but did you replace psclient.bin and pssetup.bin after updating? cause the updater may have dl\'ed the old versions
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

Samus_Aran

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #4 on: February 16, 2006, 03:28:55 am »
Quote
Originally posted by lanser
Just a thought but did you replace psclient.bin and pssetup.bin after updating? cause the updater may have dl\'ed the old versions

Before and after running the updater, the psclient.bin would seg fault.  All 0.3.012 clients seg fault for me (R2, R3 and R4.  Debian and generic releases).  I don\'t know how to track down why they are crashing.

Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
(No subject)
« Reply #5 on: February 16, 2006, 09:00:40 am »
Check files/directories permissons, make sure You really have all game files and You have full r/w access to them. I can reproduce Your problem by, for example, removing data/config directory (updater works, setup and client segfault).
Quote
* It looks for the file \"/config/mouse.cfg\" (in the root directory of the system) and of course does not find it
It is not in real root directory, it is in root directory of virtual file system, so real path is /data/config/mouse.cfg.
I would suggest to post here output of bash console, maybe there is a clue, even if You don\'t see any interesting info... Like \"Warning: Some PAWS widgets failed to load\" which should be marked \"Error\" IMO ;)
"Close the world, txEn eht nepO."

Samus_Aran

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #6 on: February 18, 2006, 12:57:56 pm »
Quote
Originally posted by Wired_Crawler
It is not in real root directory, it is in root directory of virtual file system, so real path is /data/config/mouse.cfg.


I was reading the output of strace, which gives the actual system calls used by a program.  If it were reading a relative directory, it would show up as \"data/config/mouse.cfg\" (as all the other files it opens show up as).  That was the only files that incorrectly tried to find itself in the \"/\" directory.

Quote
Originally posted by Wired_Crawler
I would suggest to post here output of bash console, maybe there is a clue, even if You don\'t see any interesting info... Like \"Warning: Some PAWS widgets failed to load\" which should be marked \"Error\" IMO ;)


There is absolutely no console output other than \"Segmentation fault\" and returning to the Bash console.

Someone suggested I install libmng, which I will go do now and see if that makes any difference.