SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 01/02/2020, 02:48 PM   #1
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 83
Reputation: 4
Default

Hi to everyone.
I'm trying to setup the server on Debian 10 and it keep crashing with this output:
Code:
nohup: ignoring input and appending output to 'nohup.out'
Segmentation fault
I tried to find out the problem using crashdetect and it seems related to vehicles functions like GetVehiclePos, SetVehicleHealth, AddStaticVehicleEx.
Here an example:
Code:
[16:27:02] [debug] #0 00000664 in bool:operator==(Float:,_:) (Float:oper1=0.00000, oper2=0) at C:...\pawno\include\float.inc:133
[16:27:02] [debug] #1 00080040 in IsVehicleConnected (vehid=718) at C:...\gamemode\new.pwn:11271
[16:27:02] [debug] #2 0013f0a4 in public OnGameModeInitACT () at C:...\gamemode\new.pwn:22923
[16:27:02] [debug] #3 000273b4 in public Audio_OnGameModeInit () at C:...\pawno\include\arct.inc:364
[16:27:02] [debug] #4 native CallLocalFunction () in samp03svr
[16:27:02] [debug] #5 0001f718 in public SSCANF_OnGameModeInit () at C:...\pawno\include\audio.inc:119
[16:27:02] [debug] #6 00017210 in public FIXES_OnGameModeInit ()  at C:...\pawno\include\sscanf2.inc:205
[16:27:02] [debug] #7 00004348 in public OnGameModeInit () at C:...\pawno\include\fixes.inc:3558
In this case "IsVehicleConnected" check the position of a vehicle with GetVehiclePos.
But other times happens that AddStaticVehicleEx causes the crash.

I'm on this problem from days, hope that someone could help me
(Btw the server works fine on Windows)

UPDATE:

I figure that the problem is related with the OS architecture (now I'm trying on Ubuntu 18.04 x64), so I searched on the internet and found that I need to make "compatible" my 32 bit libs to the 64 bit OS for using the command:
Code:
nohup ./samp03svr
So i made this:
Code:
dpkg --add-architecture i386
apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
But still the problem remain and the server crash on random function for segmentation fault.

Anybody could help me?

UPDATE:

Here other crash logs after i had installed the 32bits version libraries:

Code:
[12:43:09] [debug] Server crashed while executing new.amx
[12:43:09] [debug] AMX backtrace:
[12:43:09] [debug] #0 native CreateDynamic3DTextLabel () in streamer.so
[12:43:09] [debug] #1 00139a64 in public OnGameModeInitACT () at C:...\gamemodes\new.pwn:22388
[12:43:09] [debug] #2 00027708 in public Audio_OnGameModeInit () at C:...\pawno\include\arct.inc:364
[12:43:09] [debug] #3 native CallLocalFunction () in samp03svr
[12:43:09] [debug] #4 0001fa6c in public SSCANF_OnGameModeInit () at C:....\pawno\include\audio.inc:119
[12:43:09] [debug] #5 00017564 in public FIXES_OnGameModeInit ()  at C:...\pawno\include\sscanf2.inc:205
[12:43:09] [debug] #6 0000469c in public OnGameModeInit () at C:...\pawno\include\fixes.inc:3558
[12:43:09] [debug] Native backtrace:
[12:43:09] [debug] #0 f7ab38b6 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[12:43:09] [debug] #1 f7aab120 in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[12:43:09] [debug] #2 f7aab886 in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[12:43:09] [debug] #3 f7aabf96 in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[12:43:09] [debug] #4 f7ab2f82 in ?? () in plugins/crashdetect.so
[12:43:09] [debug] #5 f7f920a0 in __kernel_rt_sigreturn () in linux-gate.so.1
[12:43:09] [debug] #6 f7b43448 in fwrite () in /lib/i386-linux-gnu/libc.so.6
[12:43:09] [debug] #7 f7f86fd2 in _Z18ProcessQueryThreadPv () in plugins/rwthread.so
[12:43:09] [debug] #8 f7f62fd2 in ?? () in /lib/i386-linux-gnu/libpthread.so.0
[12:43:09] [debug] #9 f7bd56d6 in clone () in /lib/i386-linux-gnu/libc.so.6
[12:43:09] [debug] Registers:
[12:43:09] [debug] EAX: f7cb5000 EBX: f7f8aff4 ECX: 00000000 EDX: 0000002d
[12:43:09] [debug] ESI: 00000000 EDI: 0000002d EBP: f6ed22a8 ESP: f6ed2280
[12:43:09] [debug] EIP: f7b43448 EFLAGS: 00010206
[12:43:09] [debug] Stack:
[12:43:09] [debug] ESP+00000000: 082ccd90 f7f8aff4 00000000 f7cb5000
[12:43:09] [debug] ESP+00000020: 00000000 f7f8b160 f6ed2358 f7f86fd2
[12:43:09] [debug] ESP+00000040: f7f8cf30 00000000 f7f7a000 f7f62ed0
[12:43:09] [debug] ESP+00000060: f7f6b150 f7f6b150 081a1990 00000000
[12:43:09] [debug] ESP+00000080: 00000005 00000000 f7f8d640 00000001
[12:43:09] [debug] ESP+000000a0: 080dce72 f7ae7cac f6ed2b40 f7cb5000
[12:43:09] [debug] ESP+000000c0: f6ed2428 f7fa8690 f7f86e3b 00000000
[12:43:09] [debug] ESP+000000e0: 00000000 f7cb3a40 0000000c f7f62f59
[12:43:09] [debug] ESP+00000100: 00000000 00000000 00000000 f7f7a000
[12:43:09] [debug] ESP+00000120: baecaee9 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000140: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000160: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000180: 00000000 00000000 00000000 9d1da800
[12:43:09] [debug] ESP+000001a0: 00000000 003d0f00 00000000 f7bd56d6
[12:43:09] [debug] ESP+000001c0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+000001e0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000200: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000220: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000240: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000260: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000280: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+000002a0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+000002c0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+000002e0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000300: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000340: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000360: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+00000380: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+000003a0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+000003c0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] ESP+000003e0: 00000000 00000000 00000000 00000000
[12:43:09] [debug] Loaded modules:
[12:43:09] [debug] 00000000 - 00187dc3 samp03svr
[12:43:09] [debug] f7f91000 - f7f922aa linux-gate.so.1
[12:43:09] [debug] f7f7d000 - f7f7fcb8 /lib/i386-linux-gnu/libdl.so.2
[12:43:09] [debug] f7f5c000 - f7f7ab63 /lib/i386-linux-gnu/libpthread.so.0
[12:43:09] [debug] f7ddd000 - f7f665c0 /lib/i386-linux-gnu/libstdc++.so.6
[12:43:09] [debug] f7cd7000 - f7ddb0a0 /lib/i386-linux-gnu/libm.so.6
[12:43:09] [debug] f7cb9000 - f7cd5214 /lib/i386-linux-gnu/libgcc_s.so.1
[12:43:09] [debug] f7adb000 - f7cbe926 /lib/i386-linux-gnu/libc.so.6
[12:43:09] [debug] f7f93000 - f7fbadeb /lib/ld-linux.so.2
[12:43:09] [debug] f7a94000 - f7ad83ac plugins/crashdetect.so
[12:43:09] [debug] f7703000 - f7a98eb2 plugins/mysql.so
[12:43:09] [debug] f76df000 - f7702d32 /home/lorenzo/ftp/samplinux/plugins/../log-core.so
[12:43:09] [debug] f76d4000 - f76dba20 /lib/i386-linux-gnu/librt.so.1
[12:43:09] [debug] f66bd000 - f66cf03c /lib/i386-linux-gnu/libnss_files.so.2
[12:43:09] [debug] f66ad000 - f66bc40c plugins/sscanf.so
[12:43:09] [debug] f643a000 - f64ff740 plugins/streamer.so
[12:43:09] [debug] f6629000 - f66ad561 plugins/audio.so
[12:43:09] [debug] f640d000 - f6438d70 plugins/profiler.so
[12:43:09] [debug] f7f83000 - f7f8a795 plugins/rwthread.so
[12:43:09] [debug] f617a000 - f640bbb6 plugins/bcrypt-samp.so
Code:
[12:46:37] [debug] Server crashed while executing new.amx
[12:46:37] [debug] AMX backtrace:
[12:46:37] [debug] #0 native mysql_connect () in mysql.so
[12:46:37] [debug] #1 001296f8 in public OnGameModeInitACT () at C:...\gamemodes\new.pwn:21402
[12:46:37] [debug] #2 00027708 in public Audio_OnGameModeInit () at C:...\pawno\include\arct.inc:364
[12:46:37] [debug] #3 native CallLocalFunction () in samp03svr
[12:46:37] [debug] #4 0001fa6c in public SSCANF_OnGameModeInit () at C:..pawno\include\audio.inc:119
[12:46:37] [debug] #5 00017564 in public FIXES_OnGameModeInit ()  at C:...pawno\include\sscanf2.inc:205
[12:46:37] [debug] #6 0000469c in public OnGameModeInit () at C:...\pawno\include\fixes.inc:3558
[12:46:37] [debug] Native backtrace:
[12:46:37] [debug] #0 f7aac8b6 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[12:46:37] [debug] #1 f7aa4120 in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[12:46:37] [debug] #2 f7aa4886 in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[12:46:37] [debug] #3 f7aa4f96 in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[12:46:37] [debug] #4 f7aabf82 in ?? () in plugins/crashdetect.so
[12:46:37] [debug] #5 f7f8b0a0 in __kernel_rt_sigreturn () in linux-gate.so.1
[12:46:37] [debug] #6 f7b3c448 in fwrite () in /lib/i386-linux-gnu/libc.so.6
[12:46:37] [debug] #7 f7f7ffd2 in _Z18ProcessQueryThreadPv () in plugins/rwthread.so
[12:46:37] [debug] #8 f7f5bfd2 in ?? () in /lib/i386-linux-gnu/libpthread.so.0
[12:46:37] [debug] #9 f7bce6d6 in clone () in /lib/i386-linux-gnu/libc.so.6
[12:46:37] [debug] Registers:
[12:46:37] [debug] EAX: f7cae000 EBX: f7f83ff4 ECX: 00000000 EDX: 0000002d
[12:46:37] [debug] ESI: 00000000 EDI: 0000002d EBP: f6ecb2a8 ESP: f6ecb280
[12:46:37] [debug] EIP: f7b3c448 EFLAGS: 00010206
[12:46:37] [debug] Stack:
[12:46:37] [debug] ESP+00000000: 098c2d90 f7f83ff4 00000000 f7cae000
[12:46:37] [debug] ESP+00000020: 00000000 f7f84160 f6ecb358 f7f7ffd2
[12:46:37] [debug] ESP+00000040: f7f85f30 00000000 f7f73000 f7f5bed0
[12:46:37] [debug] ESP+00000060: f7f64150 f7f64150 081a1990 00000000
[12:46:37] [debug] ESP+00000080: 00000005 00000000 f7f86640 00000001
[12:46:37] [debug] ESP+000000a0: 080dce72 f7ae0cac f6ecbb40 f7cae000
[12:46:37] [debug] ESP+000000c0: f6ecb428 f7fa1690 f7f7fe3b 00000000
[12:46:37] [debug] ESP+000000e0: 00000000 f7caca40 0000000c f7f5bf59
[12:46:37] [debug] ESP+00000100: 00000000 00000000 00000000 f7f73000
[12:46:37] [debug] ESP+00000120: e2378a53 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000140: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000160: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000180: 00000000 00000000 00000000 b8f6da00
[12:46:37] [debug] ESP+000001a0: 00000000 003d0f00 00000000 f7bce6d6
[12:46:37] [debug] ESP+000001c0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+000001e0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000200: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000220: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000240: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000260: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000280: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+000002a0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+000002c0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+000002e0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000300: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000340: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000360: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+00000380: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+000003a0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+000003c0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] ESP+000003e0: 00000000 00000000 00000000 00000000
[12:46:37] [debug] Loaded modules:
[12:46:37] [debug] 00000000 - 00187dc3 samp03svr
[12:46:37] [debug] f7f8a000 - f7f8b2aa linux-gate.so.1
[12:46:37] [debug] f7f76000 - f7f78cb8 /lib/i386-linux-gnu/libdl.so.2
[12:46:37] [debug] f7f55000 - f7f73b63 /lib/i386-linux-gnu/libpthread.so.0
[12:46:37] [debug] f7dd6000 - f7f5f5c0 /lib/i386-linux-gnu/libstdc++.so.6
[12:46:37] [debug] f7cd0000 - f7dd40a0 /lib/i386-linux-gnu/libm.so.6
[12:46:37] [debug] f7cb2000 - f7cce214 /lib/i386-linux-gnu/libgcc_s.so.1
[12:46:37] [debug] f7ad4000 - f7cb7926 /lib/i386-linux-gnu/libc.so.6
[12:46:37] [debug] f7f8c000 - f7fb3deb /lib/ld-linux.so.2
[12:46:37] [debug] f7a8d000 - f7ad13ac plugins/crashdetect.so
[12:46:37] [debug] f76fc000 - f7a91eb2 plugins/mysql.so
[12:46:37] [debug] f76d8000 - f76fbd32 /home/lorenzo/ftp/samplinux/plugins/../log-core.so
[12:46:37] [debug] f76cd000 - f76d4a20 /lib/i386-linux-gnu/librt.so.1
[12:46:37] [debug] f66b6000 - f66c803c /lib/i386-linux-gnu/libnss_files.so.2
[12:46:37] [debug] f66a6000 - f66b540c plugins/sscanf.so
[12:46:37] [debug] f643a000 - f64ff740 plugins/streamer.so
[12:46:37] [debug] f6622000 - f66a6561 plugins/audio.so
[12:46:37] [debug] f640d000 - f6438d70 plugins/profiler.so
[12:46:37] [debug] f7f7c000 - f7f83795 plugins/rwthread.so
[12:46:37] [debug] f617a000 - f640bbb6 plugins/bcrypt-samp.so

Last edited by dugi; 12/02/2020 at 10:30 AM.
pollo97 is offline   Reply With Quote
Old 11/02/2020, 04:21 PM   #2
akovacevic00
Banned
 
Join Date: May 2019
Posts: 17
Reputation: 17
Default Re: Server running on Debian 10 get segmentation fault

Ubuntu 14.04 x32 for samp servers!!!!!!!
akovacevic00 is offline   Reply With Quote
Old 11/02/2020, 04:49 PM   #3
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 83
Reputation: 4
Default Re: Server running on Debian 10 get segmentation fault

I'm using OVH VPS for testing and they've got only UNIX x64
pollo97 is offline   Reply With Quote
Old 13/02/2020, 02:35 PM   #4
B3x7K
Big Clucker
 
B3x7K's Avatar
 
Join Date: Aug 2017
Location: 惑星黒トカゲ
Posts: 77
Reputation: 3
Default Re: Server running on Debian 10 get segmentation fault

Quote:
Originally Posted by pollo97 View Post
I'm using OVH VPS for testing and they've got only UNIX x64
Change it to 32lib then
__________________

HOW TO ENGLISH?!
AAAAAAAAAAAAAAAA

B3x7K is offline   Reply With Quote
Old 14/02/2020, 03:48 PM   #5
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 83
Reputation: 4
Default Re: Server running on Debian 10 get segmentation fault

Quote:
Originally Posted by B3x7K View Post
Change it to 32lib then
I can't, OVH offers only 64 bit unix systems.
pollo97 is offline   Reply With Quote
Old 16/02/2020, 11:32 AM   #6
bluur
Little Clucker
 
Join Date: Nov 2016
Posts: 7
Reputation: 1
Default Re: Server running on Debian 10 get segmentation fault

Quote:
Originally Posted by pollo97 View Post
I can't, OVH offers only 64 bit unix systems.
64bit is ok! It depends of community plugins and which libraries were used to compile them. It's not samp-server problem.
At first, check which plugin is not compatible with your OS and libs. Later check requirements of plugins that was written by them authors and stick to them or try other versions of plugins. If plugin was written to work cool on deb7 for example, its very possible to not work properly on debian 10. In the worst case you need to compile that bad plugin with new libs using authors repos. Good luck
__________________
LS-STORIES.PL - Polish biggest and the most advanced 0.3DL RolePlay
mschnitzer's SA:MP Model Hosting Site
bluur is offline   Reply With Quote
Old 16/02/2020, 12:26 PM   #7
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,616
Reputation: 1653
Default Re: Server running on Debian 10 get segmentation fault

Using dpkg --add-architecture i386 should be enough, no need to switch to a 32 bit OS. I recently (re-)installed a server on Ubuntu Server 18.04 (64 bit). I only needed the next dependencies to run samp03svr (and two others for some plugins the server uses)
Code:
libc6-i386
lib32stdc++6
Also you may want to add '&' to your nohup command: nohup ./samp03svr &. This puts the process in the background. Breaking loose from nohup otherwise kills the process. Logging out will also destroy the process (unless if you just force a connection breakup)

Quote:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
Try lib32stdc++6 rather than libstdc++6:i386, and eventually libc-i386 instead of libc:i386 (though that should not matter afaik).
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/
Kwarde is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Fix Segmentation fault for SA-MP Server Linux Abanob Bug Reports 4 15/09/2014 07:28 PM
Segmentation fault crash - Debian 3ventic Server Support 3 22/12/2012 07:26 PM
this code crashes server ( segmentation fault) armyoftwo Help Archive 2 06/01/2011 12:48 PM


All times are GMT. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.