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.

DEBUG error

General support and discussion of Eggdrop bots.
Post Reply
User avatar
Amr
Halfop
Posts: 94
Joined: Fri Sep 14, 2007 7:13 am
Location: Egypt

DEBUG error

Post by Amr »

Hello , When I run my bot and only allprotection is loaded , I got this error ;

Code: Select all

Eggdrop v1.6.20 (C) 1997 Robey Pointer (C) 2010 Eggheads
[21:18:45] --- Loading eggdrop v1.6.20 (Sat May 28 2011)
[18:18:45] Listening at telnet port 15417 (all).
[18:18:45] Module loaded: dns
[18:18:45] Module loaded: channels
[18:18:45] Module loaded: server
[18:18:45] Module loaded: ctcp
[18:18:45] Module loaded: irc
[18:18:45] Module loaded: notes            (with lang support)
[18:18:45] Module loaded: console          (with lang support)
[18:18:45] Module loaded: blowfish
[18:18:45] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[18:18:45] use '.help userinfo' for commands.
[18:18:45] * Last context: tclhash.c/242 []
[18:18:45] * Please REPORT this BUG!
[18:18:45] * Check doc/BUG-REPORT on how to do so.
[18:18:45] * Wrote DEBUG
[18:18:45] * SEGMENT VIOLATION -- CRASHING!
Segmentation fault: 11 (core dumped)
And this is which inside the DEBUG file;

Code: Select all

Debug (eggdrop v1.6.20) written Sat May 28 18:18:45 2011
Full Patch List:
Tcl library: /usr/local/lib/tcl8.4
Tcl version: 8.4.19 (header version 8.4.19)
Compile flags: gcc -g -O2 -pipe -Wall -I.. -I.. -DHAVE_CONFIG_H
Link flags: gcc
Strip flags: touch
Context: main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         main.c/948, []
         tclhash.c/218, []
         tclhash.c/242 []

SOCK ADDR     PORT  NICK      HOST              TYPE
---- -------- ----- --------- ----------------- ----
3    CC2D1105 15417 (telnet)  *                 lstn  15417
4    00000000     0 (dns)                       dns   (ready)
Compiled without extensive memory debugging (sorry).
Open sockets: 3 (listen), 4 (passed on), 5 (file), done.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Please have a look at the BUG-REPORT document within the doc directory for details on a proper bug-report. Since your eggdrop did create a core-dump, please pay extra attention to paragraph 4.8:
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
$ gdb eggdrop -c core
and then enter 'bt' on gdb's command line:
(gdb) bt
Keep your core file for at least one week, so that the dev team
can ask for further information if needed. However, don't send
us the core file unless we ask for it.

NOTE: If this is a bug you can reproduce, please compile with
make debug and follow the above step. It can greatly help
find and fix the bug.
NML_375
v
vld777
Voice
Posts: 1
Joined: Tue Jun 28, 2011 12:14 am

Post by vld777 »

I have this problem too.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

@vld777:
Do you get any coredumps, or any other useful debug information?
Which version of eggdrop are you using, are any patches applied?
NML_375
z
zeol
Voice
Posts: 2
Joined: Wed Jul 13, 2011 5:00 pm

Eggdrop keeps on crashing

Post by zeol »

Hello

Unfortunately I have (probably) the same problem. I've tried eggdrop ver. 1.6.20 and 1.8 with the same result
Here is my config:

Code: Select all

uname -a 
FreeBSD kropka 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #5: Tue Jul  5 01:24:37 CEST 2011     root@kropka:/usr/obj/usr/src/sys/KROPKA  i386
Running the compiled binary gives:

Code: Select all

[kropka@kropka ~/egg2]$ ./eggdrop

Eggdrop v1.8.0+publistennoident (C) 1997 Robey Pointer (C) 2010 Eggheads
[22:51:42] --- Loading eggdrop v1.8.0+publistennoident (Wed Jul 13 2011)
[22:51:42] Listening at telnet port 13131 (bots).
[22:51:42] Listening at telnet port 12121 (users).
[22:51:42] Module loaded: blowfish
[22:51:42] Module loaded: dns
[22:51:42] Module loaded: channels
[22:51:42] Module loaded: server
[22:51:42] * Last context: tclhash.c/250 []
[22:51:42] * Please REPORT this BUG!
[22:51:42] * Check doc/BUG-REPORT on how to do so.
Segmentation fault: 11 (core dumped)
And finally gdb:

Code: Select all

gdb ./eggdrop -c eggdrop-1.8.0.core
GNU gdb 6.1.1 [FreeBSD]
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 "i386-marcel-freebsd"...

warning: core file may not match specified executable file.
Core was generated by `eggdrop-1.8.0'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libtcl85.so.1...done.
Loaded symbols for /usr/local/lib/libtcl85.so.1
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libcrypto.so.6...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /usr/lib/libssl.so.6...done.
Loaded symbols for /usr/lib/libssl.so.6
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /home/kropka/egg2/modules/blowfish.so...done.
Loaded symbols for /home/kropka/egg2/modules/blowfish.so
Reading symbols from /home/kropka/egg2/modules/dns.so...done.
Loaded symbols for /home/kropka/egg2/modules/dns.so
Reading symbols from /home/kropka/egg2/modules/channels.so...done.
Loaded symbols for /home/kropka/egg2/modules/channels.so
Reading symbols from /home/kropka/egg2/modules/server.so...done.
Loaded symbols for /home/kropka/egg2/modules/server.so
Reading symbols from /home/kropka/egg2/modules/ctcp.so...done.
Loaded symbols for /home/kropka/egg2/modules/ctcp.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  expmem_tclhash () at tclhash.c:170
170       if (tc->func_name)
[New Thread 28501140 (LWP 100136)]
(gdb) bt
#0  expmem_tclhash () at tclhash.c:170
#1  0x08072f41 in debug_mem_to_dcc (idx=-6) at mem.c:141
#2  0x0807102a in write_debug () at ./main.c:342
#3  0x0807138b in got_segv (z=11) at ./main.c:364
#4  <signal handler called>
#5  0x2847edba in strcmp () from /lib/libc.so.7
#6  0x08081581 in bind_bind_entry (tl=0x2856b5e0, flags=0x284f3123 "", cmd=0x284f3188 "CLIENTINFO",
    proc=0x2856d3d0 "*ctcp:CLIENTINFO") at tclhash.c:396
#7  0x08081810 in add_builtins (tl=0x2856b5e0, cc=0x284f45d0) at tclhash.c:1323
#8  0x284f2af8 in ctcp_start (global_funcs=0x809ce60) at .././ctcp.mod/ctcp.c:258
#9  0x08077f5e in module_load (name=0x2857f870 "ctcp") at modules.c:819
#10 0x08084b8b in tcl_loadmodule (cd=0x0, irp=0x28542400, argc=2, argv=0x2856b2c0) at tclmisc.c:555
#11 0x0807c7f7 in utf_converter (cdata=0x28506ea8, myinterp=0x28542400, objc=2, objv=0x2854e1c8) at tcl.c:358
#12 0x280fe666 in TclEvalObjvInternal () from /usr/local/lib/libtcl85.so.1
#13 0x280ff11d in TclEvalEx () from /usr/local/lib/libtcl85.so.1
#14 0x280ff5ba in Tcl_EvalEx () from /usr/local/lib/libtcl85.so.1
#15 0x2816d3a7 in Tcl_FSEvalFileEx () from /usr/local/lib/libtcl85.so.1
#16 0x2816d52c in Tcl_FSEvalFile () from /usr/local/lib/libtcl85.so.1
#17 0x2816d580 in Tcl_EvalFile () from /usr/local/lib/libtcl85.so.1
#18 0x0807b999 in readtclprog (fname=0x809cb20 "eggdrop.conf") at tcl.c:904
#19 0x0805985a in chanprog () at chanprog.c:468
#20 0x0807234b in main (arg_c=7497063, arg_v=0x70637463) at ./main.c:1081
Problems began when admin performed a system upgrade, before that I was running eggdrop on this host without problems.
If You need more info, let me know.

[/code]
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Zeol:
Most likely, your admins updated the tcl libraries to 8.5.10; unfortunately, there's a change in behaviour with the Tcl_ScanElement() and Tcl_ConvertElement() functions in 8.5.10 which breaks with eggdrop.
If you check this thread, you'll find a suggested fix for the issue.
NML_375
z
zeol
Voice
Posts: 2
Joined: Wed Jul 13, 2011 5:00 pm

Post by zeol »

nml375 wrote:Zeol:
Most likely, your admins updated the tcl libraries to 8.5.10; unfortunately, there's a change in behaviour with the Tcl_ScanElement() and Tcl_ConvertElement() functions in 8.5.10 which breaks with eggdrop.
If you check this thread, you'll find a suggested fix for the issue.
You must be definetely right :-) I've asked admin to install 8.4.19, then ran configure with pointing to older tcl headers and libraries. Now everything seems to be running without problems. Thanks for help!
Post Reply