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.

Keep getting segment violation

Old posts that have not been replied to for several years.
Locked
Z
Zer0Dvide
Voice
Posts: 4
Joined: Tue Mar 15, 2005 12:15 am
Location: Suriname, South America

Keep getting segment violation

Post by Zer0Dvide »

Hi there,

I keep getting this segment violation and i have the feeling i broke something. I am running Slackware Linux and i was trying to upgrade TCL to version 8.4.6 using the package management system. When i went into the bot and tried to load a module, the bot crashed. An attempt to restart the bot failed with this as the result:

[00:59] Now listening for livestats connections on port 8033
[00:59] * Last context: stats:tclstats.c/66 []
[00:59] * Please REPORT this BUG!
[00:59] * Check doc/BUG-REPORT on how to do so.
[00:59] * Wrote DEBUG
[00:59] * SEGMENT VIOLATION -- CRASHING!

I tried disabling the stats module, but that only lead to something else crashing the bot, this was the result of disabling the stats mod:

[01:23] Module loaded: gseen
[01:23] Loading language "nl" from language/gseen.nl.lang...
[01:23] * Last context: gseen:tclcmds.c/33 []
[01:23] * Please REPORT this BUG!
[01:23] * Check doc/BUG-REPORT on how to do so.
[01:23] * Wrote DEBUG
[01:23] * SEGMENT VIOLATION -- CRASHING!

So that didn't work. I took a look at the DEBUG file and this is what i came across:

Debug (eggdrop v1.6.17) written Tue Mar 15 01:00:01 2005
Full Patch List:
Tcl library: /usr/lib/tcl8.4
Tcl version: 8.4.6 (header version 8.4.6)
Compile flags: gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H
Link flags: gcc -pipe
Strip flags: touch
Context: stats:slang.c/264, []
stats:slang.c/526, []
stats:slang.c/264, []
stats:slang.c/526, []
stats:slang.c/264, []
stats:slang.c/526, []
stats:slang.c/264, []
stats:slang.c/526, []
stats:slang.c/264, []
stats:slang.c/526, []
stats:slang.c/264, []
stats:slang.c/526, []
stats:slang.c/264, []
stats:slang.c/526, []
stats:slang.c/255, []
stats:tclstats.c/66 []

SOCK ADDR PORT NICK HOST TYPE
---- -------- ----- --------- ----------------- ----
3 C0A80102 33333 (telnet) * lstn 33333
4 00000000 0 (dns) dns (ready)
5 DEADF00D 8033 livestats * lstn port

Compiled without extensive memory debugging (sorry).
Open sockets: 3 (listen), 4 (passed on), 5 (listen), 8 (file), done.

Does this make sense to anyone out there? i am completely stupified.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

recompile eggdrop
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Installation Instructions for gseen/stats.mod:
Put gseen.mod.1.1.0.tar.gz in ~/eggdrop1.6.17/src/mod/,
and unpack it (tar xfz gseen.mod.1.1.1.tar.gz). Change directory
back to ~/eggdrop1.6.17/.
Now just do what you've done when you compiled your bot:
"./configure"
"make config" (you can skip this command on eggdrop 1.4)
"make"
"make install"
don't forget to edit gseen.conf completely, and copy all the language files!
:mrgreen: happy seen'ing
Z
Zer0Dvide
Voice
Posts: 4
Joined: Tue Mar 15, 2005 12:15 am
Location: Suriname, South America

Post by Zer0Dvide »

I have to say that neither the stats nor the gseen module are the problem for that matter because i have disabled both modules in the conf file and the bot still won't start. i've recompiled many times and that didn't solve anything either. i just have the feeling that a component of the linux box is broken somehow. can someone tell me which system libs the bot uses, which system utilities and which tcl version, which components tcl relies on etc. i've been trying different stuff since last night and i honestly can't make sense of it any more.
Z
Zer0Dvide
Voice
Posts: 4
Joined: Tue Mar 15, 2005 12:15 am
Location: Suriname, South America

Post by Zer0Dvide »

I also got this output when i disabled the stats and the gseen module:

Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[07:08] --- Loading eggdrop v1.6.17 (Tue Mar 15 2005)
[07:08] Listening at telnet port 33333 (all).
[07:08] Module loaded: dns
[07:08] Module loaded: channels
[07:08] Module loaded: server
[07:08] Module loaded: ctcp
[07:08] Module loaded: irc
[07:08] Module loaded: transfer (with lang support)
[07:08] Module loaded: share
[07:08] Module loaded: compress
[07:08] Module loaded: filesys (with lang support)
[07:08] Module loaded: notes (with lang support)
[07:08] Module loaded: console (with lang support)
[07:08] Module loaded: blowfish
[07:08] Module loaded: assoc (with lang support)
[07:08] * Last context: tclhash.c/238 []
[07:08] * Please REPORT this BUG!
[07:08] * Check doc/BUG-REPORT on how to do so.
[07:08] * Wrote DEBUG
[07:08] * SEGMENT VIOLATION -- CRASHING!

As you can see, it is a different segfault altogether. this time it's in tclhash.c/238. check the DEBUG file reveals:

Debug (eggdrop v1.6.17) written Tue Mar 15 07:10:01 2005
Full Patch List:
Tcl library: /usr/lib/tcl8.4
Tcl version: 8.4.6 (header version 8.4.6)
Compile flags: gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H
Link flags: gcc -pipe
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, []
main.c/731, []
main.c/731, []
tclhash.c/216, []
tclhash.c/238 []

SOCK ADDR PORT NICK HOST TYPE
---- -------- ----- --------- ----------------- ----
3 C0A80102 33333 (telnet) * lstn 33333
4 00000000 0 (dns) dns (ready)

Compiled without extensive memory debugging (sorry).
Open sockets: 3 (listen), 4 (passed on), 7 (file), done.
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

To me it looks like it's crashing when trying to interpet one of the tcl scripts.
Try removing all of them, and then readd them one by one, to find the one causing the problems.
Z
Zer0Dvide
Voice
Posts: 4
Joined: Tue Mar 15, 2005 12:15 am
Location: Suriname, South America

Post by Zer0Dvide »

i would like to thank you all for your help. i found the problem to be a faulty megahal module. it broke somehow and caused the entire bot to halt. the thing that confused me was the fact that it kept giving different error msgs and since i am not a programmar, i didn't understand what was going on. :roll:
Locked