Jump to content

Unknow Crash


Recommended Posts

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

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

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

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
  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...