Linux VPS crash on certain player count
#1

This always happens when player count is 70 or higher and a player connects. Sometimes it happens on 90-ish...

Now, I know most of this stuff is gibberish.. the last 3 lines may give us something..
I did make search on this, it had something to do with no memory being available? It may also have nothing to do with the plugins, some Pawn function of something...
Код:
 

*** glibc detected *** ./samp03svr: free(): invalid next size (normal): 0xaf5def98 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6adba)[0xb7d09dba]
/lib/libc.so.6(+0x6c608)[0xb7d0b608]
/lib/libc.so.6(cfree+0x6d)[0xb7d0e74d]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7ee3701]
./samp03svr[0x806d32f]
./samp03svr[0x80b59a2]
./samp03svr[0x80b5b42]
./samp03svr[0x80b1453]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb7cb5c96]
./samp03svr[0x804b521]
======= Memory map: ========
08048000-08094000 r-xp 00000000 08:05 161022068                          /home/server/samp03svr
08094000-08096000 rwxp 0004c000 08:05 161022068                          /home/server/samp03svr
08096000-08168000 r-xp 0004e000 08:05 161022068                          /home/server/samp03svr
08168000-0818a000 rw-p 0011f000 08:05 161022068                          /home/server/samp03svr
0818a000-08195000 rw-p 0818a000 00:00 0
0896e000-0c0f0000 rw-p 0896e000 00:00 0                                  [heap]
aa700000-aa78c000 rw-p aa700000 00:00 0
aa78c000-aa800000 ---p aa78c000 00:00 0
aa900000-aaaff000 rw-p aa900000 00:00 0
aaaff000-aab00000 ---p aaaff000 00:00 0
aab00000-aac00000 rw-p aab00000 00:00 0
aad00000-aae00000 rw-p aad00000 00:00 0
aaf00000-ab000000 rw-p aaf00000 00:00 0
ab100000-ab2fe000 rw-p ab100000 00:00 0
ab2fe000-ab300000 ---p ab2fe000 00:00 0
ab300000-ab400000 rw-p ab300000 00:00 0
ab500000-ab6ff000 rw-p ab500000 00:00 0
ab6ff000-ab700000 ---p ab6ff000 00:00 0
ab700000-ab7fc000 rw-p ab700000 00:00 0
ab7fc000-ab800000 ---p ab7fc000 00:00 0
ab900000-aba00000 rw-p ab900000 00:00 0
abb00000-abc00000 rw-p abb00000 00:00 0
abd00000-abf00000 rw-p abd00000 00:00 0
abf00000-ac000000 rw-p abf00000 00:00 0
ac100000-ac300000 rw-p ac100000 00:00 0
ac300000-ac400000 rw-p ac300000 00:00 0
ac500000-ac700000 rw-p ac500000 00:00 0
ac700000-ac900000 rw-p ac700000 00:00 0
ac900000-aca00000 rw-p ac900000 00:00 0
acb00000-accfe000 rw-p acb00000 00:00 0
accfe000-acd00000 ---p accfe000 00:00 0
acd00000-acf00000 rw-p acd00000 00:00 0
acf00000-ad000000 rw-p acf00000 00:00 0
ad100000-ad300000 rw-p ad100000 00:00 0
ad300000-ad500000 rw-p ad300000 00:00 0
ad500000-ad600000 rw-p ad500000 00:00 0
ad700000-ad8fd000 rw-p ad700000 00:00 0
ad8fd000-ad900000 ---p ad8fd000 00:00 0
ad900000-adb00000 rw-p ad900000 00:00 0
adb00000-adc00000 rw-p adb00000 00:00 0
add00000-ade00000 rw-p add00000 00:00 0
adf00000-ae100000 rw-p adf00000 00:00 0
ae100000-ae300000 rw-p ae100000 00:00 0
ae300000-ae400000 rw-p ae300000 00:00 0
ae4cf000-ae700000 rw-p ae4cf000 00:00 0
ae700000-ae900000 rw-p ae700000 00:00 0
ae900000-aeb00000 rw-p ae900000 00:00 0
aeb00000-aed00000 rw-p aeb00000 00:00 0
aed00000-aef00000 rw-p aed00000 00:00 0
aef00000-af000000 rw-p aef00000 00:00 0
af100000-af200000 rw-p af100000 00:00 0
af300000-af400000 rw-p af300000 00:00 0
af500000-af600000 rw-p af500000 00:00 0
af700000-af900000 rw-p af700000 00:00 0
af900000-afb00000 rw-p af900000 00:00 0
afb00000-afc00000 rw-p afb00000 00:00 0
afd00000-afe00000 rw-p afd00000 00:00 0
afefb000-b1e00000 rw-p afefb000 00:00 0
b1f00000-b1fff000 rw-p b1f00000 00:00 0
b1fff000-b2000000 ---p b1fff000 00:00 0
b2000000-b2100000 rw-p b2000000 00:00 0
b2100000-b21fe000 rw-p b2100000 00:00 0
b21fe000-b2200000 ---p b21fe000 00:00 0
b2200000-b22fc000 rw-p b2200000 00:00 0
b22fc000-b2300000 ---p b22fc000 00:00 0
b2300000-b2500000 rw-p b2300000 00:00 0
b2500000-b2700000 rw-p b2500000 00:00 0
b2700000-b2800000 rw-p b2700000 00:00 0
b2842000-b2843000 rw-p b2842000 00:00 0
b2843000-b2844000 ---p b2843000 00:00 0
b2844000-b3043000 rw-p b2844000 00:00 0
b3043000-b3044000 ---p b3043000 00:00 0
b3044000-b3843000 rw-p b3044000 00:00 0
b3843000-b3844000 ---p b3843000 00:00 0
b3844000-b5b2a000 rw-p b3844000 00:00 0
b5b2b000-b6000000 rw-p b5b2b000 00:00 0
b6000000-b6001000 ---p b6000000 00:00 0
b6001000-b6900000 rw-p b6001000 00:00 0
b6901000-b69a5000 rw-p b6901000 00:00 0
b69a5000-b69b5000 r-xp 00000000 08:05 158996727                          /lib/libresolv-2.11.3.so
b69b5000-b69b6000 r--p 00010000 08:05 158996727                          /lib/libresolv-2.11.3.so
b69b6000-b69b7000 rw-p 00011000 08:05 158996727                          /lib/libresolv-2.11.3.so
b69b7000-b69b9000 rw-p b69b7000 00:00 0
b69b9000-b69bd000 r-xp 00000000 08:05 158996921                          /lib/libnss_dns-2.11.3.so
b69bd000-b69be000 r--p 00004000 08:05 158996921                          /lib/libnss_dns-2.11.3.so
b69be000-b69bf000 rw-p 00005000 08:05 158996921                          /lib/libnss_dns-2.11.3.so
b69bf000-b69c9000 r-xp 00000000 08:05 158996735                          /lib/libnss_files-2.11.3.so
b69c9000-b69ca000 r--p 00009000 08:05 158996735                          /lib/libnss_files-2.11.3.so
b69ca000-b69cb000 rw-p 0000a000 08:05 158996735                          /lib/libnss_files-2.11.3.so
b69cb000-b6ac7000 rw-p b69cb000 00:00 0
b6ac7000-b6ac8000 ---p b6ac7000 00:00 0
b6ac8000-b72c7000 rw-p b6ac8000 00:00 0
b72c7000-b72ee000 r-xp 00000000 08:05 161054998                          /home/server/plugins/crashdetect.so
b72ee000-b72ef000 rw-p 00026000 08:05 161054998                          /home/server/plugins/crashdetect.so
b72ef000-b7372000 r-xp 00000000 08:05 161054999                          /home/server/plugins/audio.so
b7372000-b7373000 rw-p 00082000 08:05 161054999                          /home/server/plugins/audio.so
b7373000-b7382000 r-xp 00000000 08:05 161055001                          /home/server/plugins/sscanf-linux.so
b7382000-b7383000 r--p 0000e000 08:05 161055001                          /home/server/plugins/sscanf-linux.so
b7383000-b7384000 rw-p 0000f000 08:05 161055001                          /home/server/plugins/sscanf-linux.so
b7384000-b738b000 r-xp 00000000 08:05 158996742                          /lib/librt-2.11.3.so
b738b000-b738c000 r--p 00006000 08:05 158996742                          /lib/librt-2.11.3.so
b738c000-b738d000 rw-p 00007000 08:05 158996742                          /lib/librt-2.11.3.so
b7391000-b741c000 r-xp 00000000 08:05 161055003                          /home/server/plugins/streamer.so
b741c000-b741d000 rw-p 0008b000 08:05 161055003                          /home/server/plugins/streamer.so
b741d000-b741e000 rw-p b741d000 00:00 0
b741e000-b7424000 r-xp 00000000 08:05 161055031                          /home/server/plugins/FileManager.so
b7424000-b7425000 r--p 00005000 08:05 161055031                          /home/server/plugins/FileManager.so
b7425000-b7426000 rw-p 00006000 08:05 161055031                          /home/server/plugins/FileManager.so
b7426000-b7427000 ---p b7426000 00:00 0
b7427000-b7c26000 rw-p b7427000 00:00 0
b7c26000-b7c9c000 r-xp 00000000 08:05 161055000                          /home/server/plugins/irc.so
b7c9c000-b7c9d000 rw-p 00075000 08:05 161055000                          /home/server/plugins/irc.so
b7c9d000-b7c9f000 rw-p b7c9d000 00:00 0
b7c9f000-b7ddd000 r-xp 00000000 08:05 158996946                          /lib/libc-2.11.3.so
b7ddd000-b7dde000 ---p 0013e000 08:05 158996946                          /lib/libc-2.11.3.so
b7dde000-b7de0000 r--p 0013e000 08:05 158996946                          /lib/libc-2.11.3.so
b7de0000-b7de1000 rw-p 00140000 08:05 158996946                          /lib/libc-2.11.3.so
b7de1000-b7de4000 rw-p b7de1000 00:00 0
b7de4000-b7e01000 r-xp 00000000 08:05 158996766                          /lib/libgcc_s.so.1
b7e01000-b7e02000 rw-p 0001c000 08:05 158996766                          /lib/libgcc_s.so.1
b7e02000-b7e26000 r-xp 00000000 08:05 158996924                          /lib/libm-2.11.3.so
b7e26000-b7e27000 r--p 00023000 08:05 158996924                          /lib/libm-2.11.3.so
b7e27000-b7e28000 rw-p 00024000 08:05 158996924                          /lib/libm-2.11.3.so
b7e28000-b7f11000 r-xp 00000000 08:05 179738450                          /usr/lib/libstdc++.so.6.0.13
b7f11000-b7f15000 r--p 000e9000 08:05 179738450                          /usr/lib/libstdc++.so.6.0.13
b7f15000-b7f16000 rw-p 000ed000 08:05 179738450                          /usr/lib/libstdc++.so.6.0.13
b7f16000-b7f1e000 rw-p b7f16000 00:00 0
b7f1e000-b7f32000 r-xp 00000000 08:05 158996758                          /lib/libpthread-2.11.3.so
b7f32000-b7f33000 ---p 00014000 08:05 158996758                          /lib/libpthread-2.11.3.so
b7f33000-b7f34000 r--p 00014000 08:05 158996758                          /lib/libpthread-2.11.3.so
b7f34000-b7f35000 rw-p 00015000 08:05 158996758                          /lib/libpthread-2.11.3.so
b7f35000-b7f37000 rw-p b7f35000 00:00 0
b7f37000-b7f39000 r-xp 00000000 08:05 158996767                          /lib/libdl-2.11.3.so
b7f39000-b7f3a000 r--p 00001000 08:05 158996767                          /lib/libdl-2.11.3.so
b7f3a000-b7f3b000 rw-p 00002000 08:05 158996767                          /lib/libdl-2.11.3.so
b7f3b000-b7f41000 rw-p b7f3b000 00:00 0
b7f41000-b7f5c000 r-xp 00000000 08:05 158996776                          /lib/ld-2.11.3.so
b7f5c000-b7f5d000 r--p 0001b000 08:05 158996776                          /lib/ld-2.11.3.so
b7f5d000-b7f5e000 rw-p 0001c000 08:05 158996776                          /lib/ld-2.11.3.so
bf901000-bf916000 rw-p 7ffffffe9000 00:00 0                              [stack]
Aborted
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Reply
#2

That last 3 lines (I used to have linux vps) normally means it cannot allocate enough memory.

What plugins have you got running and what are the vps specs?
Reply
#3

Quote:
Originally Posted by sanplayer
Посмотреть сообщение
That last 3 lines (I used to have linux vps) normally means it cannot allocate enough memory.

What plugins have you got running and what are the vps specs?
I think it is the VPS' fault... RAM is 4GBs, which is way enough for 70 players. CPU usage never goes higher than 40%.

Plugins: filemanager, irc, crashdetect, sscanf, streamer, audio
Reply
#4

Uhm. You sure your script isn't getting overloaded? sometimes features in your script can cause too much load.
Reply
#5

Quote:
Originally Posted by sanplayer
Посмотреть сообщение
Uhm. You sure your script isn't getting overloaded? sometimes features in your script can cause too much load.
Well, what would you say would cause the overload, too many variables? I don't think that is the problem though.. no new variables are created as player connects, only modified.
Reply
#6

How much ram is being used when the server is close to 70 players?
Reply
#7

Looks like a RAM usage issue. I would check how much your using when you have a certain player amount.
Reply
#8

Quote:
Originally Posted by linuxthefish
Посмотреть сообщение
How much ram is being used when the server is close to 70 players?
Around 168 MBs..
Reply
#9

Maybe the VPS Internet network isn't able to cope.
Reply
#10

Quote:
Originally Posted by khanz
Посмотреть сообщение
Maybe the VPS Internet network isn't able to cope.
I don't think that could be it.

It might be the IRC message sending though, sometimes at least 5-10 lines are sent in less than 2 seconds...

PS: Would it be the CPU usage, sometimes it goes higher than 75%.. but goes back down to 20% or so.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)