From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Subject: [BUG] mysterious tty deadlock
Date: Wed, 28 Aug 2002 15:01:14 -0700 [thread overview]
Message-ID: <20020828220114.GA878@holomorphy.com> (raw)
One such stuck process had the following backtrace:
#0 schedule_timeout (timeout=-150765944) at timer.c:864
#1 0xc01a28a3 in uart_wait_until_sent (tty=0xf7669000, timeout=2147483647)
at core.c:1320
#2 0xc01afca8 in tty_wait_until_sent (tty=0xf7669000, timeout=0)
at tty_ioctl.c:66
#3 0xc01b0049 in set_termios (tty=0xf7669000, arg=3221221720, opt=2)
at tty_ioctl.c:164
#4 0xc01b03dc in n_tty_ioctl (tty=0xf7669000, file=0xf716b8a0, cmd=21507,
arg=3221221720) at tty_ioctl.c:409
#5 0xc01ac3b0 in tty_ioctl (inode=0xf72b9cf4, file=0xf716b8a0, cmd=21507,
arg=3221221720) at tty_io.c:1798
#6 0xc0152cf6 in sys_ioctl (fd=0, cmd=21507, arg=3221221720) at ioctl.c:128
#7 0xc01078df in syscall_call () at process.c:982
This doesn't appear to be serial-specific. Another stuck process is:
(gdb) bt
#0 schedule_timeout (timeout=2147483647) at timer.c:836
#1 0xc01af23d in read_chan (tty=0xf73da000, file=0xf781f6a0,
buf=0xbffffd93 "", nr=1) at n_tty.c:1043
#2 0xc01aa4b6 in tty_read (file=0xf781f6a0, buf=0xbffffd93 "", count=1,
ppos=0xf781f6c0) at tty_io.c:677
#3 0xc0142e2c in vfs_read (file=0xf781f6a0, buf=0xbffffd93 "", count=1,
pos=0xf781f6c0) at read_write.c:193
#4 0xc0142ffe in sys_read (fd=0, buf=0xbffffd93 "", count=1)
at read_write.c:232
#5 0xc01078df in syscall_call () at process.c:982
It's actually possible to kick these by sending them signal-generating
characters, though the forward progress one can make this way is limited.
(1) type "ls &"
(2) This will not echo.
(3) type ^Z (^C doesn't work for some reason)
(4) "ls &" echoes
(5) no prompt appears
(6) type ^Z again
(7) the prompt doesn't appear
(8) type ^Z again
(9) the prompt appears
... this is a little oversimplified. Some pounding on the return keys is
usually also required. serial and non-serial behave identically here.
Cheers,
Bill
next reply other threads:[~2002-08-28 21:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-28 22:01 William Lee Irwin III [this message]
2002-08-28 22:25 ` Andrew Morton
2002-08-28 23:21 ` Russell King
2002-08-29 0:05 ` Andrew Morton
2002-08-29 0:20 ` Russell King
2002-09-01 2:42 ` William Lee Irwin III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020828220114.GA878@holomorphy.com \
--to=wli@holomorphy.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome