Emilio_M Posted May 18, 2014 Share Posted May 18, 2014 Hello, I need some help for my server. It regulary crash: BackTrace : [01:49:16] QUIT: Player left the game [Quit] terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Program received signal SIGABRT, Aborted. [switching to Thread 0xb3416b70 (LWP 12210)] 0xb7d63577 in raise () from /lib/libc.so.6 (gdb) bt #0 0xb7d63577 in raise () from /lib/libc.so.6 #1 0xb7d66962 in abort () from /lib/libc.so.6 #2 0xb7fa353f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6 #3 0xb7fa1405 in ?? () from /usr/lib/libstdc++.so.6 #4 0xb7fa1442 in std::terminate() () from /usr/lib/libstdc++.so.6 #5 0xb7fa1581 in __cxa_throw () from /usr/lib/libstdc++.so.6 #6 0xb7fa1bff in operator new(unsigned int) () from /usr/lib/libstdc++.so.6 #7 0xb7fa1cdd in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6 #8 0xb78a0524 in HttpResponse::SetBody(char const*, int) () from /home/RP/mods/deathmatch/deathmatch.so #9 0xb77826cc in CResourceFile::Request(HttpRequest*, HttpResponse*) () from /home/RP/mods/deathmatch/deathmatch.so #10 0xb7763eac in CResource::HandleRequestActive(HttpRequest*, HttpResponse*, CAccount*) () from /home/RP/mods/deathmatch/deathmatch.so #11 0xb77642bd in CResource::HandleRequest(HttpRequest*, HttpResponse*) () from /home/RP/mods/deathmatch/deathmatch.so #12 0xb789b6c3 in EHS::RouteRequest(HttpRequest*) () from /home/RP/mods/deathmatch/deathmatch.so #13 0xb789ba3c in EHS::RouteRequest(HttpRequest*) () from /home/RP/mods/deathmatch/deathmatch.so #14 0xb789cc14 in EHSServer::HandleData(int, unsigned long) () from /home/RP/mods/deathmatch/deathmatch.so Details: total used free shared buffers cached Mem: 7168 1893 5274 0 0 1190 -/+ buffers/cache: 702 6465 Swap: 1024 253 770 Kernel and CPU Linux 2.6.32-28-pve on i686 Processor information Intel® Core i7 CPU 950 @ 3.07GHz, 2 cores Operating system Debian Linux 6.0 Thanks for replies. Link to comment
MTA Team ccw Posted May 18, 2014 MTA Team Share Posted May 18, 2014 Try the latest nightly build: https://nightly.multitheftauto.com/?multitheftaut ... 3.5-latest Link to comment
Emilio_M Posted May 18, 2014 Author Share Posted May 18, 2014 Ok thanks. I try that and i will repost here if crash continue. Link to comment
Emilio_M Posted May 22, 2014 Author Share Posted May 22, 2014 Hello ! With this version, my gamemode have some bugs : It return some bug for table ex : ERROR: chat-system/s_chat_system.lua:293: bad argument #1 to 'ipairs' (table expected, got nil) When a player disconnect i must restart resource who table is created and sometimes the server crash when i restart this resource. It's so crazy, i have to change my version to doesnt have this bugs. Link to comment
Emilio_M Posted May 23, 2014 Author Share Posted May 23, 2014 I have a question : What is the difference of the Nightly build version and the official version here : linux.multitheftauto.com ? Thanks all. Link to comment
MTA Team ccw Posted May 23, 2014 MTA Team Share Posted May 23, 2014 Nightly build version contains the very latest fixes, but also could have bugs. The one on linux.multitheftauto.com is a previous nightly that had important bug fixes and didn't have any bugs. Link to comment
Emilio_M Posted May 28, 2014 Author Share Posted May 28, 2014 I update my server but the crash continue, please help me. Regards, Link to comment
MTA Team ccw Posted May 28, 2014 MTA Team Share Posted May 28, 2014 What is your server IP? What is the server build version? (command 'sver') How often does it crash? Link to comment
Emilio_M Posted May 28, 2014 Author Share Posted May 28, 2014 IP : serveur.umv-rp.fr Sver :Mtasa serveur v1.35-release-6434 The server crash every one-two days Link to comment
MTA Team ccw Posted May 28, 2014 MTA Team Share Posted May 28, 2014 Is there a dumps directory in the server install directory like this: If yes, are there any files inside? If not, create it and give it 777 permissions. Link to comment
Emilio_M Posted May 28, 2014 Author Share Posted May 28, 2014 There is already this folder and it chmod is already set at 777 Link to comment
Emilio_M Posted May 28, 2014 Author Share Posted May 28, 2014 No there are many files inside Link to comment
MTA Team ccw Posted May 28, 2014 MTA Team Share Posted May 28, 2014 Zip them up and upload here: http://upload.mtasa.com/ Link to comment
Emilio_M Posted May 29, 2014 Author Share Posted May 29, 2014 Here : http://upload.mtasa.com/u/846512755/dumps.rar_ Note : my mta-server is RPSERV ( to start the server ) Link to comment
MTA Team ccw Posted May 29, 2014 MTA Team Share Posted May 29, 2014 Thanks. The last crash recorded there was 2014-05-24, so please run the server with gdb and show me a backtrace when it crashes (like you did in your first post). Link to comment
Emilio_M Posted May 30, 2014 Author Share Posted May 30, 2014 There is an an other crash. I start the server with gdb and I wait for an other crash. Thanks for reply. Link to comment
Emilio_M Posted June 4, 2014 Author Share Posted June 4, 2014 My bt [11:50:38] NICK: Diamond is now known as Jeffrey_Morston terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Program received signal SIGABRT, Aborted. [switching to Thread 0xb6412b70 (LWP 19777)] 0xb7d63577 in raise () from /lib/libc.so.6 (gdb) (gdb) bt #0 0xb7d63577 in raise () from /lib/libc.so.6 #1 0xb7d66962 in abort () from /lib/libc.so.6 #2 0xb7fa353f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6 #3 0xb7fa1405 in ?? () from /usr/lib/libstdc++.so.6 #4 0xb7fa1442 in std::terminate() () from /usr/lib/libstdc++.so.6 #5 0xb7fa1581 in __cxa_throw () from /usr/lib/libstdc++.so.6 #6 0xb7fa1bff in operator new(unsigned int) () from /usr/lib/libstdc++.so.6 #7 0xb7fa1cdd in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6 #8 0xb78a0e04 in HttpResponse::SetBody(char const*, int) () from /home/RP/mods/deathmatch/deathmatch.so #9 0xb778209c in CResourceFile::Request(HttpRequest*, HttpResponse*) () from /home/RP/mods/deathmatch/deathmatch.so #10 0xb7763c2c in CResource::HandleRequestActive(HttpRequest*, HttpResponse*, CAccount*) () from /home/RP/mods/deathmatch/deathmatch.so #11 0xb776403d in CResource::HandleRequest(HttpRequest*, HttpResponse*) () from /home/RP/mods/deathmatch/deathmatch.so #12 0xb789bfa3 in EHS::RouteRequest(HttpRequest*) () from /home/RP/mods/deathmatch/deathmatch.so #13 0xb789c31c in EHS::RouteRequest(HttpRequest*) () from /home/RP/mods/deathmatch/deathmatch.so #14 0xb789d4f4 in EHSServer::HandleData(int, unsigned long) () from /home/RP/mods/deathmatch/deathmatch.so ---Type to continue, or q to quit--- Link to comment
Hitori Posted June 18, 2014 Share Posted June 18, 2014 Hi all. In the last two days our mta server had six crashes. I have zipped dumps and uploaded mta_linux_server_crash_dumps.zip on upload.mtasa.com. Hope it will help to solve problem. Link to comment
Emilio_M Posted June 25, 2014 Author Share Posted June 25, 2014 Its solved. CCW help me to fix this crashs. The problem is : All of the query has not free result and take more and more memory. To fix this you have to add free_result when you have finished to use the Query Results. Regards and thanks to CCW. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now