PDA

View Full Version : Segmentation fault under Linux.


Nicolas-FR35
05-23-2010, 11:32 PM
Hi,

I have a problem with FSD Server (tested on Linux Ubuntu Server 10.4 / Linux Mandriva / and other Linux systems, and the problem is the same).

When I start FSD Server (./fsd), the program seems running well.

But when I connect FSInn to my server, there is (each time) a segmentation fault, and the FSD Server hangs up.

Is there an issue for this problem ? Perhaps I have to compile the server, but there are a lot of error messages during the compilation when I use the unix command "make".

So I have to use Wine to run the server on Linux, with the Windows'FSD Server program. I prefer to use the unix application on Linux, more stable that the Windows application with Wine (I think).

Thanks a lot.

Best regards,

Nicolas BOUESNARD, FRANCE.

L. D. James
05-23-2010, 11:44 PM
Hi,

I have a problem with FSD Server (tested on Linux Ubuntu Server 10.4 / Linux Mandriva / and other Linux systems, and the problem is the same).

When I start FSD Server (./fsd), the program seems running well.

But when I connect FSInn to my server, there is (each time) a segmentation fault, and the FSD Server hangs up.

Is there an issue for this problem ? Perhaps I have to compile the server, but there are a lot of error messages during the compilation when I use the unix command "make".

So I have to use Wine to run the server on Linux, with the Windows'FSD Server program. I prefer to use the unix application on Linux, more stable that the Windows application with Wine (I think).

Thanks a lot.

Best regards,

Nicolas BOUESNARD, FRANCE.

If you're going to run a precompiled program you have to be sure that it is compiled by the same distro. The compilation you're trying to run probably was compiled on a different Linux distro.

You'll have to actually compile it from the source. When you have errors, you'll have to short through them one by one until you have it compiled, or have someone with the same distro compile it for you.

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

Nicolas-FR35
05-24-2010, 12:25 AM
For information, when I type "make" I have a lot of error messages like this :

c++ -O2 -c sysuser.cpp
In file included from global.h:7,
from sysuser.cpp:12:
fsdpaths.h:2:2: warning: #ident is a deprecated GCC extension
In file included from sysuser.cpp:25:
fsdpaths.h:2:2: warning: #ident is a deprecated GCC extension
sysuser.cpp:57: warning: deprecated conversion from string constant to ‘char*’

The problem seems to be in the "sysuser.cpp" file.

L. D. James
05-24-2010, 01:14 AM
For information, when I type "make" I have a lot of error messages like this :

c++ -O2 -c sysuser.cpp
In file included from global.h:7,
from sysuser.cpp:12:
fsdpaths.h:2:2: warning: #ident is a deprecated GCC extension
In file included from sysuser.cpp:25:
fsdpaths.h:2:2: warning: #ident is a deprecated GCC extension
sysuser.cpp:57: warning: deprecated conversion from string constant to ‘char*’

The problem seems to be in the "sysuser.cpp" file.

So far you've showed warnings. I don't see any errors.

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

Nicolas-FR35
05-24-2010, 09:21 PM
I have these messages during the compilation :

In file included from /usr/include/fcntl.h:205,
from sysuser.cpp:3:
In function ‘int open(const char*, int, ...)’,
inlined from ‘void sysuser::execdump(char**, int)’ at sysuser.cpp:1059:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** [sysuser.o] Erreur 1

I don't understand why I can't compile the server :(

L. D. James
05-24-2010, 10:36 PM
I have these messages during the compilation :

In file included from /usr/include/fcntl.h:205,
from sysuser.cpp:3:
In function ‘int open(const char*, int, ...)’,
inlined from ‘void sysuser::execdump(char**, int)’ at sysuser.cpp:1059:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** [sysuser.o] Erreur 1

I don't understand why I can't compile the server :(

Try:

make clean
make

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

Nicolas-FR35
05-24-2010, 10:52 PM
Done... Same problem...

:(

BBuchanan
07-16-2011, 02:38 AM
If I remember correctly, Ubuntu has Apt. Depending on your setup:


Ubuntu: sudo apt-get update
Centos: (as root) yum update

I ran make and make clean a few times before I even tried to start the server. You can also try:

sudo apt-get update make
yum update make