Article View: linux.debian.bugs.dist
Article #4639Bug#1154002: tcl8.6: threaded notifier futex deadlock / missed PTY EOF wakeups in expect on hppa
From: Dave Anglin
Date: Sun, 15 Nov 2026 19:50
Date: Sun, 15 Nov 2026 19:50
26 lines
3249 bytes
3249 bytes
Hi Sergei,
It turns out that --disable-threads didn't resolve the issue after all. It triggered again this
afternoon. Analysis of the strace of output of expect process and some other commands
was done by Google AI:
Dave Anglin followed up on Debian Bug #1154002 to report that even with --disable-threads
applied to tcl8.6 (8.6.18+dfsg-2), expect still experiences intermittent 300-second DejaGnu
timeouts on native PA-RISC SMP hardware (HP rp3440) [Debian Bug #1154002]. Attaching strace
to the hanging process reveals it stuck in pselect6() polling /dev/ptmx master descriptors
(32 and 33) [Debian Bug #1154002]:
pselect6(34, [32 33], [], [32 33], {tv_sec=42, tv_nsec=682563857}, NULL) = 0 (Timeout)
Inspecting /proc/27620/fd and system-wide /proc/[0-9]*/fd confirms that the child process (xgcc)
has exited and been reaped via wait4(), and zero processes hold the corresponding /dev/pts/*
slave descriptors open [Debian Bug #1154002]. Because the PTY slave is closed yet pselect6() on
the master never receives a POLLHUP or POLLIN notification, the issue appears to be a Linux
kernel PTY lost-wakeup race on SMP PA-RISC (between pty_close() and n_tty_poll()) rather than
a Tcl/Expect bug [Debian Bug #1154002].
Regards,
Dave Anglin
--
John David Anglin dave@parisc-linux.org
Technical Details
Message-ID:
<NZOoF-c6tc-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NZwBr-bWeb-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Dave Anglin <dave@parisc-linux.org> Newsgroups: linux.debian.bugs.dist,linux.debian.ports.hppa Subject: Bug#1154002: tcl8.6: threaded notifier futex deadlock / missed PTY EOF wakeups in expect on hppa Date: Sun, 15 Nov 2026 20:50:01 +0100 Message-ID: <NZOoF-c6tc-5@gated-at.bofh.it> References: <NZwBr-bWeb-1@gated-at.bofh.it> X-Original-To: 1154002@bugs.debian.org, Sergei Golovan <sgolovan@gmail.com> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 15 19:41:06 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Dave Anglin <dave@parisc-linux.org>, 1154002@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-tcltk-devel@lists.alioth.debian.org X-Debian-Pr-Message: followup 1154002 X-Debian-Pr-Package: tcl8.6 X-Debian-Pr-Source: tcl8.6 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: delayed 15226 seconds by postgrey-1.37 at buxtehude; Sun, 15 Nov 2026 19:38:56 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002815 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 26 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: HPPA porters <debian-hppa@lists.debian.org>, Helge Deller <deller@gmx.de> X-Original-Date: Sun, 15 Nov 2026 14:38:47 -0500 X-Original-Message-ID: <43105ea5-b0d8-403e-8fb2-77e06c8b7cf1@parisc-linux.org> X-Original-References: <179470264496.16146.4749258176954142012.reportbug@mx3210>