Raised This Month: $51 Target: $400
 12% 

Random crashes on Linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lt Llama
Senior Member
Join Date: Aug 2004
Old 08-21-2008 , 14:26   Random crashes on Linux
Reply With Quote #1

I post it here as I cant login with my forum account and file a bug report, dont even know if it is a bug . Probably my system that have changed somehow. Running 6 servers and all of them have had crashes during this time.

PHP Code:
Aug 21 01:18:48 u042 kernelhlds_amd[30510]: segfault at 00000000000002ec rip 00000000f44159be rsp 00000000ffcef3c0 error 4
Aug 21 11
:09:20 u042 kernelhlds_amd[3925]: segfault at 00000000000002ec rip 00000000f43839be rsp 00000000fffd0590 error 4
Aug 21 14
:16:14 u042 kernelhlds_amd[7143]: segfault at 00000000000002ec rip 00000000f43a7362 rsp 00000000ffcdd410 error 4
Aug 21 19
:25:06 u042 kernelhlds_amd[7509]: segfault at 00000000000002ec rip 00000000f4379362 rsp 00000000ff83df70 error 4 
I have been running AMXMODX v1.76d, MetaMod v1.19p28 for a long time but tried and update on 85.114.140.42:1340 as that server crash the most.

Dedicated amd Linux suse 10.1 server.
AMXMODX v1.8.1.3746, MetaMod v1.19p32

Modules:
PHP Code:
1MySQL                   1.8.1.3746  AMX Mod X Dev Team   running
2unknown                 unknown     unknown              bad load
3Ham Sandwich            1.8.1.3746  AMX Mod X Dev Team   running
4TfcX                    1.8.1.3746  AMX Mod X Dev Team   running
5Fun                     1.8.1.3746  AMX Mod X Dev Team   running
6Engine                  1.8.1.3746  AMX Mod X Dev Team   running
7FakeMeta                1.8.1.3746  AMX Mod X Dev Team   running
8GeoIP                   1.8.1.3746  AMX Mod X Dev Team   running
9Sockets                 1.8.1.3746  HLSW Dev Team        running 

Plugins:
PHP Code:
[  1Admin Base (SQL)        1.8.1.3746  AMXX Dev Team     admin_sql.amxx   running
 
[  2Admin Commands          1.8.1.3746  AMXX Dev Team     admincmd.amxx    running
 
[  3Admin Help              1.8.1.3746  AMXX Dev Team     adminhelp.amxx   running
 
[  4Slots Reservation       1.8.1.3746  AMXX Dev Team     adminslots.amxx  running
 
[  5Multi-Lingual System    1.8.1.3746  AMXX Dev Team     multilingual.am  running
 
[  6Menus Front-End         1.8.1.3746  AMXX Dev Team     menufront.amxx   running
 
[  7Commands Menu           1.8.1.3746  AMXX Dev Team     cmdmenu.amxx     running
 
[  8Players Menu            1.8.1.3746  AMXX Dev Team     plmenu.amxx      running
 
[  9Teleport Menu           1.8.1.3746  AMXX Dev Team     telemenu.amxx    running
 
10Maps Menu               1.8.1.3746  AMXX Dev Team     mapsmenu.amxx    running
 
11Admin Chat              1.8.1.3746  AMXX Dev Team     adminchat.amxx   running
 
12Anti Flood              1.8.1.3746  AMXX Dev Team     antiflood.amxx   running
 
13Scrolling Message       1.8.1.3746  AMXX Dev Team     scrollmsg.amxx   running
 
14InfoMessages          1.8.1.3746  AMXX Dev Team     imessage.amxx    running
 
15Admin Votes             1.8.1.3746  AMXX Dev Team     adminvote.amxx   running
 
16TimeLeft                1.8.1.3746  AMXX Dev Team     timeleft.amxx    running
 
17Pause Plugins           1.8.1.3746  AMXX Dev Team     pausecfg.amxx    running
 
18AFK Kicker              1.0b        Cheesy Peteza     afkkicker.amxx   running
 
19DeagsMapManage          2.30b       Deags             llamasmapmanage  running
 
20Player Map Rank         2.1         Slurpy [COF]      playermaprank.a  debug
 
21EuroskillZ Loading Sou  1.0         NL)Ramon(NL       loadingsound.am  running
 
22Message Of The Moment   0.9         EJL               amx_ejl_motm.am  running
 
23skillsrank              1.5.4.2     Lt Llama&NL)Ramo  skillsrank_1_5_  debug
 
24Command logger          0.1         JGHG              commandlogger.a  running
 
25No Nades                1.0.2       TFC community     tfcnonades_cpt.  running
 
26LadderBugFix            1.00        NL)Ramon(NL       ladderbug.amxx   running
 
27motd                    0.2         SweatyBanana      helpmenu.amxx    running
 
28xREDIRECT               1.0RC4      x0R               xredirect.amxx   running
 
29entbugfix               1.0         watch             entbugfix.amxx   running
 
30rotate_fix_EN           1.0         NL)Ramon(NL       func_rotating.a  running
 
31Automatic Unstuck       1.4         NL)Ramon(NL       stuck.amxx       debug
 
32Admin Gag               1.8.3       EKS               admin_gag.amxx   debug
 
33amx_teleto              1.0         Lt Llama          amx_teleto.amxx  debug
 
34Auto Set Langauge       1.5.02      FALUCO/teame06    autolang.amxx    running
 
35Donations               0.20        Lt Llama          donators_sql_1_  running
 
36amx_cheat               1.0         watch             cheat.amxx       debug
 
37] /VoteKick               1.1         NL)Ramon(NL       votekick1_1.amx  running
 
38Box                     0.1         SgtBane           blocker.amxx     debug
 
39P2K Server Commands     1.2         Rattler           amx_lights.amxx  running
 
40Exec                    1.0         ToXiC             amx_exec.amxx    running
 
41Enhanced Map Searching  1.6         EJL/JTP10181      amx_ejl_searchm  running
 
42TFC_KZ_MARIOLAND        1.00        NL)Ramon(NL       tfc_kz_mariolan  running
 
43Concussion blocker      1.2.0       EKS               block_con.amxx   running 
All plugins runs, the unknown module I dont know what it is. Its some map specific plugin and module. Anyway, I submit the core dumps. I can read them with the gdb I installed but have no clue what I'm reading . I hope they are ok.

CORE DUMPS: http://www.euroskillz.eu/slask/eurocrash.zip

Crash report
PHP Code:
CRASHThu Aug 21 19:25:06 CEST 2008
Start Line
: ./hlds_amd -game tfc -port 1340 -heapsize 150000 +maxplayers 16 +exec server.cfg -binary ./hlds_amd +map ancient_climb -num_edicts 2048 -debug -debuglog bugglog1 -pidfile hlds.7140.pid
Core was generated by 
`./hlds_amd -game tfc -port 1340 -heapsize 150000 +maxplayers 16 +exec server.cf'.
Program terminated with signal 11, Segmentation fault.
[New process 7509]
[New process 7511]
#0  0xf4379362 in mysql_next_result () from tfc/addons/amxmodx/modules/mysql_amxx_i386.so
#0  0xf4379362 in mysql_next_result () from tfc/addons/amxmodx/modules/mysql_amxx_i386.so
#1  0xf4374fbc in ?? () from tfc/addons/amxmodx/modules/mysql_amxx_i386.so
No symbol table info available.
From        To          Syms Read   Shared Object Library
0xf7f3ec70  0xf7f3fb74  Yes         /lib/libdl.so.2
0xf7f2e5c0  0xf7f37994  Yes         /lib/libpthread.so.0
0xf7f08400  0xf7f22a24  Yes         /lib/libm.so.6
0xf7dfa660  0xf7edb8c0  Yes         /lib/libc.so.6
0xf7f4e820  0xf7f633bf  Yes         /lib/ld-linux.so.2
0xf779f770  0xf78b65e1  Yes         /home/www/web6/html/hlds_funskills/engine_amd.so
0xf75cbf70  0xf765269d  Yes         ./libSteamValidateUserIDTickets_i386.so
0xf74f8670  0xf7501e5b  Yes         ./steam_api_i486.so
0xf74d5a60  0xf74e3b4d  Yes         /home/www/web6/html/hlds_funskills/filesystem_stdio_i386.so
0xf47ac184  0xf47bf6e0  Yes         ./tfc/addons/metamod/dlls/metamod_i386.so
0xf46289c0  0xf46f69f1  Yes         /home/www/web6/html/hlds_funskills/tfc/dlls/tfc_i386.so
0xf452d5e0  0xf4587854  Yes         /home/www/web6/html/hlds_funskills/tfc/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf436d290  0xf43ef114  Yes         tfc/addons/amxmodx/modules/mysql_amxx_i386.so
0xf43009f0  0xf432b3a4  Yes         tfc/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xf41ba670  0xf41c1214  Yes         tfc/addons/amxmodx/modules/tfcx_amxx_i386.so
0xf74c3be0  0xf74c66e4  Yes         tfc/addons/amxmodx/modules/fun_amxx_i386.so
0xf40af0e0  0xf40b90b4  Yes         tfc/addons/amxmodx/modules/engine_amxx_i386.so
0xf4077ac0  0xf40a2b74  Yes         tfc/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xf4050f30  0xf40541f4  Yes         tfc/addons/amxmodx/modules/geoip_amxx_i386.so
0xf418fa20  0xf41aa5c0  Yes         /home/www/web6/html/hlds_funskills/tier0_s_i486.so
0xf31d35b0  0xf33ccdd0  Yes         /home/www/web6/html/hlds_funskills/steamclient_i486.so
0xf4143a50  0xf4175d70  Yes         ./vstdlib_s_i486.so
0xf74aebf0  0xf74b49f4  Yes         /lib/libnss_files.so.2
0xf422b6a0  0xf4232c64  Yes         /lib/libgcc_s.so.1
0xf7f43e10  0xf7f46234  Yes         /lib/libnss_dns.so.2
0xf4219650  0xf4224314  Yes         /lib/libresolv.so.2
Stack level 0, frame at 0xff83df80:
 eip = 0xf4379362 in mysql_next_result; saved eip 0xf4374fbc
 called by frame at 0x0
 Arglist at 0xff83df78, args:
 Locals at 0xff83df78, Previous frame's sp is 0xff83df80
 Saved registers:
  ebx at 0xff83df70, ebp at 0xff83df78, esi at 0xff83df74, eip at 0xff83df7c
End of crash report 
Looks like some sql related problem but I cant replicate it as I have no clue whats going on. Everything worked fine until beginning of august.

I use one huge plugin which use the old dbi module but it havent been any problems with it before.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.

Last edited by Lt Llama; 08-21-2008 at 14:31.
Lt Llama is offline
Lt Llama
Senior Member
Join Date: Aug 2004
Old 08-22-2008 , 02:49   Re: Random crashes on Linux
Reply With Quote #2

This is probably and an old problem I had with dbi_nextrow() for the old dbi I forgot I misuse. Forgot to move the tweaks over to a newer version of my sql plugin. Fixed it and I will check if I get any more problems.

Quote:
Originally Posted by BAILOPAN
FYI: I found why this plugin was crashing. You're mishandling dbi_nextrow(). dbi_nextrow() returns 0 when there are no more results. In a few places in this plugin (around 976) you make while loops eating up results, and then call dbi_result() on the query. But by the time you get to dbi_result(), the result set will be entirely gone, as dbi_nextrow() will have finished looping them all.

So, recheck your code for dbi_nextrow() usage. If you know the last call returned 0, you should not be checking any more rows or trying to get results. Furthermore, you should never call dbi_nextrow() without checking the result.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.

Last edited by Lt Llama; 08-22-2008 at 03:23.
Lt Llama is offline
Lt Llama
Senior Member
Join Date: Aug 2004
Old 08-25-2008 , 08:50   Re: Random crashes on Linux
Reply With Quote #3

Solution: Delete everything + make a new server = Problem gone.
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.
Lt Llama is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 16:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode