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 

SEGMENT VIOLATION -- CRASHING!

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


Joined: 14 Aug 2012
Posts: 14

PostPosted: Fri Oct 19, 2012 7:49 am    Post subject: SEGMENT VIOLATION -- CRASHING! Reply with quote

Everything work well until
Code:

[14:23:02] * Last context: tclhash.c/721 []
[14:23:02] * Please REPORT this BUG!
[14:23:02] * Check doc/BUG-REPORT on how to do so.
[14:23:02] * Wrote DEBUG
[14:23:02] * SEGMENT VIOLATION -- CRASHING!
Connection closed by foreign host.

And this is the code
Code:

/* Set the lastbind variable before evaluating the proc so that the name
* of the command that triggered the bind will be available to the proc.
* This feature is used by scripts such as userinfo.tcl
*/
Tcl_SetVar(interp, "lastbind", (char *) mask, TCL_GLOBAL_ONLY);
x = Tcl_VarEval(interp, proc, param, NULL);
Context; //721!
if (x == TCL_ERROR) {
/* FIXME: we really should be able to log longer errors */
 putlog(LOG_MISC, "*", "Tcl error [%s]: %.*s", proc, 400, tcl_resultstring());
return BIND_EXECUTED;
}


Why is this happening?
Solutions tried:
1. http://cvs.eggheads.org/viewvc/eggdrop1.8/src/tclhash.c?r1=1.3.2.3&r2=1.3.2.4&diff_format=l
2. export MALLOC_CHECK_=4

But none did not solved my problem.
To point that is happening more frequently when more people play trivia.

And i just love this bot and trivia. Awesome work!
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Oct 19, 2012 1:19 pm    Post subject: Reply with quote

Unfortunately, this post contains no information relevant for tracking down the issue.
Please follow the instructions in the error message for a proper bug report (aka read doc/BUG-REPORT).

As for the tclhash.c/721 context; that just means this was the last Context; marker reached before the crash. Most likely, the bug is NOT related to trigger_bind, but that context is merely reported since various bindings are triggered rather often...
_________________
NML_375, idling at #eggdrop@IrcNET
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