Raised This Month: $ Target: $400
 0% 

Plugin crashes the server - how to debug?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 04-17-2010 , 07:50   Plugin crashes the server - how to debug?
Reply With Quote #1

Hey.
My plugin crashes servers on both, windows and linux. But the problem: I don't know where and why it crashes. The time after which the crash happens differs in every case, from 6 hours to two days. Here is the only thing that I can extract out of the debug.log:
Quote:
./srcds_run: line 344: 6528 Segmentation fault (core dumped) $HL_CMD
Cannot access memory at address 0xf7f02658
Cannot access memory at address 0xec43b3a0
/home/gameserver/testserver1/debug.cmds: Error in sourced command file:
Cannot access memory at address 0xf7f02658
email debug.log to [email protected]
The addresses change on every crash. For me, it seems to be random. So I don't know how to search. The crashes happen everytime, so they aren't connected with map start, round start or something like that. Crashes happen with or without players (or bots) - it doesn't matter.

My question is now: How can I debug that? If I want to compile in Debug mode, the compiler prints a lot of errors from the SDK and some link errors from SDK, too (I'm using the one from hg.alliedmods.net).

Any ideas? I would be very thankful!
Chrisber is offline
BAILOPAN
Join Date: Jan 2004
Old 04-18-2010 , 04:11   Re: Plugin crashes the server - how to debug?
Reply With Quote #2

Build in debug mode, attach a debugger.

If it's not building, you might want to show the errors.
__________________
egg
BAILOPAN 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 00:04.


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