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.

infinite loop after .rehash

General support and discussion of Eggdrop bots.
Post Reply
User avatar
Anahel
Halfop
Posts: 48
Joined: Fri Jul 03, 2009 6:18 pm
Location: Dom!

infinite loop after .rehash

Post by Anahel »

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: Select all

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: Select all

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.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
User avatar
Anahel
Halfop
Posts: 48
Joined: Fri Jul 03, 2009 6:18 pm
Location: Dom!

Post by Anahel »

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

Code: Select all

(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: Select all

<~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
p
pseudo
Halfop
Posts: 88
Joined: Mon Nov 23, 2009 4:52 am
Location: Bulgaria
Contact:

Re: infinite loop after .rehash

Post by pseudo »

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.
W
Whatever75
Voice
Posts: 3
Joined: Tue Nov 16, 2010 7:15 pm
Location: Finland
Contact:

Post by Whatever75 »

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 =))
t
thommey
Halfop
Posts: 76
Joined: Tue Apr 01, 2008 2:59 pm

Post by thommey »

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?
W
Whatever75
Voice
Posts: 3
Joined: Tue Nov 16, 2010 7:15 pm
Location: Finland
Contact:

Post by Whatever75 »

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!
W
Whatever75
Voice
Posts: 3
Joined: Tue Nov 16, 2010 7:15 pm
Location: Finland
Contact:

Post by Whatever75 »

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 ?]
Post Reply