[Pkg-tcltk-devel] Bug#488684: Bug#488684: tcl8.5: testsuite failures in db and db4.6 packages due to tclsh8.5 (GNU/kFreeBSD)

Sergei Golovan sgolovan at nes.ru
Tue Jul 1 18:56:42 UTC 2008


retitle 488684 tcl8.5: (GUN/kFreeBSD) Segfaults after [load]ing an
external library
thanks

On 6/30/08, Petr Salinger <Petr.Salinger at seznam.cz> wrote:
>
>  So the problem is in tcl8.5, unfortunately I do not speak tcl.

After some investigation I've found that indeed Tcl 8.5 have problems
on kfreebsd-i386.

Threaded tclsh8.5 segfaults on exit after loading any shared library
using [load] command. In your case it was libdb_tcl-4.6.so (Tcl
interface to BDB).

Unfortunately, it seems that the stack is corrupted during the crash,
so GDB isn't informative. It gives something like the following (and
never shows the symbols):

Core was generated by `tclsh8.5'.
Program terminated with signal 11, Segmentation fault.
[New process 100060]
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x2805b475 in ?? () from /lib/ld.so.1
#2  0x28065660 in ?? ()
#3  0x280674b8 in ?? ()
#4  0x28067748 in ?? ()
#5  0x280679d8 in ?? ()
#6  0x28067c68 in ?? ()
#7  0x281ac000 in ?? ()
#8  0x280652a0 in _rtld_global () from /lib/ld.so.1
#9  0x0807ae38 in ?? ()
#10 0x0807b0a8 in ?? ()
#11 0x0807b340 in ?? ()
#12 0x0807b5f0 in ?? ()
#13 0x08109658 in ?? ()
#14 0xbfbfdde0 in ?? ()
#15 0x2805158d in ?? () from /lib/ld.so.1
#16 0x2805b553 in ?? () from /lib/ld.so.1
#17 0x08109658 in ?? ()
#18 0x280674b8 in ?? ()
#19 0x28076d17 in ?? () from /usr/lib/libtcl8.5.so.0
#20 0x2805b51e in ?? () from /lib/ld.so.1
#21 0xbfbfdf40 in ?? ()
#22 0x280674b8 in ?? ()
#23 0x28076dd9 in ?? () from /usr/lib/libtcl8.5.so.0
#24 0x2816dff4 in ?? () from /lib/libdl.so.2
#25 0x00000000 in ?? ()
(gdb)

Both GNU/Linux and FreeBSD work fine. So, it seems to be a problem
with working with threads using glibc and kfeebsd. It seems to me that
Tcl developers don't use so unusual environment, but I'll ask them
anyway.

For now, more investigations are needed.

Cheers!
-- 
Sergei Golovan





More information about the Pkg-tcltk-devel mailing list