PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
'bad allocation' errors and hooks

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096
Display posts from previous:   

Author Message
taxman



Joined: 19 Apr 2006
Posts: 34

PostPosted: Tue Feb 12, 2008 8:05 am    Post subject: 'bad allocation' errors and hooks Reply with quote

<taxman> seems packet hooks corrupts memory
<OldnGrey_> they do?
<OldnGrey_> I use a lot of them without apparent problems
<taxman> i uses some hooks and receives 'bad allocation' errors with lost functionality serverside scripts after 50+ hours
<taxman> so i make autoreboot in world saver after 48 hours of uptime
<taxman> last week i implement three more hooks and receive same errors after 40-42 hours of server up Sad
<taxman> now i must restart server after 36 hours for normal work
<taxman> very sad
<taxman> from pol.log:
<taxman> [02/11 14:05:53] Exception in: scripts/ai/killPCs.ecle: bad allocation
<taxman> PC < nLines: (se+?S1399: 1399: get member id 'z' (2)
<taxman> 1400: 1400: global #3
<OldnGrey_> what was the ram allocated to pol like after that time?
<taxman> seems normal amount, near 1.3G.
<taxman> i think it is not memory leak
<taxman> it some kind of error in memory manage or something like it
<OldnGrey_> does it always happen when it reaches the same RAM amount?
<taxman> seems it alwayshappen when it reaches some uptime


any more info needed?

Author Message
coltain



Joined: 20 Mar 2007
Posts: 87
Location: Poland

PostPosted: Tue Feb 12, 2008 10:15 am    Post subject: Reply with quote

I have this same problem. I mantioned bad allocation problem couple times.

Solved it by... looping POL and writing auto - restart script (set on 10 h with some info for a player when time is near).

Author Message
taxman



Joined: 19 Apr 2006
Posts: 34

PostPosted: Tue Feb 12, 2008 11:28 am    Post subject: Reply with quote

It is not solution, it is crutches..

Author Message
qrak



Joined: 05 Feb 2006
Posts: 157
Location: Poland

PostPosted: Tue Feb 12, 2008 12:39 pm    Post subject: Reply with quote

Same problem with 097 2007-08-23 RC5 Core. It should be priority fix Smile

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 286
Location: Myrtle Beach, South Carolina

PostPosted: Tue Feb 12, 2008 1:26 pm    Post subject: Reply with quote

I think someone needs to buy Austin a six pack, lol.

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 345
Location: San Diego, California

PostPosted: Wed Feb 13, 2008 1:47 am    Post subject: Reply with quote

What OS is the server using?
What is the exact console output message when this occurs?

POL uses 'new' in C++ to allocate memory.

Author Message
qrak



Joined: 05 Feb 2006
Posts: 157
Location: Poland

PostPosted: Wed Feb 13, 2008 2:53 am    Post subject: Reply with quote

Looks like it's linux core problem only. I'm using Linux ts 2.6.9-023stab044.4-enterprise #1 SMP Thu May 24 17:41:23 MSD 2007 i686 i686 i386 GNU/Linux. Shinigami wrote that leaks are fixed but not 100% fixed :/ Similar problem here: http://forums.polserver.com/sutra9851.php

Author Message
taxman



Joined: 19 Apr 2006
Posts: 34

PostPosted: Wed Feb 13, 2008 5:32 am    Post subject: Reply with quote

Austin wrote:
What OS is the server using?
What is the exact console output message when this occurs?

Code:
Microsoft Windows 2000 [ver 5.00.2195]


Code:
Exception in: scripts/ai/killPCs.ecle: bad allocation


script may be other. When it happens again i'll post more.

Author Message
taxman



Joined: 19 Apr 2006
Posts: 34

PostPosted: Thu Feb 14, 2008 4:19 am    Post subject: Reply with quote

uptime at the moment of console screenshot is 44 hours

Code:
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: pkg/skills/fishing/fishing.eclt: bad allocation
 PC < nLines: (iguration file Exception in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SClient (Account pron, Character Kanyx) Blech! B1 message strings overflow messag
e buffer!
Exception in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SSwitching to queued data mode (1, 19 bytes)
Exception in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?Ssysload=15 (52) cputime=10828125
scpt: 425338  task: 5304(3471)  scin: 11765099  scsl: 2009146442  MOB: 14180  TLI: 110323
Client (Account pron, Character Kanyx) Blech! B1 message strings overflow message buffer!
Exception in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SClient connected from 85.238.100.1 (240 connections)
Client connected from 85.238.100.1 (241 connections)
Client disconnected from 85.238.100.1 (240 connections)
Switching to queued data mode (1, 11 bytes)
Script scripts/misc/logon.ecl running..740
Exception in: scripts/ai/spellKillPCs.eclS: bad allocation
 PC < nLines: (Exception in: scripts/ai/spellKillPCs.eclS: bad allocation
 PC < nLines: (Exception in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/spellKillPCs.eclS: bad allocation
 PC < nLines: (Exception in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SException in: pkg/skills/fishing/fishing.eclt: bad allocation
 PC < nLines: (iguration file Exception in: scripts/ai/killPCs.ecle: bad allocation
 PC < nLines: (se+?SClient (Account pron, Character Kanyx) Blech! B1 message strings overflow messag
e buffer!

Author Message
taxman



Joined: 19 Apr 2006
Posts: 34

PostPosted: Mon Feb 25, 2008 8:04 am    Post subject: Reply with quote

Austin?
:~(

Author Message
qrak



Joined: 05 Feb 2006
Posts: 157
Location: Poland

PostPosted: Mon Feb 25, 2008 11:28 am    Post subject: Reply with quote

He can't answer, his fuel C2H5OH just ran out ;d. I'm patiently waiting for answer as well as you.

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 247

PostPosted: Tue Feb 26, 2008 7:14 pm    Post subject: Reply with quote

Even if Austin has run out of fuel:

Did you ever checked your killpcs.src? What does it look like? Perhaps the problem is the script. I never had a problem on 97 with the mentioned script yet.

Author Message
taxman



Joined: 19 Apr 2006
Posts: 34

PostPosted: Wed Feb 27, 2008 4:54 am    Post subject: Reply with quote

Script does not matter. It may be any script. And if you does not restart server - this situation will affects all runing scripts with the lapse of time.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty