mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Process hangs
@ 2002-03-27  2:22 Franco Broi
  0 siblings, 0 replies; only message in thread
From: Franco Broi @ 2002-03-27  2:22 UTC (permalink / raw)
  To: linux-kernel


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-27  2:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-27  2:22 Process hangs Franco Broi

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®