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 Crashes with "context: tclhash.c/688" Error

Old posts that have not been replied to for several years.
Locked
D
DiskMan
Voice
Posts: 3
Joined: Mon Dec 06, 2004 5:43 pm
Location: Kansas City
Contact:

Bot Crashes with "context: tclhash.c/688" Error

Post by DiskMan »

When ever the bot run on Undernet I receive the error below:
Last context: tclhash.c/688 []
[14:45] <Jericho> [14:45] * Please REPORT this BUG!
[14:45] <Jericho> [14:45] * Check doc/BUG-REPORT on how to do so.
[14:45] <Jericho> [14:45] * Wrote DEBUG
[14:45] <Jericho> [14:45] * SEGMENT VIOLATION -- CRASHING!
[14:45] <-- Jericho has quit (Read error: EOF from client)

I then ran the command:
gdb eggdrop -c core

And received the info below:
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "alphapca56-unknown-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `./eggdrop eggdrop.conf'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libtcl8.4.so...done.
Loaded symbols for /usr/lib/libtcl8.4.so
Reading symbols from /lib/libm.so.6.1...done.
Loaded symbols for /lib/libm.so.6.1
Reading symbols from /lib/libdl.so.2.1...done.
Loaded symbols for /lib/libdl.so.2.1
Reading symbols from /lib/libnsl.so.1.1...done.
Loaded symbols for /lib/libnsl.so.1.1
Reading symbols from /lib/libc.so.6.1...done.
Loaded symbols for /lib/libc.so.6.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /home/eggdrop/modules/dns.so...done.
Loaded symbols for /home/eggdrop/modules/dns.so
Reading symbols from /lib/libresolv.so.2.1...done.
Loaded symbols for /lib/libresolv.so.2.1
Reading symbols from /home/eggdrop/modules/channels.so...done.
Loaded symbols for /home/eggdrop/modules/channels.so
Reading symbols from /home/eggdrop/modules/server.so...done.
Loaded symbols for /home/eggdrop/modules/server.so
Reading symbols from /home/eggdrop/modules/ctcp.so...done.
Loaded symbols for /home/eggdrop/modules/ctcp.so
Reading symbols from /home/eggdrop/modules/irc.so...done.
Loaded symbols for /home/eggdrop/modules/irc.so
Reading symbols from /home/eggdrop/modules/share.so...done.
Loaded symbols for /home/eggdrop/modules/share.so
Reading symbols from /home/eggdrop/modules/transfer.so...done.
Loaded symbols for /home/eggdrop/modules/transfer.so
Reading symbols from /home/eggdrop/modules/notes.so...done.
Loaded symbols for /home/eggdrop/modules/notes.so
Reading symbols from /home/eggdrop/modules/console.so...done.
Loaded symbols for /home/eggdrop/modules/console.so
Reading symbols from /home/eggdrop/modules/blowfish.so...done.
Loaded symbols for /home/eggdrop/modules/blowfish.so
Reading symbols from /home/eggdrop/modules/wire.so...done.
Loaded symbols for /home/eggdrop/modules/wire.so
Reading symbols from /home/eggdrop/modules/uptime.so...done.
Loaded symbols for /home/eggdrop/modules/uptime.so
Reading symbols from /home/eggdrop/modules/botnetop.so...done.
Loaded symbols for /home/eggdrop/modules/botnetop.so
#0 0x000002001009b510 in strlen () from /lib/libc.so.6.1
(gdb) bt
#0 0x000002001009b510 in strlen () from /lib/libc.so.6.1
#1 0x000002001005e9c0 in vfprintf () from /lib/libc.so.6.1
#2 0x00000200100688e8 in fprintf () from /lib/libc.so.6.1
#3 0x0000020001f86f94 in write_channels () at .././channels.mod/channels.c:469
#4 0x0000020001f874d4 in channels_writeuserfile () at userchan.c:1241
#5 0x0000000120064d94 in write_userfile (idx=-1) at userrec.c:573
#6 0x000000012003d1fc in core_hourly () at ./main.c:621
#7 0x000000012003cf28 in core_secondly () at ./main.c:584
#8 0x000000012003e20c in main (argc=2, argv=0x11ffffa88) at ./main.c:948

Scripts:
# Added Scripts
source netbots/chanlimiter.tcl
source netbots/ban_channel.tcl
source netbots/sentinel.tcl
source trivia/trivia.tcl
source netbots/commands.tcl

I was running the following:
Redhat 7.2 [Alpha]
GNU gcc 3.4.3
GNU Binutils 2.15.91.0.1
GNU Make 3.80

tcl-8.4.8
tk-8.4.8

Any tips or ideas? I did a search on the net and found numerous ppl with this problem but unfortunately I didn't see any solutions...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

wrong place to report the bug; you should submit this report to the eggdrop development team - as suggested, read carefully doc/BUG-REPORT

other than that, try running the bot without any scripts and see if the problem persists
D
DiskMan
Voice
Posts: 3
Joined: Mon Dec 06, 2004 5:43 pm
Location: Kansas City
Contact:

Post by DiskMan »

I did check out the Buzilla deal for Eggdrop and couldn't find a THING that mentioned the crash, something I found 'odd' considering the large number of internet posts [google.com]

I recompiled it and found out the problem was an ban_channel script from mc_8, or something the other. Heres my core/eggdrop backtrace:

Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "alphapca56-unknown-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `./eggdrop eggdrop.conf'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libtcl8.4.so...done.
Loaded symbols for /usr/lib/libtcl8.4.so
Reading symbols from /lib/libm.so.6.1...done.
Loaded symbols for /lib/libm.so.6.1
Reading symbols from /lib/libdl.so.2.1...done.
Loaded symbols for /lib/libdl.so.2.1
Reading symbols from /lib/libnsl.so.1.1...done.
Loaded symbols for /lib/libnsl.so.1.1
Reading symbols from /lib/libc.so.6.1...done.
Loaded symbols for /lib/libc.so.6.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /home/eggdrop/modules/dns.so...done.
Loaded symbols for /home/eggdrop/modules/dns.so
Reading symbols from /lib/libresolv.so.2.1...done.
Loaded symbols for /lib/libresolv.so.2.1
Reading symbols from /home/eggdrop/modules/channels.so...done.
Loaded symbols for /home/eggdrop/modules/channels.so
Reading symbols from /home/eggdrop/modules/server.so...done.
Loaded symbols for /home/eggdrop/modules/server.so
Reading symbols from /home/eggdrop/modules/ctcp.so...done.
Loaded symbols for /home/eggdrop/modules/ctcp.so
Reading symbols from /home/eggdrop/modules/irc.so...done.
Loaded symbols for /home/eggdrop/modules/irc.so
Reading symbols from /home/eggdrop/modules/share.so...done.
Loaded symbols for /home/eggdrop/modules/share.so
Reading symbols from /home/eggdrop/modules/transfer.so...done.
Loaded symbols for /home/eggdrop/modules/transfer.so
Reading symbols from /home/eggdrop/modules/notes.so...done.
Loaded symbols for /home/eggdrop/modules/notes.so
Reading symbols from /home/eggdrop/modules/console.so...done.
Loaded symbols for /home/eggdrop/modules/console.so
Reading symbols from /home/eggdrop/modules/blowfish.so...done.
Loaded symbols for /home/eggdrop/modules/blowfish.so
Reading symbols from /home/eggdrop/modules/wire.so...done.
Loaded symbols for /home/eggdrop/modules/wire.so
Reading symbols from /home/eggdrop/modules/uptime.so...done.
Loaded symbols for /home/eggdrop/modules/uptime.so
#0 0x000002001009b510 in strlen () from /lib/libc.so.6.1
(gdb) bt
#0 0x000002001009b510 in strlen () from /lib/libc.so.6.1
#1 0x000002001005e9c0 in vfprintf () from /lib/libc.so.6.1
#2 0x00000200100688e8 in fprintf () from /lib/libc.so.6.1
#3 0x0000020001f850ac in write_channels () at .././channels.mod/channels.c:469
#4 0x0000020001f85444 in channels_writeuserfile () at userchan.c:1241
#5 0x00000001200541e0 in write_userfile (idx=-1) at userrec.c:573
#6 0x000000012001b268 in cmd_rehash (u=0x201189c0, idx=3,
par=0x1200f3bc0 "mc.ban_channel.exempt.flags") at cmds.c:1083
#7 0x000000012004761c in builtin_dcc (cd=0x12001b1c0, irp=0x120093040,
argc=537869248, argv=0x1202d06a0) at tclhash.c:661
#8 0x000000012003fe0c in utf_converter (cdata=0x1200a4b50,
myinterp=0x120093040, objc=4, objv=0x11fffe610) at tcl.c:359
#9 0x0000020000074ae4 in TclEvalObjvInternal (interp=0x120093040, objc=4,
objv=0x11fffe610, command=0x11fffe790 "*dcc:rehash $_dcc1 $_dcc2 $_dcc3",
length=32, flags=0) at ./../generic/tclBasic.c:3087
#10 0x00000200000776f8 in Tcl_EvalEx (interp=0x120093040,
script=0x11fffe790 "*dcc:rehash $_dcc1 $_dcc2 $_dcc3", numBytes=32,
flags=536864056) at ./../generic/tclBasic.c:3682
#11 0x0000020000077f9c in Tcl_Eval (interp=0x120093040,
string=0x20001f89af0 "udef-str-%s %s ") at ./../generic/tclBasic.c:3889
#12 0x0000020000078efc in Tcl_VarEvalVA (interp=0x120093040, argList=
{__base = 0x11fffe8b0, __offset = 32}) at ./../generic/tclBasic.c:5283
#13 0x0000020000078fa0 in Tcl_VarEval (arg1=0x201189c0)
---Type <return> to continue, or q <return> to quit---
at ./../generic/tclBasic.c:5314
#14 0x0000000120047808 in trigger_bind (proc=0x1200a4cb0 "*dcc:rehash",
param=0x120060e0d " $_dcc1 $_dcc2 $_dcc3") at tclhash.c:687
#15 0x0000000120047eec in check_tcl_dcc (cmd=0x11ffff241 "rehash", idx=3,
args=0x11ffff247 "") at tclhash.c:837
#16 0x00000001200259e0 in dcc_chat (idx=3, buf=0x11ffff247 "", i=7)
at dcc.c:920
#17 0x0000000120035114 in main (argc=2, argv=0x11ffffa88) at ./main.c:991

Once I removed the 'curious' ban_chan script it ran like a top! Thanks
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

AFAIK there is no Bugzilla for the eggdrop project, you submit a bug report by emailing it (formatted accordingly) to bugs@eggheads.org

and you SHOULD submit the above, every crash is an eggdrop bug, regardless of what's causing it; any script, however sh*tty it is (and we know that 90% of the scripts are pretty lame & poorly written) should never be able to crash the bot
D
DiskMan
Voice
Posts: 3
Joined: Mon Dec 06, 2004 5:43 pm
Location: Kansas City
Contact:

Post by DiskMan »

Yea, heres the link: http://www.eggheads.org/bugzilla/ ... I'll go ahead and send in the bug report and we'll see what happens. Will L G
Locked