Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 16:11:17 -0400
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        Libh <freebsd-libh@freebsd.org>
Subject:   more details on console_init bug
Message-ID:  <20011026161116.B11804@shall.anarcat.dyndns.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi!

I tried to debug the latest entry to the BUGS file, and stumble upon
problems using gdb on the .static file. :) I just tried again with the
*dynamic* tclh, and here are my results.

I had a more significant backtrace than last time, however, I don't
get it:

Program received signal SIGABRT, Aborted.
0x28dcd764 in kill () from /usr/lib/libc.so.4
(gdb) bt
#0  0x28dcd764 in kill () from /usr/lib/libc.so.4
#1  0x28e097b6 in abort () from /usr/lib/libc.so.4
#2  0x28c9225d in allocBlock () from /usr/local/lib/libtvision.so.0
#3  0x28c9228a in __builtin_vec_new () from
/usr/local/lib/libtvision.so.0
#4  0x28c75278 in TInputLine::TInputLine () from
/usr/local/lib/libtvision.so.0
#5  0x28318c57 in HuiTInputLine::HuiTInputLine (this=0x8058c80, 
    aText=@0xbfbfe40c, aMaxLength=-1, aValidator=@0xbfbfe2fc)
    at
/u/anarcat/libh/compile/text+graphics/../../lib/hui/HuiTVision_InputLineW
idget.cc:149
#6  0x282bf100 in HuiTVision::InputLineWidget::InputLineWidget (
    this=0x806eb00, __in_chrg=1, aHui=@0x806e160, aParent=0xbfbfd9d4, 
    aName=@0xbfbfe3fc, aInitialText=@0xbfbfe40c, aMaxLength=-1, 
    aValidator=@0xbfbfe2fc, aTitle=@0xbfbfe300, aComment=@0xbfbfe304)
    at
/u/anarcat/libh/compile/text+graphics/../../lib/hui/HuiTVision_InputLineW
idget.cc:214
#7  0x282c11a5 in HuiTVision::GroupWidget::inputLine (this=0x806ec00, 
    aName=@0xbfbfe3fc, aInitialText=@0xbfbfe40c, aMaxLength=-1, 
    aValidator=@0xbfbfe2fc, aTitle=@0xbfbfe300, aPosition=@0xbfbfe3c0, 
    aComment=@0xbfbfe304)
    at
/u/anarcat/libh/compile/text+graphics/../../lib/hui/HuiTVision_GroupWidge
t.cc:169
#8  0x28224f0f in Hui__GroupWidgetAccess::methodCommand_object (
    object=0x806ec40, method=0x806f620 "inputLine",
master_interpreter=true, 
    interp=0x804f200, objc=6, objv=0x807f680)
    at /u/anarcat/libh/compile/text+graphics/LibTclInterface_hui.cc:435
#9  0x28230ac1 in Hui__ContainerWidgetAccess::methodCommand_object (
    object=0x806ec40, method=0x806f620 "inputLine",
master_interpreter=true, 
    interp=0x804f200, objc=6, objv=0x807f680)
    at /u/anarcat/libh/compile/text+graphics/LibTclInterface_hui.cc:1419
#10 0x282369bd in
HuiTVision__ContainerWidgetAccess::methodCommand_object (
    object=0x806ec40, method=0x806f620 "inputLine",
master_interpreter=true, 
    interp=0x804f200, objc=6, objv=0x807f680)
    at /u/anarcat/libh/compile/text+graphics/LibTclInterface_hui.cc:2807
#11 0x28219054 in HuiTVision__ContainerWidgetAccess::methodCommand (
    obj=0x806ec40, interp=0x804f200, objc=6, objv=0x807f680)
    at /u/anarcat/libh/compile/text+graphics/LibTclInterface_hui.cc:2792
#12 0x28d2decc in TclObjInvoke () from /usr/local/lib/libtcl83.so
#13 0x28d52740 in TclPreventAliasLoop () from /usr/local/lib/libtcl83.so
#14 0x28d475ef in TclExecuteByteCode () from /usr/local/lib/libtcl83.so

#15 0x28d2d25f in Tcl_EvalObjEx () from /usr/local/lib/libtcl83.so
#16 0x28d6b15d in TclObjInterpProc () from /usr/local/lib/libtcl83.so
#17 0x28d475ef in TclExecuteByteCode () from /usr/local/lib/libtcl83.so
#18 0x28d2d25f in Tcl_EvalObjEx () from /usr/local/lib/libtcl83.so
#19 0x28d6b15d in TclObjInterpProc () from /usr/local/lib/libtcl83.so
#20 0x28d64320 in TclExpandTokenArray () from /usr/local/lib/libtcl83.so
#21 0x28d64a2a in Tcl_EvalEx () from /usr/local/lib/libtcl83.so
#22 0x28d5bd01 in Tcl_EvalFile () from /usr/local/lib/libtcl83.so
#23 0x28d5e8c4 in Tcl_Main () from /usr/local/lib/libtcl83.so
#24 0x8048a88 in main (argc=2, argv=0xbfbffb28) at tclh.cc:70
#25 0x80489cd in _start ()
(gdb) 

So the bug is (triggered?) in tvision. A potential suspect:

void * allocBlock( size_t sz )
{
    assert( heapcheck() >= 0 );

    sz += BLK_SIZE;

in lib/new.c. What's heapcheck? I can't seem to find it anywhere.
Internal gcc?

Anyways, this is probably not a problem in tclh...

A.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvZw2MACgkQttcWHAnWiGdA/ACfVlL47US58hJYir9Dl1N1PXNc
G+4Anj1J9/OSK4xQu/MoRBsTJwWb8n0d
=by0f
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026161116.B11804>