This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Bot dies after 2/3 days?

General support and discussion of Eggdrop bots.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Bot dies after 2/3 days?

Post by cache »

Ok im confused here trying to find out what my problem is... Some of my bots been dropping at random fully ending the process... They'll stay up 2 to 3 days then die completly..

So I look in eggdrop log and it only shows this:

(+tnl 100) : [m/3 o/3 h/0 v/0 n/0 b/23 e/0 I/0]
[11:50] Last message repeated 3 time(s).

Then I sat in the room waiting to see what commands were causing it.... I saw 4 bots die after a chatter tried checking their weather but the weather script in fact works since people were using it before them.. so I start the bot back up, check weather it's fine.... Then I descided to remove the weather script to test that... BUT nope the bot left after someone asked the bot what water is? (ALICE Talking bot script)

Any idea where my problem is? perhaps I missed something?

Thanks
d
deadite66
Halfop
Posts: 74
Joined: Mon May 30, 2005 2:49 am
Location: Great Yarmouth, UK

Post by deadite66 »

have you tried telnetting to one of the bots?
you tend to get more info about script errors that way.
<- tcl newb
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Yeah, I watched in telnet and no errors showed :( Is there a command to type to check things??
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Also since this problem started, my eggdrop creates the file Botname.exe.stackdump ??
z
zjf
Voice
Posts: 1
Joined: Thu Mar 16, 2006 12:50 am

Hrm.

Post by zjf »

I've had a similar problem in FreeBSD 5.4-RELEASE, except mine runs for under an hour before either 1) segfaulting, 2) using a TON of RAM (so much that the computer disk thrashes), and pinging out on the server it's connected to.

it just started recently, and I have done everything I can think of: recompile from scratch, re install libraries, rerun portupgrade, etc. I can't for the life of me get this working right.

After telnetting to the bot, I get this, right before he pings out:

[23:14] *** FAILED MALLOC ./userrec.c (545) (13): Programming error
[23:14] * Memory allocation failed

which makes sense because there's no more RAM to allocate. the bot maxes out both RAM and swap, then times out because it can't allocate more.

If I didn't know any better, I'd say this bot is trying to take over the world, one computer at a time >_<
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

get rid of memory leaking scripts/modules or update them to a fixed version. we cannot fix a leaking alice module or similar.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Heres what I found in the DEBUG file:

Code: Select all

         tclhash.c/684, [Tcl proc: alice:pub_query, param:  $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
         tclhash.c/684, [Tcl proc: mess_join, param:  $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
         tclhash.c/684, [Tcl proc: incith::google::public_message, param:  $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
         tclhash.c/684, [Tcl proc: *raw:PRIVMSG, param:  $_raw1 $_raw2 $_raw3]
Since im no expert here, can anyone tell me whats wrong here or are these bugs I need to send eggheads? I don't want to send anything unless I know for sure like is it the scripts fault?

It's kinda weird tho both my bots have same things loaded on it and this problem only happens on one bot...

cache
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

This appears to be a problem regarding that AI script/module. Unload it, restart your bot and let it run to see if it crashes again.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

K Alchera, done that, now I get this error in putty:

[14:46] (!) timer drift -- spun 5 minutes

I believe that error is telling me to get more memory.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Do a forum search; that subject has been covered.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Yep I did a search and read that it can be caused by a busy pc so i'll try getting more memory to see if it helps, I have 1GB memory and only 750mb is being used - so I assume it wants more. :twisted:
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

eggdrop needs very little memory under normal circumstances especially on a *nix system. If I were you I'd be looking at scripts/modules the bot is loading or what may be running in the background that could be causing memory leaks etc. A system with 1Gb of RAM really is more than adequate.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

I'm using windrop on windows - I know CPU jumps to 100% when you check mail or browse around with the mouse then it drops real fast so maybe this might be it.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

cache wrote:I'm using windrop on windows - I know CPU jumps to 100% when you check mail or browse around with the mouse then it drops real fast so maybe this might be it.
I run Windrop also (Windows 2003 Enterprise Edition - 1Gb RAM) and have never had any problems so far. In Task Manager my eggdrop.exe is shown as using 6,424 K.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

LOL well if it helps any im running 30 eggdrop bots at 18,660k each :lol:
Post Reply