Overview
| Artifact ID: | e2514793c37c5333e997430114447e7777c6adbb |
|---|---|
| Ticket: | 1082283fffffffffffffffffffffffffffffffff
tcl8.4 segfaults running on linux-2.6 with SMP machines |
| User & Date: | doko on 2004-12-09 17:11:34 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
tcl8.4.7 (and current 8.4 branch) segfault when running on Linux 2.6 kernels on machines with 2 or more processors. It takes several runs to reproduce sometimes and gdb isn't very helpful. (gdb) run ./www/c_interface.tcl >c_interface.html Starting program: /home/james/scratch/tcl8.4/tcl8.4-8.4.7/unix/tclsh ./www/c_interface.tcl >c_interface.html [Thread debugging using libthread_db enabled] [New Thread 1076113536 (LWP 14342)] [New Thread 1084509104 (LWP 14343)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1076113536 (LWP 14342)] 0x4000c410 in _dl_fini () from /lib/ld-linux.so.2 (gdb) bt #0 0x4000c410 in _dl_fini () from /lib/ld-linux.so.2 #1 0x4013490f in exit () from /lib/tls/i686/cmov/libc.so.6 #2 0x40069b44 in Tcl_Exit () from /usr/lib/libtcl8.4.so.0 #3 0x4004a3b5 in Tcl_ExitObjCmd () from /usr/lib/libtcl8.4.so.0 #4 0x40044604 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0 #5 0x400451b4 in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0 #6 0x4004563b in Tcl_Eval () from /usr/lib/libtcl8.4.so.0 #7 0x4008eafe in Tcl_Main () from /usr/lib/libtcl8.4.so.0 #8 0x08048733 in main (argc=134512916, argv=0x8048114) at ../unix/tclAppInit.c:90 (gdb) Disabling TLS (LD_ASSUME_KERNEL=2.4.21) seems to 'fix' it. The problematic change appears to be this: * unix/tclUnixNotfy.c (NotifierThreadProc): Accepted Joe Mistachkin's patch for [Tcl SF Bug 990500], properly closing the notifier thread when its exits. cf. http://sourceforge.net/tracker/?group_id=10894&atid=110894&func=detail&aid=990500 If I revert that patch, I can longer reproduce the segfault, even with 10,000 iterations. See https://bugzilla.ubuntu.com/show_bug.cgi?id=4141 for the original bug report. - foundin changed to: "obsolete: 8.4.9"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "doko"
- subsystem changed to: "49. Threading"
- title changed to:
tcl8.4 segfaults running on linux-2.6 with SMP machines
- type changed to: "Bug"