glibc-bsd-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Glibc-bsd-hackers] tclsh (from tcl 8.4) hangs with libpth


From: Robert Millan
Subject: [Glibc-bsd-hackers] tclsh (from tcl 8.4) hangs with libpth
Date: Sat, 10 Apr 2004 17:35:25 +0200
User-agent: Mutt/1.5.5.1+cvs20040105i

Hi!

When linked with gnu pth's libpthread, tcl 8.4 won't work properly. In
particular, executing "tclsh" will produce a hang process.

$ ldd /usr/bin/tclsh
        libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x28049000)
        libdl.so.2 => /lib/libdl.so.2 (0x280f9000)
        libpthread.so.20 => /usr/lib/libpthread.so.20 (0x280fd000)
        libm.so.1 => /lib/libm.so.1 (0x28115000)
        libc.so.0.1 => /lib/libc.so.0.1 (0x28136000)
        /lib/ld.so.1 => /lib/ld.so.1 (0x00000000)

$ gdb tclsh
[...]
(gdb) r
Starting program: tclsh
[hang]
^C
Program received signal SIGINT, Interrupt.
0x281dfb47 in select () from /lib/libc.so.0.1
(gdb) bt
#0  0x281dfb47 in select () from /lib/libc.so.0.1
#1  0x280dd668 in Tcl_WaitForEvent () from /usr/lib/libtcl8.4.so.0
#2  0x28106d85 in pth_ctrl () from /usr/lib/libpthread.so.20
#3  0x2816fc9d in makecontext () from /lib/libc.so.0.1
#4  0x281093d5 in pth_mutex_acquire () from /usr/lib/libpthread.so.20
#5  0x28109b42 in pth_cond_await () from /usr/lib/libpthread.so.20
#6  0x28101f9d in pthread_cond_wait () from /usr/lib/libpthread.so.20
#7  0x280dc832 in Tcl_ConditionWait () from /usr/lib/libtcl8.4.so.0
#8  0x280dcc42 in Tcl_InitNotifier () from /usr/lib/libtcl8.4.so.0
#9  0x280b93f5 in TclInitNotifier () from /usr/lib/libtcl8.4.so.0
#10 0x28090999 in TclInitSubsystems () from /usr/lib/libtcl8.4.so.0
#11 0x2808d7a2 in Tcl_FindExecutable () from /usr/lib/libtcl8.4.so.0
#12 0x280b4d7c in Tcl_Main () from /usr/lib/libtcl8.4.so.0
#13 0x08048703 in main (argc=93, argv=0x5d) at ../unix/tclAppInit.c:90
#14 0x28147f47 in __libc_start_main () from /lib/libc.so.0.1
(gdb)

Hope it helps.

-- 
Robert Millan

"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."

 -- J.R.R.T., Ainulindale (Silmarillion)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]