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.

eggdrop 1.6.7 and 1.6.8 SEGFAULT on DEC Alpha Unix 4.0D

Old posts that have not been replied to for several years.
Locked
t
thetaphi

Post by thetaphi »

I wrote a message about this after release of eggdrop 1.6.7 but no one responded. Again:
I make eggdrop 1.6.8 and installed it. After that by starting it, it SEGFAULTS with the following:

=========================================================================================================
Eggdrop v1.6.8 (C) 1997 Robey Pointer (C) 2002 Eggheads
[10:47] * Last context: tclhash.c/217 []
[10:47] * Please REPORT this BUG!
[10:47] * Check doc/BUG-REPORT on how to do so.
[10:47] * Wrote DEBUG
[10:47] * SEGMENT VIOLATION -- CRASHING!
Segmentation fault (core dumped)
=========================================================================================================
System: DEC Alpha Unix 4.0D
Compiler: CC (no gcc available on this machine)
Tcl version: 8.3.4 (header version 8.3.4)
=========================================================================================================
% dbx eggdrop core
dbx version 3.11.10
Type 'help' for help.
Core file created by program "eggdrop"

signal Segmentation fault at >*[strstr, 0x3ff800d4270] ldq_u r3, 0(r16)
(dbx) bt
bt
^ syntax error
(dbx) q
=========================================================================================================
Debug (eggdrop v1.6.:cool: written Sun Jan 6 11:00:24 2002
Full Patch List:
STATICALLY LINKED
TCL library: /home/edvs1/uschindl/lib/tcl8.3
TCL version: 8.3.4 (header version 8.3.4)
Compile flags: cc -g -I.. -I.. -DHAVE_CONFIG_H -DSTATIC
Link flags: cc
Strip flags: strip
Context: main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
main.c/712, []
tclhash.c/217 []

SOCK ADDR PORT NICK HOST TYPE
---- -------- ----- --------- ----------------- ----

Compiled without extensive memory debugging (sorry).
Open sockets: 3 (file), done.
=========================================================================================================

Please help! Version 1.6.6 runs perfectly. 1.6.8 also works fine on Linux. I also tried to use the --disable-cc-optimization option. On another DEC machine the same thing occurs.

Uwe
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Try thr latest 1.6 development code (AKA CVS).

See the readme files with eggdrop, for information on how to obtain them.
t
thetaphi

Post by thetaphi »

A few days ago I tried the last CVS code with the same result (code from 21/01/2001)

Uwe
t
thetaphi

Post by thetaphi »

I checked the code and found the following:
After commenting out the following line in tclhash.c, function init_binds() the bot starts without the error.

add_cd_tcl_cmds(cd_cmd_table);

This command didn't appear in eggdrop 1.6.6. It seems to bind callbacks for the TCL commands "bind" and "unbind". I use TCL 8.3.4, so the following shold be incorrect and cause the SEGFAULT:

void add_cd_tcl_cmds(cd_tcl_cmd *table)
{
int *cdata;

while (table->name) {
cdata = (int *)nmalloc(sizeof(int) * 2);
clientdata_stuff += sizeof(int) * 2;
cdata[0] = (int) table->callback;
cdata[1] = (int) table->cdata;
Tcl_CreateObjCommand(interp, table->name, utf_converter, (ClientData) cdata,
cmd_delete_callback);
table++;
}
}
t
thetaphi

Post by thetaphi »

After compiling eggdrop 1.6.9 the same error occurs... Nobody has done something :sad: If someone has an idea I could test it on my machine!
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

If I could get an account to use for eggdev -- we would be better able to figure out the problem. Where did you report the problem? You should send bug reports to bugs@eggheads.org (this forum is not an official place to report bugs in eggdrop) .. if you did and we missed it, I'm sorry and hopefully it can be resolved for 1.6.10
t
thetaphi

Post by thetaphi »

I wrote this message not only to this forum even to the eggheads@eggheads.org mailing list.
I will wote a separate bug report, too.
t
thetaphi

Post by thetaphi »

The problem is solved now, It was a missing NULL in tclhash.c :smile:
Locked