Author Topic: Segmentation Fault on install in FC5  (Read 5482 times)

Velamar

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
Segmentation Fault on install in FC5
« on: April 03, 2006, 07:44:46 pm »
I am having a similar problem as APwrs ( http://planeshift3d.com/wbboard/thread.php?threadid=22262&boardid=41&sid=d58a59856a1bb5e98420d1721760a02e) except the xwindow or text mode doesn\'t work.

When I do \"./PlaneShift_CBV0.3.013.i686.bin\" I immediately get a \"Segmentation Fault\", no delay or anything  coming up on the screen.

I have it chmodded to my account and have tried both as root and regular, with the same results.  I am running Fedore Core 5 on i686.

I\'ve downloaded multiple times, from BitTorrent and direct from the server, thinking it may be a curropt file, but I get the same results...

Is there a way to install through yum or are there any  compatable .rpm files available?

Xorikh

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
(No subject)
« Reply #1 on: April 05, 2006, 10:36:19 am »
Same problem, using Fedora Core 4

I just upgraded to kernel-2.6.16-1.2069_FC4, while doing a clean install of FC4.
with kernel 2.4x the planeshift install worked, when using the tips from the forum. no idea if its the Kernel or one of the files it upgrades when changing to 2.6

nightmarcus

  • Traveller
  • *
  • Posts: 24
    • View Profile
(No subject)
« Reply #2 on: April 08, 2006, 11:18:42 pm »
Same problem here on Fedora Core 5 using kernel 2.6.16-1.2080_FC5.

Justice

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
(No subject)
« Reply #3 on: April 09, 2006, 08:07:01 pm »
Same problem here on Fedora Core 5 (2.6.16-1.2074_FC5smp):  Segmentation Fault

Anybody figure out a fix for this yet?
« Last Edit: April 09, 2006, 08:39:13 pm by Justice »

Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
(No subject)
« Reply #4 on: April 10, 2006, 09:03:41 am »
I tried it on FC4, it can be the same for FC5. This is probably caused by active SELinux policy. I use strict policy on the system, but default (targeted) policy can also prevent some programs from running. In this particular case the program is not allowed to execute some parts of code in memory.

Login as root (and you should change you role to sysadm_r if it is not the default for root; use \"id -Z\" to determine your current context, use \"newrole -r sysadm_r\" to change a context). Use the command \"getenforce\" to determine, whether SELinux is active. If you see \"Enforcing\" you must turn off SELinux by entering command \"setenforce 0\" (on FC5 you may have to switch to role secadm_r first). Install the game (DON\'T do this as root). Turn on enforcing back by using command \"setenforce 1\". If You can\'t play the game with active SELinux - turn it off, but remember, that Your system will be more vulnerable to attacks. Better way would be to write your own set of access rules, but that\'s another story...
"Close the world, txEn eht nepO."

sardit

  • Hydlaa Resident
  • *
  • Posts: 73
    • View Profile
(No subject)
« Reply #5 on: April 11, 2006, 12:51:33 am »
same problem on fc 4 however if you go back a kernel the 15 version and then the latest the installer DOES work, no need to turn of SElinux then.

To me it seems that it has to do with the new kernel version. with my 16-1 kernel i have the same issues as you guys but 1 kernel back and it works like a charm.

Not that you can do anything with it now because we need the .14 version nowadays.

Justice

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
(No subject)
« Reply #6 on: April 15, 2006, 02:56:48 am »
Sardit is right.  I have never enabled SElinux, so I know that is not the problem.  It definitely seems to be an issue with the newer kernels.

urkle

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
(No subject)
« Reply #7 on: April 15, 2006, 06:25:29 pm »
could be something to do with a bad ELF header in the installation binaries..  It could be the 2.4.16 kernel refuses to run binaries with corrupted headers.   What system were these built on?

here\'s the output of file on my FC5 system

file ./PlaneShift_CBV0.3.013.i686.bin
PlaneShift_CBV0.3.013.i686.bin: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, corrupted section header size

file ./PlaneShift_CBV0.3.014b.bin
PlaneShift_CBV0.3.014b.bin:     ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, corrupted section header size

That just doesn\'t look very \"good\" IMHO.

And I reverified the torrent download.  Also, turning off SELinux does not resolve the issue.

and I am finding no message in any logs as to WHY it is dying.

sardit

  • Hydlaa Resident
  • *
  • Posts: 73
    • View Profile
any progress?
« Reply #8 on: April 18, 2006, 07:13:35 pm »
well since i dont have an old kernel anymore i segvault on the installer aswell. And since the cvs crashes for me aswell... Does anyone have an idea?

zours

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #9 on: April 18, 2006, 07:36:24 pm »
Well I don\'t exactly know what is the cause of all that, but indeed PS doesn\'t want to work.

I don\'t know if it\'s to blame on the kernel or on something else, but since my FC5 upgrade, a lot of programs don\'t work anymore. Mainly emulators : ePSXe, Mupen64... Zsnes has been corrected in their CVS, though...

So, maybe a graphic-related issue, since it seems only games are involved ?

nightmarcus

  • Traveller
  • *
  • Posts: 24
    • View Profile
(No subject)
« Reply #10 on: April 18, 2006, 07:45:52 pm »
I haven\'t had any \"graphics\" problems, I can play Unreal Tournament 2004, Sauerbraten and Nexuiz from their Linux installers with no problem, all 3 of which are 3-D openGL games.  I just tried the \"new\" version on the website (3.014b) and it gives me the same error.

sardit

  • Hydlaa Resident
  • *
  • Posts: 73
    • View Profile
(No subject)
« Reply #11 on: April 18, 2006, 08:02:52 pm »
do you have an nvidia graphic card? cause that driver is broken. there is fix for it though.

nightmarcus

  • Traveller
  • *
  • Posts: 24
    • View Profile
(No subject)
« Reply #12 on: April 18, 2006, 08:04:11 pm »
Nvidia GeForce FX 5500

Works fine for me, but it may be that none of my games encounter the bug except Planeshift.

Edit: I\'m not at my Linux box right now, but could you tell me more about the fix?
« Last Edit: April 18, 2006, 08:04:58 pm by nightmarcus »

zours

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
(No subject)
« Reply #13 on: April 18, 2006, 09:51:22 pm »
Tried Nexuiz, works well...
I use the latest nvidia driver from the livna repo, but I\'d be happy if you could tell me more about this fix.
« Last Edit: April 18, 2006, 10:14:19 pm by zours »

sardit

  • Hydlaa Resident
  • *
  • Posts: 73
    • View Profile
(No subject)
« Reply #14 on: April 18, 2006, 11:00:29 pm »
gl accelleration does not work with the latest livna driver

type as root

chcon -t texrel_shlib_t /usr/lib/xorg/modules/extensions/nvidia/*.so

and enable in ( start / administration / security level and firewall )

under the tab selinux set permissive click modify policy in the section compatibility cross the box at allow the use of shared librarys with text relocation

it enables the gl again ( well first thing does that the second helps with apps that need that particular strategy with text relocation )

Livna posts that they will fix the selinux issue asap and that they will make sure the next nvidia driver doesnt have that problem but that will have to wait till the next kernel upgrade.