PDA

View Full Version : Seg Faults, setarch doesn't help


Steddyj
18-06-2006, 11:55
Please no RTFM posts, I've searched around and tried the suggested fixes, they don't solve the problem.

I'm running Fedora Core 4 with the following build :

#uname -a
Linux [[ADDRESS]] 2.6.8-022stab070.9-entnosplit #1 SMP Thu Apr 20 11:00:49 MSD 2006 i686 i686 i386 GNU/Linux

I'm getting Runtime Error 0 and Segmentation Fault errors when I try to start TS Server. I've tried running with setarch, it changes some of the error information, but doesn't resolve the issue. See the following when running as my teamspeak user. Same results as root (with the obligitory warnings about running as root)

$ ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFF878
./teamspeak2-server_startscript: line 7: 22081 Segmentation fault ./server_linux -PID=tsserver2.pid
$ setarch `uname -m` -L ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFF678
./teamspeak2-server_startscript: line 7: 22085 Segmentation fault ./server_linux -PID=tsserver2.pid
$ setarch i386 -L ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFF478
./teamspeak2-server_startscript: line 7: 22089 Segmentation fault ./server_linux -PID=tsserver2.pid
$ setarch i686 -L ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFF1F8
./teamspeak2-server_startscript: line 7: 22094 Segmentation fault ./server_linux -PID=tsserver2.pid


Can anyone shed any light on this? All the threads I've seen seem to stop with adding the setarch command. I'm on a virtual server and have root access (obviously.) I can change RPM packages, etc, if there's some sort of confliction, but I don't think I can reinstall the kernel.

Thanks.

smkied
27-06-2006, 17:10
I'm getting the same problem pretty much.

Here is my build:

[teamspeak@srv01 tss2_rc2]$ uname -a
Linux srv01.citedata.net 2.6.8-022stab067.1-enterprise #1 SMP Mon Jan 23 20:55:01 MSK 2006 i686 i686 i386 GNU/Linux

Here is the problem:

[teamspeak@srv01 tss2_rc2]$ ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFF6F8
./teamspeak2-server_startscript: line 7: 26565 Segmentation fault ./server_linux -PID=tsserver2.pid
[teamspeak@srv01 tss2_rc2]$

I tried using SETARCH but it doesn't seem to do anything:

[teamspeak@srv01 tss2_rc2]$ setarch i386 ./teamspeak2-server_startscript start
bash: setarch: command not found
[teamspeak@srv01 tss2_rc2]$

I'm not really familiar with Linux and SSH. Any recommendations please?

Steddyj
27-06-2006, 21:25
The error you're getting "bash: setarch: command not found" means that setarch isn't installed (or isn't installed to a location in your PATH).

I had to install setarch as well. Check the site for your distro to see if they have a build for setarch. I'm running Fedora so I just installed it from an RPM. Let me know if it works for you after you install it.

smkied
27-06-2006, 21:32
I'm running Fedora as well. I have no idea how to install SETARCH though. As I mentioned, I'm quite the SSH/Linux newb so it's all pretty tricky for me.

Steddyj
27-06-2006, 21:40
Full info for using RPM is here:

http://fedora.redhat.com/docs/drafts/rpm-guide-en/


I'd recommend that you become familiar with that. If you're renting a server, I don't know about your host but mine requires that I manage the machine myself, and if you're running your own you have no one to turn to, so you would be well advised to familiarize yourself with some administration. However to just install setarch from RPM you'll need to do the following:

Download the RPM package to the local machine using wget. Mine is Fedora Core 4, so the location was http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/setarch-1.8-1.FC4.i386.rpm

wget http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/setarch-1.8-1.FC4.i386.rpm

Install the RPM package

rpm -u setarch-1.8-1.FC4.i386.rpm

smkied
27-06-2006, 21:51
Thanks for your help so far!

When I try to install SETARCH (I am running Fedora Core 4 as well), I get this error:

[root@srv01 cite]# rpm -i setarch-1.8-1.FC4.i386.rpm
warning: setarch-1.8-1.FC4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
[root@srv01 cite]#


And yes, you're right I definitely need to sharped up my SSH/Linux skills and it's something that I'm definitely going to be looking at shortly.

Steddyj
28-06-2006, 04:53
I haven't seen that before, I'd check two things:

1) make sure you're installing the right RPM for your build. That file is for Fedora Core 4, and probably wont work correctly on other cores.

2) Try downloading the file again, it may have been corrupted.

smkied
28-06-2006, 09:53
Hmmm.... well, according to my hosting description I am running "Red Hat Fedora Core 4" and this is what Plesk tells me:

Plesk version psa v8.0.1_build80060618.11 os_FedoraCore 4
Operating system Linux 2.6.8-022stab067.1-enterprise

I'll look around for an exact build I guess.

Thanks.

Steddyj
28-06-2006, 09:58
Fedorra Core 4 was what you're looking for. Best I can think is that your file was corrupted during the download. Try downloading it again. You can try DLing it on your local machine then transferring it via FTP. Hopefully setarch will work for you, I still haven't found a workaround for my issues.

smkied
28-06-2006, 10:04
I'm surprised no one else is on here to help you with your issue.

I'm still getting this error (re-downloaded the file):

[cite@srv01 ~]$ rpm -i setarch-1.8.rpm
warning: setarch-1.8.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: can't create transaction lock on /var/lib/rpm/__db.000


I think it might be some kind of sharing violation on a needed file during installation? I've been Googling it around and can't find anything specific, but any site that mentions "Header V3 DSA signature: NOKEY, key ID 4f2a6fd2" seems to deal with some sort of sharing violations...

This was sure a lot easier on my other server, hehe.

Steddyj
28-06-2006, 10:07
Don't mean to ask an idiot question, but are you running as root?

Also, try running rpm -u instead of -i, -u is reccommended because it will uninstall old versions or incorrectly installed versions.

smkied
28-06-2006, 10:13
Well, I managed to install SETARCH finally.... and....

[teamspeak@srv01 tss2_rc2]$ setarch i386 ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFEBF8
./teamspeak2-server_startscript: line 7: 28571 Segmentation fault ./server_linux -PID=tsserver2.pid
[teamspeak@srv01 tss2_rc2]$


So I guess now we're in the same boat?

smkied
28-06-2006, 10:15
And I downloaded a fresh teamspeak install file a couple of times now, etc. so I doubt it has anything to do with a corrupted file.

Steddyj
28-06-2006, 10:23
lol... awesome.

What did you do to get setarch installed?


I think I read that the problem is caused by updates to glibc, I'm not sure what version to roll back to. Would be nice to get a better response than "Use Debian or a kernel before 2.6"

Kernel 2.6.0 was released December 2003 - 2 and a half (plus) years should be more than enough time to resolve a known issue.

Oh well, ces't la vie, no? I'd be satisfied to just know what library(ies) to roll back to get this running. Rolling back the kernel isn't an option with my setup, not that I'd be happy doing it to make one app run anyway.

Arg.

smkied
28-06-2006, 10:29
My mistake was not running in root (as silly as it sounds). I was just constantly switching in and out of root and I didn't notice I wasn't running in it. Once I finally figured it out, I went back to these forums and saw your response about running in root, haha.

And yes, I have Googled this a lot and have only found solutions about rolling back to an older kernel, which I don't even think I can do since I am on a VPS.

This really sucks, I was totally expecting for this to be a quick 5 minute install like it was before...

I'll keep searching and asking around and I'll post here when I catch a solution. There must be one!

smkied
28-06-2006, 10:33
Hmmm I just found this....

The problem goes away if you either boot up with the older 2.6.7 kernel, or download and build a vanilla 2.6.8 kernel from kernel.org. My gaming box is now running on such a kernel, and TeamSpeak seems to load and run fine with this setup.

I'm not sure how to do this exactly, but I'll try it out. I don't really have anything important running on here (yet!).

Steddyj
28-06-2006, 10:36
I know a little more about plesk than the average person really should, mostly through some people I know. It actually has dependancies inside of the VPS itself, rather than just the physical hardware node that runs it. For instance, you can't change the MySQL installation, even an upgrade. Plesk stores information inside a MySQL DB that is on your VPS, but is hidden from you. Fun stuff.

I'm not sure how much this runs into the Kernel itself. I'd really hate to resort to it, but I'll ask around about the possibilities of recompiling the kernel on a VPS. I don't run Plesk myself, but Virtuozzo which is also made by SWSoft and is the 'Base' so to speak of Plesk - Virtuozzo actually runs the management of the Physical vs Virtual server and will also be on your VPS as well. (Try connecting to port 4643 rather than 8443)

smkied
28-06-2006, 10:44
Yup, indeed I knew a little bit about how this VPS is run as well and about Virtuzzo etc. However I really wouldn't know if changing something like the Kernel is even possible. I mean, it just seems far fetched that I could make changes like that.

Otherwise I'd upgrade to Fedora 5 just for the hell of it ;)

Steddyj
28-06-2006, 10:52
I shot an email off to a couple of guys I know who are VPS experts. I'll let you know what they say. I'd really rather not have to resort to recompiling the kernel, though. It'd be one thing to go forward, but rolling back for something so little is kinda asinine.

smkied
28-06-2006, 10:56
I really apprecaite it man. And I do agree that rolling back seems like such a silly thing... I wish they would just hotfix this thing and get it over with. Spending more time on Google shows me that this is a very common problem for a lot of people, yet no fix. How sad. Good thing this is a free install (non-commecrial) otherwise I would be pretty unhappy if I had just spent $100 on this, ahah, though I am still unhappy.....

But hey, at least I learned a bunch of UNIX today!! :-)

ejf1238
28-06-2006, 21:23
Hey guys..

I'm in the same boat you guys are in. Except I cant even get setarch to install. I downloaded it and here's what I get.

[root@ip-208-109-98-32 ejf1238]# rpm -i setarch-1.8-1.FC4.i386.rpm
/etc/security/selinux/file_contexts: No such file or directory
warning: setarch-1.8-1.FC4.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
[root@ip-208-109-98-32 ejf1238]# rpm -u setarch-1.8-1.FC4.i386.rpm
-u: unknown option

Nothing ever seems to work for me, and it doesn't help that im a vps noob either! lol

Any ideas? Thanks

*edit*

I tried using -U instead of -u and got this:

[root@ip-208-109-98-32 ejf1238]# rpm -U setarch-1.8-1.FC4.i386.rpm
/etc/security/selinux/file_contexts: No such file or directory
warning: setarch-1.8-1.FC4.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
package setarch-1.8-1.FC4 is already installed
It's staying the package is already installed? hmm..

So now I tried using the setarch command and this is what I now get..
[ejf1238@ip-208-109-98-32 tss2_rc2]$ setarch i386 ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFF708
./teamspeak2-server_startscript: line 92: 26052 Segmentation fault ./server_linux -PID=tsserver2.pid
So now I think im in the same situation you guys are in? LOL what a headache :)

I also get this error when running the setarch command
[ejf1238@ip-208-109-98-32 tss2_rc2]$ setarch --help
setarch: relocation error: setarch: symbol __fprintf_chk, version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference

hmm..
-Eric

smkied
07-07-2006, 20:47
Does any of the teamspeak staff even read these forums anymore? It has been like 10 days already and no responses at all.

Is there simply no fix for this? I really want to get Teamspeak running on my VPS, so all help would be very appreciated!!!

Thanks.

Steddyj
08-07-2006, 03:58
Hey, I've been busy and forgot to post this when I got the answer from my tech guys.

Rebuilding the kernel on the VPS is probably not an option, as it actually uses many of the files from the root hardware node the virtual server runs on. One *might* be able to do it, but you'd risk hosing your VPS and having to explain it to your host.

Don't think I'm willing to take that chance. I like my host and would rather not be forced off their service.

smkied
08-07-2006, 20:45
Hey, I've been busy and forgot to post this when I got the answer from my tech guys.

Rebuilding the kernel on the VPS is probably not an option, as it actually uses many of the files from the root hardware node the virtual server runs on. One *might* be able to do it, but you'd risk hosing your VPS and having to explain it to your host.

Don't think I'm willing to take that chance. I like my host and would rather not be forced off their service.

I definitely agree with you on that. So basically at this point I simply cannot install Teamspeak on my VPS, and never will be able to? At least not anytime soon....?

A teamspeak response on this would be good.

limeygrendel
20-07-2006, 09:45
I am experiencing the same problem as both of you. I have gotten as far as installing the setarch package, but it didn't fix the problem. It's possible that I'm not doing it right, but it doesn't seem like something I should have to do at all. :confused:

Just posting in hopes that someone will reply with a fix. I've looked at most of the posts related to this error and I haven't been able to find anything that fixes my problem.

My system is running Linux 2.6.8-022stab070.9-enterprise #1 SMP Thu Apr 20 10:48:12 MSD 2006 i686 i686 i386 GNU/Linux.

Steddyj
29-07-2006, 03:36
I feel like such an idiot right now....


[teamspeak@vps teamspeak]$ ./teamspeak2-server_startscript start
starting the teamspeak2 server
TeamSpeak Server Daemon started with PID 24208


The Fix? I was doing some website stuff, went to check on mysql, ran a locate to find my install path, and noticed that there was some mysql directories in the teamspeak install. MySQL wasnt running. MySQL sometimes will not start automatically if you do not set a root password for mysql. To start it manually, run /etc/init.d/mysqld start It will prompt you on how to set the password.

Once mysql was running I didnt even have to run setarch, it just ran.

Hope the same works for the rest of you, would have been nice to have this SIMPLE explanation from one of the teamspeak team... but I digress...

Steddyj
29-07-2006, 20:44
I'm going to take that back... I just tried starting TS again with MySQL stopped, and it started normally. Which makes more sense being that I never configured TS to use MySQL.

I'm going to try to remember what I've done since the last time I tried this, also my host did some patches recently which may have done it... I'll have to find out what they did.

sznaps
07-08-2006, 12:22
I get this when i try to use setarch,


[teamspeak@server01 tss2_rc2]$ setarch i386 ./teamspeak2-server_startscript start
starting the teamspeak2 server
Runtime error 0 at BFFFF998
./teamspeak2-server_startscript: line 7: 21832 Segmentation fault ./server_linux -PID=tsserver2.pid


Hrm, Any solutions yet?

matters
11-08-2006, 01:51
sometimes this type of error is a kernel build problem. you should try and roll back the kernel to an earlier build.

sablenine
23-08-2006, 21:25
i get the same problem

[muffintss@localhost tss2_rc2]$ setarch i386 ./teamspeak2-server_startscript start
rtst
starting the teamspeak2 serverRu
Runtime error 0 at BFFFDA88./
./teamspeak2-server_startscript: line 7: 17597 Segmentation fault ./server_li
linux -PID=tsserver2.pid

setarch is already installed. I have tried starting the server without the setarch command, and i get the same thing.


And the most linux experience I have had was within the past 12 hours of me getting this VPN so I am also a nooblet.

in case it matters, it's running fedora core 4 with kernel version 2.6.8-022stab070.9-enterprise

sablenine
23-08-2006, 22:00
Well I got it to work using the setarch i386 -X command, before i was not using -X. I can run Teampeak under the root user, but I cannot run it under a different user. i have created a new user and set a password for them, but I don't know anything else to do.

[muffintss@localhost tss2_rc2]$ setarch i386 -X ./teamspeak2-server_startscript start
startstart
starting the teamspeak2 serverExcep
Exception EFCreateError in module server_linux at 0806F059.Canno
Cannot create file "/muffintss/tss2_rc2/server.ini". Permission denied.[muff

sablenine
23-08-2006, 22:08
ok, i got it working. I had ts installed in /muffintss/tss2_rc2

but, the home directory for the user muffintss was /home/teamspeak

so for shits and giggles, i installed teamspeak into the home directory for muffintss and it worked.

oh, and I had to use the -X with setarch for it to work.