mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Franco Broi <franco@robres.com.au>
To: linux-kernel@vger.kernel.org
Subject: Process hangs
Date: Wed, 27 Mar 2002 10:22:23 +0800	[thread overview]
Message-ID: <200203270220.g2R2K7t32470@mail.robres.com.au> (raw)


Hi

I'm running 2.4.18-rc4 on Alpha SMP. I'm experiencing problems with processes
which don't exit properly leaving an entry in the /proc filesystem that hangs any
process that tries to read it, ie top, ps etc.  I've seen this exact problem mentioned
on the mailing list for Intel machines so it doesn't look like an Alpha specific problem.

Strace of ps

stat("/proc/4019", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/4019/stat", O_RDONLY)       = 7
read(7, "4019 (tcsh) S 4017 4019 4019 348"..., 511) = 215
close(7)                                = 0
open("/proc/4019/statm", O_RDONLY)      = 7
read(7, "253 107 106 0 106 1 0\n", 511) = 22
close(7)                                = 0
open("/proc/4019/status", O_RDONLY)     = 7
read(7, "Name:\ttcsh\nState:\tS (sleeping)\nT"..., 511) = 456
close(7)                                = 0
open("/proc/4019/cmdline", O_RDONLY)    = 7
read(7, "-csh\0", 2047)                 = 5
close(7)                                = 0
open("/proc/4019/environ", O_RDONLY)    = -1 EACCES (Permission denied)
stat("/proc/10577", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/10577/stat", O_RDONLY)      = 7
read(7, 

hangs here.

I traced the offending process to a user program which had done a divide by zero. When I
ran the program with gdb I got a floating exception, when I ran it without gdb it hung.
I then did a few more tests using different shells and different user accounts, the results
were inconclusive. It soemtimes worked and sometimes failed.

The kernel is patched to run GFS but I don't think this is a factor.

Regards
Franco

                 reply	other threads:[~2002-03-27  2:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200203270220.g2R2K7t32470@mail.robres.com.au \
    --to=franco@robres.com.au \
    --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®