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

[CORE?] Heap Low


  
 
 
Thread Tools Display Modes
doubleM
Member
Join Date: Aug 2005
Old 11-12-2006 , 14:16   Re: [CORE?] Heap Low
#21

the bots wouldnt be a very good test would they? they dont use the big memory-eating functions just running around...

btw: ill try the new lib in a bit
doubleM is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-12-2006 , 14:35   Re: [CORE?] Heap Low
#22

Well I don't have a populated server to test this on... And they do war3x specific functions
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 11-21-2006 , 20:21   Re: [CORE?] Heap Low
#23

Okay, I found the reason behind this. It's not what you'd think. The basic cause of failure:

1. Core executes forward 'A'.
2. Forward 'A' in the plugin deletes itself. Core places the deleted information into a cache.
3. Forward 'A' does something like sets a task, or anything that causes Core to create a new forward. Core grabs the old 'A' out of the cache and puts it back into use.
4. Forward 'A' returns. Core is now accidentally reading into about a different forward's calling type. When it goes to free memory associated with each parameter, it will do so incorrectly, permanently damaging the heap.

A very simple way to reproduce this: Make a task. Kill the task inside itself. Set a new task after you kill it. Depending on usage, this has a good chance of killing the heap.

This is a pretty serious bug which has been around since 0.20. A fix is committed as revision 3150. While I'm glad to get this out of the way, I want to make sure it was the problem everyone else was experiencing.

BINARIES A FEW POSTS DOWN!
__________________
egg

Last edited by BAILOPAN; 11-22-2006 at 03:04.
BAILOPAN is offline
SpideyX3
Junior Member
Join Date: Aug 2004
Old 11-22-2006 , 01:10   Re: [CORE?] Heap Low
#24

i tried this bail and get this

Code:
L 11/21/2006 - 23:29:15: [AMXX] Displaying debug trace (plugin "war3x.amxx")
L 11/21/2006 - 23:29:15: [AMXX] Run time error 25: parameter error 
L 11/21/2006 - 23:29:15: [AMXX]    [0] language.inl::LANG_GetSkillDesc (line 155)
L 11/21/2006 - 23:29:15: [AMXX]    [1] help.inl::HELP_description_racial (line 727)
L 11/21/2006 - 23:29:15: [AMXX]    [2] help.inl::HELP_motd_target (line 246)
L 11/21/2006 - 23:29:15: [AMXX]    [3] commands.inl::Cmd_Say (line 222)
The server seems to crash after its started.
__________________
http://central-cs.net

War3x servers that share XP on all.
CS:Source Servers
DoD Servers
Regular CS Server
Check us out!
SpideyX3 is offline
BAILOPAN
Join Date: Jan 2004
Old 11-22-2006 , 01:23   Re: [CORE?] Heap Low
#25

The debug trace you gave is a bug in the plugin and unrelated to this bug report. If you want to give info to the author about this, I noticed the plugin has this line:
Code:
	log_amx( "%s", szSkillHelper );
	formatex( skill_desc, len, "%L", id, szSkillHelper );
It is trying to format a language message, but apparently the message has more fields than the plugin passes. But it's logging the language key to your AMX Mod X logs, so you should be able to corroborate timestamps to find which one.

If your server is physically crashing (i.e. Segmentation fault/Access Violation/whatnot) as a result of using this binary, it's a different story. Tell me your OS, and:
Quote:
Originally Posted by BAILOPAN
please send me your addons folder (no RARs, please) along with .sql dumps if necessary.
Since I forgot to mention it before, send anything to [email protected]
__________________
egg
BAILOPAN is offline
Locks
Senior Member
Join Date: Sep 2005
Old 11-22-2006 , 02:18   Re: [CORE?] Heap Low
#26

Hmm, this is very odd. The server seems to hang after a player attempts to join a team using this temp-fixed version.

I am running the server with the default plugins with no other custom plugins.
Locks is offline
Old 11-22-2006, 02:22
BAILOPAN
This message has been deleted by BAILOPAN.
Locks
Senior Member
Join Date: Sep 2005
Old 11-22-2006 , 02:28   Re: [CORE?] Heap Low
#27

Windows
Locks is offline
Old 11-22-2006, 03:03
BAILOPAN
This message has been deleted by BAILOPAN.
SpideyX3
Junior Member
Join Date: Aug 2004
Old 11-26-2006 , 10:13   Re: [CORE?] Heap Low
#28

yea bail i'm sure that fixed it. No problems of war3 causing that problem anymore. Just wanted to let ya know.
__________________
http://central-cs.net

War3x servers that share XP on all.
CS:Source Servers
DoD Servers
Regular CS Server
Check us out!
SpideyX3 is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-26-2006 , 15:21   Re: [CORE?] Heap Low
#29

BAIL I LOVE YOU - thanks
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 12-18-2006 , 22:41   Re: [CORE?] Heap Low
#30

No reply from original posters, assuming fixed.
__________________
egg
BAILOPAN is offline
 



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 02:25.


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