tcl8.4 segfaults running on linux-2.6 with SMP machines

Bug #11092 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
tcl8.4 (Debian)
Fix Released
Unknown
tcl8.4 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Automatically imported from Debian bug report #285062 http://bugs.debian.org/285062

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #285062 http://bugs.debian.org/285062

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 10 Dec 2004 13:16:23 +0100
From: Matthias Klose <email address hidden>
To: <email address hidden>
Subject: tcl8.4 segfaults running on linux-2.6 with SMP machines

Package: tcl8.4
Version: 8.4.7-1
Severity: serious
Tags: patch, upstream

tcl8.4 segfaults running on linux-2.6 with SMP machines
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.

upstream report:
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1082283&group_id=10894

patch at http://patches.ubuntulinux.org/patches/, file
http://patches.ubuntulinux.org/patches/tcl8.4_8.4.7-1.diff

Revision history for this message
In , Chris Waters (xtifr) wrote : Re: Bug#285062: tcl8.4 segfaults running on linux-2.6 with SMP machines

On Fri, Dec 10, 2004 at 01:16:23PM +0100, Matthias Klose wrote:

> If I revert that patch, I can longer reproduce the
> segfault, even with 10,000 iterations.

Ok, I'll try reverting the patch too, for now. Should have a new
upload ready by tonight or tomorrow. Thanks for the report.

cheers

--
Chris Waters | Pneumonoultra- osis is too long
<email address hidden> | microscopicsilico- to fit into a single
or <email address hidden> | volcaniconi- standalone haiku

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 11 Dec 2004 14:47:38 -0800
From: Chris Waters <email address hidden>
To: Matthias Klose <email address hidden>, <email address hidden>
Subject: Re: Bug#285062: tcl8.4 segfaults running on linux-2.6 with SMP machines

On Fri, Dec 10, 2004 at 01:16:23PM +0100, Matthias Klose wrote:

> If I revert that patch, I can longer reproduce the
> segfault, even with 10,000 iterations.

Ok, I'll try reverting the patch too, for now. Should have a new
upload ready by tonight or tomorrow. Thanks for the report.

cheers

--
Chris Waters | Pneumonoultra- osis is too long
<email address hidden> | microscopicsilico- to fit into a single
or <email address hidden> | volcaniconi- standalone haiku

Revision history for this message
In , Chris Waters (xtifr) wrote :

tags 285062 +pending
thanks

On Fri, Dec 10, 2004 at 01:16:23PM +0100, Matthias Klose wrote:

> tcl8.4 segfaults running on linux-2.6 with SMP machines

Sorry that this has taken longer than expected. Other issues
(completely unrelated to this bug) have caused some delay in preparing
a new package. However, I've got the fix checked into my local
repository, and the upload should be very soon, so I'm marking this as
pending.

cheers

--
Chris Waters | Pneumonoultra- osis is too long
<email address hidden> | microscopicsilico- to fit into a single
or <email address hidden> | volcaniconi- standalone haiku

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 14 Dec 2004 10:19:13 -0800
From: Chris Waters <email address hidden>
To: Matthias Klose <email address hidden>, <email address hidden>
Subject: Re: Bug#285062: tcl8.4 segfaults running on linux-2.6 with SMP machines

tags 285062 +pending
thanks

On Fri, Dec 10, 2004 at 01:16:23PM +0100, Matthias Klose wrote:

> tcl8.4 segfaults running on linux-2.6 with SMP machines

Sorry that this has taken longer than expected. Other issues
(completely unrelated to this bug) have caused some delay in preparing
a new package. However, I've got the fix checked into my local
repository, and the upload should be very soon, so I'm marking this as
pending.

cheers

--
Chris Waters | Pneumonoultra- osis is too long
<email address hidden> | microscopicsilico- to fit into a single
or <email address hidden> | volcaniconi- standalone haiku

Revision history for this message
In , Chris Waters (xtifr) wrote : Bug#285062: fixed in tcl8.4 8.4.9-1

Source: tcl8.4
Source-Version: 8.4.9-1

We believe that the bug you reported is fixed in the latest version of
tcl8.4, which is due to be installed in the Debian FTP archive:

tcl8.4-dev_8.4.9-1_i386.deb
  to pool/main/t/tcl8.4/tcl8.4-dev_8.4.9-1_i386.deb
tcl8.4-doc_8.4.9-1_all.deb
  to pool/main/t/tcl8.4/tcl8.4-doc_8.4.9-1_all.deb
tcl8.4_8.4.9-1.diff.gz
  to pool/main/t/tcl8.4/tcl8.4_8.4.9-1.diff.gz
tcl8.4_8.4.9-1.dsc
  to pool/main/t/tcl8.4/tcl8.4_8.4.9-1.dsc
tcl8.4_8.4.9-1_i386.deb
  to pool/main/t/tcl8.4/tcl8.4_8.4.9-1_i386.deb
tcl8.4_8.4.9.orig.tar.gz
  to pool/main/t/tcl8.4/tcl8.4_8.4.9.orig.tar.gz

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Waters <email address hidden> (supplier of updated tcl8.4 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.7
Date: Wed, 15 Dec 2004 18:48:10 -0800
Source: tcl8.4
Binary: tcl8.4-dev tcl8.4-doc tcl8.4
Architecture: source i386 all
Version: 8.4.9-1
Distribution: unstable
Urgency: low
Maintainer: Chris Waters <email address hidden>
Changed-By: Chris Waters <email address hidden>
Description:
 tcl8.4 - Tcl (the Tool Command Language) v8.4 - run-time files
 tcl8.4-dev - Tcl (the Tool Command Language) v8.4 - development files
 tcl8.4-doc - Tcl (the Tool Command Language) v8.4 - manual pages
Closes: 285062
Changes:
 tcl8.4 (8.4.9-1) unstable; urgency=low
 .
   * New upstream release.
   * Removed old patch for integer conversion on 64-bit systems, as
     upstream seems to have created their own patch, which conflicts.
   * Added a new patch (courtesy of James Troup and Ubuntu) which fixes
     crashes on SMP machines, but may introduce some resource leakage on
     very unusual apps - this is, we hope, only a temporary patch until
     upstream comes up with a better solution (closes: #285062).
   * The old mechanism for renaming the man pages no longer worked, so I
     had to create a new one.
Files:
 335fec384209c97ba8125037361c0e07 684 libs optional tcl8.4_8.4.9-1.dsc
 7e01b409925e4eb59ad44a4c12b9c681 3496364 libs optional tcl8.4_8.4.9.orig.tar.gz
 3b560fbcfe836dc73a6ec8f09783a433 18653 libs optional tcl8.4_8.4.9-1.diff.gz
 8561d57e1b9170fd57e01af84fe1d7ad 945288 doc optional tcl8.4-doc_8.4.9-1_all.deb
 26586dad04cb13279a27d1540994b1ba 1115730 interpreters optional tcl8.4_8.4.9-1_i386.deb
 46928a219028cf3f8411019feb9fa519 724610 devel optional tcl8.4-dev_8.4.9-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iQCVAwUBQcD9RDZs0/7rwRsBAQF0rwQAml5uqTqSlS19MqXKl6l7lO1Tw0o9DlbN
COZ1MHTA8DL4hw8/47cJJ19quYVLUVBS6O4nY/CuleSXfqvws672bQMnC3s6XE+9
BBURClOZzE2gGVxI8bnv0DVRRH1yhloK38Fe4a2kEtf2CQFTjhPSVpjtnzHsK0hD
l7DVi0Vr/wo=
=Y2ML
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.3 KiB)

Message-Id: <email address hidden>
Date: Thu, 16 Dec 2004 01:17:03 -0500
From: Chris Waters <email address hidden>
To: <email address hidden>
Subject: Bug#285062: fixed in tcl8.4 8.4.9-1

Source: tcl8.4
Source-Version: 8.4.9-1

We believe that the bug you reported is fixed in the latest version of
tcl8.4, which is due to be installed in the Debian FTP archive:

tcl8.4-dev_8.4.9-1_i386.deb
  to pool/main/t/tcl8.4/tcl8.4-dev_8.4.9-1_i386.deb
tcl8.4-doc_8.4.9-1_all.deb
  to pool/main/t/tcl8.4/tcl8.4-doc_8.4.9-1_all.deb
tcl8.4_8.4.9-1.diff.gz
  to pool/main/t/tcl8.4/tcl8.4_8.4.9-1.diff.gz
tcl8.4_8.4.9-1.dsc
  to pool/main/t/tcl8.4/tcl8.4_8.4.9-1.dsc
tcl8.4_8.4.9-1_i386.deb
  to pool/main/t/tcl8.4/tcl8.4_8.4.9-1_i386.deb
tcl8.4_8.4.9.orig.tar.gz
  to pool/main/t/tcl8.4/tcl8.4_8.4.9.orig.tar.gz

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Waters <email address hidden> (supplier of updated tcl8.4 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.7
Date: Wed, 15 Dec 2004 18:48:10 -0800
Source: tcl8.4
Binary: tcl8.4-dev tcl8.4-doc tcl8.4
Architecture: source i386 all
Version: 8.4.9-1
Distribution: unstable
Urgency: low
Maintainer: Chris Waters <email address hidden>
Changed-By: Chris Waters <email address hidden>
Description:
 tcl8.4 - Tcl (the Tool Command Language) v8.4 - run-time files
 tcl8.4-dev - Tcl (the Tool Command Language) v8.4 - development files
 tcl8.4-doc - Tcl (the Tool Command Language) v8.4 - manual pages
Closes: 285062
Changes:
 tcl8.4 (8.4.9-1) unstable; urgency=low
 .
   * New upstream release.
   * Removed old patch for integer conversion on 64-bit systems, as
     upstream seems to have created their own patch, which conflicts.
   * Added a new patch (courtesy of James Troup and Ubuntu) which fixes
     crashes on SMP machines, but may introduce some resource leakage on
     very unusual apps - this is, we hope, only a temporary patch until
     upstream comes up with a better solution (closes: #285062).
   * The old mechanism for renaming the man pages no longer worked, so I
     had to create a new one.
Files:
 335fec384209c97ba8125037361c0e07 684 libs optional tcl8.4_8.4.9-1.dsc
 7e01b409925e4eb59ad44a4c12b9c681 3496364 libs optional tcl8.4_8.4.9.orig.tar.gz
 3b560fbcfe836dc73a6ec8f09783a433 18653 libs optional tcl8.4_8.4.9-1.diff.gz
 8561d57e1b9170fd57e01af84fe1d7ad 945288 doc optional tcl8.4-doc_8.4.9-1_all.deb
 26586dad04cb13279a27d1540994b1ba 1115730 interpreters optional tcl8.4_8.4.9-1_i386.deb
 46928a219028cf3f8411019feb9fa519 724610 devel optional tcl8.4-dev_8.4.9-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iQCVAwUBQcD9RDZs0/7rwRsBAQF0rwQAml5uqTqSlS19MqXKl6l7lO1Tw0o9DlbN
COZ1MHTA8DL4hw8/47cJJ19quYVLUVBS6...

Read more...

Revision history for this message
Matthias Klose (doko) wrote :

fixed in hoary

Changed in tcl8.4:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.