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>

next in thread | raw e-mail | index | archive | help

--oLBj+sq0vYjzfsbl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=3D0x8058c80,=20
    aText=3D@0xbfbfe40c, aMaxLength=3D-1, aValidator=3D@0xbfbfe2fc)
    at
/u/anarcat/libh/compile/text+graphics/../../lib/hui/HuiTVision_InputLineW
idget.cc:149
#6  0x282bf100 in HuiTVision::InputLineWidget::InputLineWidget (
    this=3D0x806eb00, __in_chrg=3D1, aHui=3D@0x806e160, aParent=3D0xbfbfd9d=
4,=20
    aName=3D@0xbfbfe3fc, aInitialText=3D@0xbfbfe40c, aMaxLength=3D-1,=20
    aValidator=3D@0xbfbfe2fc, aTitle=3D@0xbfbfe300, aComment=3D@0xbfbfe304)
    at
/u/anarcat/libh/compile/text+graphics/../../lib/hui/HuiTVision_InputLineW
idget.cc:214
#7  0x282c11a5 in HuiTVision::GroupWidget::inputLine (this=3D0x806ec00,=20
    aName=3D@0xbfbfe3fc, aInitialText=3D@0xbfbfe40c, aMaxLength=3D-1,=20
    aValidator=3D@0xbfbfe2fc, aTitle=3D@0xbfbfe300, aPosition=3D@0xbfbfe3c0=
,=20
    aComment=3D@0xbfbfe304)
    at
/u/anarcat/libh/compile/text+graphics/../../lib/hui/HuiTVision_GroupWidge
t.cc:169
#8  0x28224f0f in Hui__GroupWidgetAccess::methodCommand_object (
    object=3D0x806ec40, method=3D0x806f620 "inputLine",
master_interpreter=3Dtrue,=20
    interp=3D0x804f200, objc=3D6, objv=3D0x807f680)
    at /u/anarcat/libh/compile/text+graphics/LibTclInterface_hui.cc:435
#9  0x28230ac1 in Hui__ContainerWidgetAccess::methodCommand_object (
    object=3D0x806ec40, method=3D0x806f620 "inputLine",
master_interpreter=3Dtrue,=20
    interp=3D0x804f200, objc=3D6, objv=3D0x807f680)
    at /u/anarcat/libh/compile/text+graphics/LibTclInterface_hui.cc:1419
#10 0x282369bd in
HuiTVision__ContainerWidgetAccess::methodCommand_object (
    object=3D0x806ec40, method=3D0x806f620 "inputLine",
master_interpreter=3Dtrue,=20
    interp=3D0x804f200, objc=3D6, objv=3D0x807f680)
    at /u/anarcat/libh/compile/text+graphics/LibTclInterface_hui.cc:2807
#11 0x28219054 in HuiTVision__ContainerWidgetAccess::methodCommand (
    obj=3D0x806ec40, interp=3D0x804f200, objc=3D6, objv=3D0x807f680)
    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=3D2, argv=3D0xbfbffb28) at tclh.cc:70
#25 0x80489cd in _start ()
(gdb)=20

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

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

    sz +=3D 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.

--oLBj+sq0vYjzfsbl
Content-Type: application/pgp-signature
Content-Disposition: inline

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

--oLBj+sq0vYjzfsbl--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message




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