egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DEBUG error

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Sat May 28, 2011 5:25 pm    Post subject: DEBUG error Reply with quote

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


Code:
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:

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.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat May 28, 2011 5:51 pm    Post subject: Reply with quote

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:
Quote:
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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
vld777
Voice


Joined: 28 Jun 2011
Posts: 1

PostPosted: Tue Jun 28, 2011 12:16 am    Post subject: Reply with quote

I have this problem too.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jun 28, 2011 11:33 am    Post subject: Reply with quote

@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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
zeol
Voice


Joined: 13 Jul 2011
Posts: 2

PostPosted: Wed Jul 13, 2011 5:08 pm    Post subject: Eggdrop keeps on crashing Reply with quote

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:

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:

[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:

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]
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Jul 13, 2011 7:09 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
zeol
Voice


Joined: 13 Jul 2011
Posts: 2

PostPosted: Thu Jul 14, 2011 6:43 pm    Post subject: Reply with quote

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 Smile 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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber