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.

SEGMENT VIOLATION -- CRASHING!

General support and discussion of Eggdrop bots.
Post Reply
s
seiko
Voice
Posts: 14
Joined: Tue Aug 14, 2012 10:17 am

SEGMENT VIOLATION -- CRASHING!

Post by seiko »

Everything work well until

Code: Select all

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

/* 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 ... f_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!
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
Post Reply