public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /proc/<pid>/stat read hang with Mozilla in 2.4.14
@ 2001-12-06 11:05 Erland Lewin
       [not found] ` <3C0F9A53.10508@colorfullife.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Erland Lewin @ 2001-12-06 11:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ulrich Weigand, Manfred Spraul, Christian Robottom Reis

On Mon, September 3, Christian Reis wrote to linux-kernel:
> Just wondering if anybody has had moz hanging on them and hanging 'ps -ax' 
> (which means /proc/kmem reading is hung, IIRC)? This _never_ happened 
> before 2.4.9, and I do mozilla QA so I'd have seen it; i've seen all sorts 
> of crash with it :) 

On Sun, September 30, Manfred Spraul replied:
> Probably you ran into the bug Ulrich Weigand found:
> access_process_vm can deadlock, especially with multithreaded apps.
> Access_process_vm is used by /proc/*/cmdline.
> 
> It's fixed in 2.4.10.

I am seeing this problem (Mozilla hangs, then ps hangs (even a normal ps
without args)) in kernel 2.4.14 on an SMP machine (Abit BP6 mobo).
  I did an strace of ps (procps 2.0.4) which ends with:

...
stat64("/proc/8770", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/8770/stat", O_RDONLY)       = 7
read(7, > 

I can't kill the 8770 process with kill -9 8770 (the /proc/8770
directory still exists).
  I had recompiled Mozilla while a copy was running, could this have
caused the problem?
  I also get hangs reading the cmdline, environ, exe, maps, stat, statm
and status files.
  I can read the fd directory, the cpu file, the root and cwd links.
  If I try to read the mem file, I get: "cat: /proc/8770/mem: No such
process".
  There are no unusual messages in the system logs.

I guess I'll have to reboot now to make the dead Mozilla go away.
  Please CC: any replies to me, as I don't subscribe to the linux-kernel
list.

  Happy Hacking,

    Erland

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /proc/<pid>/stat read hang with Mozilla in 2.4.14
       [not found] ` <3C0F9A53.10508@colorfullife.com>
@ 2001-12-06 18:05   ` Erland Lewin
  0 siblings, 0 replies; 2+ messages in thread
From: Erland Lewin @ 2001-12-06 18:05 UTC (permalink / raw)
  To: Manfred Spraul; +Cc: linux-kernel, Ulrich Weigand, Christian Robottom Reis

I wrote of hangs reading various /proc/<pid>/files after a Mozilla
crash.

Manfred Spraul replied:
> 
> Could you check if mozilla was in the middle of a coredump? There is a
> deadlock in the coredump handler, perhaps mozilla triggered it.
> Could you search for a recent coredump file?
> 

Yes, I found a matching core dump (core.8770).
  Is there any other information I can help with?
  What is the status of the deadlock problem - has it been fixed in the
latest kernel?

> Or check if PF_DUMPCORE is set in tsk->flags. (Probably difficult
> without access to /proc/n/stat)

/Erland

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-06 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-06 11:05 /proc/<pid>/stat read hang with Mozilla in 2.4.14 Erland Lewin
     [not found] ` <3C0F9A53.10508@colorfullife.com>
2001-12-06 18:05   ` Erland Lewin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox