egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

infinite loop after .rehash

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Anahel
Halfop


Joined: 03 Jul 2009
Posts: 48
Location: Dom!

PostPosted: Tue Nov 16, 2010 3:46 pm    Post subject: infinite loop after .rehash Reply with quote

After i do .rehash in party bot start reloading scripts and only i can do is to kill it using kill -9, i've no idea what's causing it (i think it's one of the scripts) but i used them on other host (today i moved my bot to new shell) and they worked fine.

my bot:

eggdrop v1.6.20, on Linux 2.6.34.6-xxxx-grs-ipv6-64

tcl:

Code:
Tcl library: /usr/share/tcltk/tcl8.5
Tcl version: 8.5.8 (header version 8.5.8)
Tcl is threaded.
TLS support is enabled.


here's list of my scripts:

Code:
source scripts/http.tcl
source scripts/useragent.tcl
source scripts/fsck.tcl
#source scripts/ac_token.tcl
#source scripts/bseen.tcl
source scripts/entscheider.tcl
source scripts/fml.tcl
source scripts/imdb.tcl
source scripts/incith-exchange.tcl
source scripts/incith-forum.tcl
source scripts/incith-google.tcl
source scripts/incith-weather.tcl
source scripts/incith-xrl.tcl
source scripts/lastspoke_evolved.tcl
source scripts/LastXDCC.tcl
source scripts/rss-synd.tcl
source scripts/rules.tcl
source scripts/SA_urltitle.tcl
source scripts/statistics.tcl
source scripts/train.tcl
source scripts/tvrage.tcl
source scripts/urbandict.tcl
source scripts/webby.tcl


i removed from perpleXa's fsck.tcl part about autoloading scripts.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Nov 16, 2010 4:00 pm    Post subject: Reply with quote

Hard to tell.

Try this;
Disable all scripts, and restart your eggdrop.
Then add one script at a time and restart/rehash a few times. When your eggdrop freezes again, then you've found the script responsible..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Anahel
Halfop


Joined: 03 Jul 2009
Posts: 48
Location: Dom!

PostPosted: Tue Nov 16, 2010 4:37 pm    Post subject: Reply with quote

i left bot to kill itself after infinite loop and i get this error:

Code:
(Nekomimi) [21:23:29] too many nested evaluations (infinite loop?)
(Nekomimi)     while executing
(Nekomimi) "dict exists $TimeZoneBad $timezone"
(Nekomimi)     (procedure "GetSystemTimeZone" line 21)
(Nekomimi)     invoked from within
(Nekomimi) "GetSystemTimeZone"
(Nekomimi)     (procedure "::tcl::clock::format" line 13)
(Nekomimi)     invoked from within
(Nekomimi) "clock format [clock seconds] -format "%m/%d/%y""
(Nekomimi)     (procedure "updateCache" line 4)
(Nekomimi)     invoked from within
(Nekomimi) "updateCache 1 2 3 4 5"
(Nekomimi)     (procedure "init" line 21)
(Nekomimi)     invoked from within
(Nekomimi) "init"
(Nekomimi)     (in namespace eval "::http:


or

Code:
<~tomek> (Nekomimi) [21:11:46] too many nested evaluations (infinite loop?)
(Nekomimi)     while executing
(Nekomimi) "dict exists $TimeZoneBad $timezone"
(Nekomimi)     (procedure "GetSystemTimeZone" line 21)
(Nekomimi)     invoked from within
(Nekomimi) "GetSystemTimeZone"
(Nekomimi)     (procedure "::tcl::clock::format" line 13)
(Nekomimi)     invoked from within
(Nekomimi) "clock format [clock seconds] -format "%m/%d/%y""
(Nekomimi)     (procedure "updateCache" line 4)
(Nekomimi)     invoked from within
(Nekomimi) "updateCache 1 2 3 4 5"
(Nekomimi)     (procedure "init" line 21)
(Nekomimi)     invoked from within
(Nekomimi) "init"
(Nekomimi)     (in namespace eval "::http:


and it was caused by tvrage script -_-

my friend said it was "dict" module fault
Back to top
View user's profile Send private message
pseudo
Halfop


Joined: 23 Nov 2009
Posts: 88
Location: Bulgaria

PostPosted: Tue Nov 16, 2010 6:36 pm    Post subject: Re: infinite loop after .rehash Reply with quote

Before we begin, give us correct information. You're not running 1.6.20 - that's a late 1.8. In your next post, I'd like to see the real version string, as reported by status. You should also try to reproduce this on the real 1.6.20 and report the result.
Back to top
View user's profile Send private message Visit poster's website
Whatever75
Voice


Joined: 16 Nov 2010
Posts: 3
Location: Finland

PostPosted: Wed Nov 17, 2010 3:30 am    Post subject: Reply with quote

I have exactly same problem! I had to remove about 10 scripts until .rehash went normally again. Can't understand why this is happening, if anyone have any ideas feel free to share.

(And sorry about my bad english - I'm from Finland, hope you got my point anyway =))
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
thommey
Halfop


Joined: 01 Apr 2008
Posts: 73

PostPosted: Wed Nov 17, 2010 9:45 am    Post subject: Reply with quote

Anahel: Somewhere in that tvrage.tcl I assume there's a line that just says "init" (somewhere at the bottom). Try to replace that by "after 1 init" and tell us if that fixes the issue please.

Whatever75: Which script causes it for you?
Back to top
View user's profile Send private message
Whatever75
Voice


Joined: 16 Nov 2010
Posts: 3
Location: Finland

PostPosted: Wed Nov 17, 2010 3:23 pm    Post subject: Reply with quote

thommey wrote:
Whatever75: Which script causes it for you?


Several scripts in fact, first I noticed that tproggis.tcl caused that .rehash problem, so I removed it and though that now everything is gonna be fine, but alas, after that I noticed that saatanaan.tcl did the same thing.
And there may be even more of those, I had to commented out pretty much of scripts because of that problem.

If interested, you can find those two scripts from http://cell.cubicle.fi/scripts/ so if you have time to check those out and figure out what's the problem that would be great!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Whatever75
Voice


Joined: 16 Nov 2010
Posts: 3
Location: Finland

PostPosted: Thu Nov 18, 2010 5:38 pm    Post subject: Reply with quote

Any1? This is really frustrating problem, because now I can't use some of my most important scripts!
Users of #channel keep complaining because of situation, I really need someone to help me out on this one =(

Btw I personally don't think that those scripts are the real problem here, because these scripts are so different and all, .rehash just goes to infinite loop until eggdrop crashes - really annoying.

Sorry about all the rant but that just drives me crazy..

[edit: Could it possibly be some problem with cellgen.tcl, I looked some debugging logs and someway seems like .rehash and script-autoupdate features just doesn't work quite right on some occasions? Is celltools 2.51 latest version of cellgen.tcl ?]
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber