I've spent a fair amount of time searching on Google, to no avail. So far, I haven't had the time to look into the problem myself, so perhaps someone else can advise.
What happens is that most of the time, the bot will just keep running like usual, until for an unexplained reason, the bot will just crash. I haven't noticed any pattern in particular, making it even harder to pin-point the cause.
I always get the following error message in Telnet:
Code: Select all
[17:43:16] * Wrote DEBUG
[17:43:16] * SEGMENT VIOLATION -- CRASHING!
[03] [0] OK Disconnected
Code: Select all
Debug (eggdrop v1.6.21) written Mon Dec 3 17:43:15 2012
Full Patch List:
Tcl library: /usr/share/tcltk/tcl8.4
Tcl version: 8.4.19 (header version 8.4.19)
Tcl is threaded
Configure flags:
Compile flags: gcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H
Link flags: gcc
Strip flags: touch
Context: tclhash.c/710, [Tcl proc: ::AllProtection::pubms bcodes, param: $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
tclhash.c/721, []
tclhash.c/706, []
tclhash.c/710, [Tcl proc: ::AllProtection::pubms btextc, param: $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
tclhash.c/721, []
tclhash.c/706, []
tclhash.c/710, [Tcl proc: ::AllProtection::pubms btextl, param: $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
tclhash.c/721, []
tclhash.c/706, []
tclhash.c/710, [Tcl proc: ::AllProtection::pubms textc, param: $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
tclhash.c/721, []
tclhash.c/706, []
tclhash.c/710, [Tcl proc: ::AllProtection::pubms textl, param: $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
tclhash.c/721, []
tclhash.c/706, []
tclhash.c/710 [Tcl proc: ::url::check, param: $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]
<snip>
Compiled without extensive memory debugging (sorry).
Open sockets: 3 (listen), 4 (passed on), 6 (inbuf: 0085), 7, 10 (file), done.
I've set up a crontab to start the bot within 2 minutes of crashing, just in case. Nevertheless, this is mildly annoying. As everyone knows, the Eggdrop process will do nothing on IRC for a few minutes as it reconnects and rejoins channels.
As the bot is the only bot providing channel protection for over a dozen channels, including a couple large ones, I would like to fix this, if at all possible.