Bugs: BUG with tclhash.c/684

Radi Dochev pagubg at gmail.com
Sun May 25 09:28:22 CST 2008


1.1) Eggdrop version:
     1.6.19
1.2) Make type:
     (*) dynamic
     ( ) static
     ( ) debug
     ( ) sdebug
1.3) List of any options passed to ./configure:
--prefix=/path/to/install
1.4) List of patches and/or modules you use: NONE
2.1) Tcl library version:
     ( ) 7.0
     ( ) 7.1
     ( ) 7.2
     ( ) 7.3
     ( ) 7.4
     ( ) 7.5
     ( ) 7.6
     ( ) 8.0
     ( ) 8.1
     ( ) 8.2
     ( ) 8.3
     ( ) 8.4
     (*) 8.5
     ( ) Other - Which? ____
2.2) Tcl library patchlevel: ___
  eg; p1, p2, etc for Tcl versions up to 8.0p2
      or the 3rd part of the version number for 8.0.3 and newer

2.3) Tcl scripts used:
     [ ] alltools
     [ ] sentinel
     [ ] getops
     [ ] others - Please mention all others: xchannel.tcl
3) INFORMATION ABOUT THE OS

3.1) OS type:
     ( ) BeOS
     ( ) BSD/OS
     ( ) Cygwin
     ( ) Darwin/Mac OS X
     ( ) Dell SVR4
     (*) FreeBSD
     ( ) HP-UX
     ( ) IRIX
     ( ) Linux
     ( ) Lynx
     ( ) NetBSD
     ( ) NeXT
     ( ) OpenBSD
     ( ) OSF/Tru64
     ( ) QNX
     ( ) SINIX
     ( ) Solaris/SunOS
     ( ) Ultrix
     ( ) Other - Which? _____________

3.2) OS Version/Release: 7.0-RELEASE

4.1) The logged last context (example: Last context: userent.c/973 []):
[17:47] * Last context: tclhash.c/684 [Tcl proc: source
$::xchannel::script;#, param:  $_event1]
[17:47] * Please REPORT this BUG!
[17:47] * Check doc/BUG-REPORT on how to do so.
[17:47] * Wrote DEBUG
[17:47] * SEGMENT VIOLATION -- CRASHING!

4.2) If the bot wrote to the file DEBUG, copy the text -contents- of
     that file here (NOTE: It should be about 20 lines of info, but it
     could be a few lines more):
Debug (eggdrop v1.6.19) written Sun May 25 18:21:31 2008
Full Patch List:
Tcl library: /usr/local/lib/tcl8.5
Tcl version: 8.5.2 (header version 8.5.2)
Compile flags: gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -g3
-DDEBUG_ASSERT -DDEBUG_MEM
Link flags: gcc -pipe -g
Strip flags: touch
Context: main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         main.c/731, []
         tclhash.c/216, []
         tclhash.c/238, []
         tclhash.c/680, []
         tclhash.c/684 [Tcl proc: source $::xchannel::script;#, param:
$_event1]

SOCK ADDR     PORT  NICK      HOST              TYPE
---- -------- ----- --------- ----------------- ----
3    5050923A  4242 (telnet)  *                 lstn  4242
5    5050923A  4361 Woman     ip.address.hidden      conn  bot

File 'language.c' accounted for 30588/30588 (ok)
File 'chanprog.c' accounted for 0/0 (ok)
File 'misc.c    ' accounted for 16556/16556 (ok)
File 'userrec.c ' accounted for 17370/17370 (ok)
File 'net.c     ' accounted for 0/0 (ok)
File 'dccutil.c ' accounted for 23356/23356 (ok)
File 'botnet.c  ' accounted for 3200/3200 (ok)
File 'tcl.c     ' accounted for 10924/10924 (ok)
File 'tclhash.c ' accounted for 31850/31850 (ok)
File 'tclmisc.c ' accounted for 19/19 (ok)
File 'modules.c ' accounted for 1925/1925 (ok)
File 'tcldcc.c  ' accounted for 16/16 (ok)
File 'dns.c     ' accounted for 0/0 (ok)
Module 'wire      ' accounted for 0/0 (ok)
Module 'assoc     ' accounted for 0/0 (ok)
Module 'encryption' accounted for 0/0 (ok)
Module 'console   ' accounted for 0/0 (ok)
Module 'notes     ' accounted for 0/0 (ok)
Module 'filesys   ' accounted for 0/0 (ok)
Module 'compress  ' accounted for 0/0 (ok)
Module 'share     ' accounted for 96/96 (ok)
Module 'transfer  ' accounted for 0/0 (ok)
Module 'irc       ' accounted for 0/0 (ok)
Module 'ctcp      ' accounted for 0/0 (ok)
Module 'server    ' accounted for 49/49 (ok)

4.3) Your comments and a description of the bug: It happens only when i load
xchannel.tcl version 4.2. I am going to downgrade the tcl version to 8.4 and
hope there is no bug.

4.4) Can you cause the bug condition to repeat? If so, please outline
     step by step what causes the error:

4.5) Do you have ideas on what is wrong that causes this error?
     Please list them:

4.6) Do you have ideas on how to correct it?  Please list them:

4.7) Other comments?

4.8) If the bot dumped a 'core' file when it crashed, it would be *very*
     useful if you could paste gdb's output during the following steps:
     First call gdb

warning: core file may not match specified executable file.
Core was generated by `eggdrop-1.6.19'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libtcl85.so...done.
Loaded symbols for /usr/local/lib/libtcl85.so
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/home/pagu/p1/modules/channels.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/channels.so
Reading symbols from /usr/home/pagu/p1/modules/server.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/server.so
Reading symbols from /usr/home/pagu/p1/modules/ctcp.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/ctcp.so
Reading symbols from /usr/home/pagu/p1/modules/irc.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/irc.so
Reading symbols from /usr/home/pagu/p1/modules/transfer.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/transfer.so
Reading symbols from /usr/home/pagu/p1/modules/share.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/share.so
Reading symbols from /usr/home/pagu/p1/modules/compress.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/compress.so
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/home/pagu/p1/modules/filesys.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/filesys.so
Reading symbols from /usr/home/pagu/p1/modules/notes.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/notes.so
Reading symbols from /usr/home/pagu/p1/modules/console.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/console.so
Reading symbols from /usr/home/pagu/p1/modules/blowfish.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/blowfish.so
Reading symbols from /usr/home/pagu/p1/modules/assoc.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/assoc.so
Reading symbols from /usr/home/pagu/p1/modules/wire.so...done.
Loaded symbols for /usr/home/pagu/p1/modules/wire.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000800ad2f32 in strlen () from /lib/libc.so.7

  (gdb) bt
#0  0x0000000800ad2f32 in strlen () from /lib/libc.so.7
#1  0x0000000800e0465f in ?? () from /usr/home/pagu/p1/modules/channels.so
#2  0x0000000000427639 in debug_mem_to_dcc (idx=-7) at mem.c:269
#3  0x0000000000426a8c in write_debug () at ./main.c:315
#4  0x0000000000426d0b in got_segv (z=Variable "z" is not available.
) at ./main.c:340
#5  <signal handler called>
#6  0x000000080076e532 in Tcl_SplitList () from /usr/local/lib/libtcl85.so
#7  0x0000000800e169f1 in tcl_channel (cd=Variable "cd" is not available.
) at tclchan.c:1027
#8  0x0000000000430308 in utf_converter (cdata=0x800d9db80,
myinterp=0x800d25000, objc=4, objv=Variable "objv" is not available.
) at tcl.c:352
#9  0x00000008006b8412 in TclEvalObjvInternal () from
/usr/local/lib/libtcl85.so
#10 0x000000080070a085 in TclExecuteByteCode () from
/usr/local/lib/libtcl85.so
#11 0x0000000800752410 in TclObjInterpProcCore () from
/usr/local/lib/libtcl85.so
#12 0x00000008006b8412 in TclEvalObjvInternal () from
/usr/local/lib/libtcl85.so
#13 0x000000080070a085 in TclExecuteByteCode () from
/usr/local/lib/libtcl85.so
#14 0x0000000800710d0e in TclCompEvalObj () from /usr/local/lib/libtcl85.so
#15 0x00000008006b99ef in TclEvalObjEx () from /usr/local/lib/libtcl85.so
#16 0x00000008006c305f in Tcl_ForeachObjCmd () from
/usr/local/lib/libtcl85.so
#17 0x00000008006b8412 in TclEvalObjvInternal () from
/usr/local/lib/libtcl85.so
#18 0x000000080070a085 in TclExecuteByteCode () from
/usr/local/lib/libtcl85.so
#19 0x0000000800710d0e in TclCompEvalObj () from /usr/local/lib/libtcl85.so
#20 0x00000008006b99ef in TclEvalObjEx () from /usr/local/lib/libtcl85.so
#21 0x000000080073ef01 in NamespaceEvalCmd () from
/usr/local/lib/libtcl85.so
#22 0x000000080073fce0 in Tcl_NamespaceObjCmd () from
/usr/local/lib/libtcl85.so
#23 0x00000008006b8412 in TclEvalObjvInternal () from
/usr/local/lib/libtcl85.so
#24 0x00000008006b8c2c in TclEvalEx () from /usr/local/lib/libtcl85.so
#25 0x0000000800730b03 in Tcl_FSEvalFileEx () from
/usr/local/lib/libtcl85.so
#26 0x00000008006d1425 in Tcl_SourceObjCmd () from
/usr/local/lib/libtcl85.so
#27 0x00000008006b8412 in TclEvalObjvInternal () from
/usr/local/lib/libtcl85.so
#28 0x00000008006b8c2c in TclEvalEx () from /usr/local/lib/libtcl85.so
#29 0x00000008006b95ed in Tcl_Eval () from /usr/local/lib/libtcl85.so
#30 0x00000008006b96c7 in Tcl_VarEvalVA () from /usr/local/lib/libtcl85.so
#31 0x00000008006b976a in Tcl_VarEval () from /usr/local/lib/libtcl85.so
#32 0x00000000004353f7 in check_tcl_bind (tl=0x800d6e780, match=0x4435b2
"loaded", atr=0x0, param=0x4498e1 " $_event1", match_type=Variable
"match_type" is not available.
) at tclhash.c:694
#33 0x0000000000425beb in main (argc=2, argv=0x7fffffffec18) at ./main.c:931



More information about the Bugs mailing list