Bug 90754 - strace -f of OpenOffice.org hangs
Summary: strace -f of OpenOffice.org hangs
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: strace
Version: 8.0
Hardware: i586
OS: Linux
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2003-05-13 13:22 UTC by Michael Meeks
Modified: 2007-04-18 16:53 UTC (History)
0 users

Clone Of:
Last Closed: 2003-06-04 18:54:10 UTC

Attachments (Terms of Use)

Description Michael Meeks 2003-05-13 13:22:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030502 Galeon/1.3.4

Description of problem:
It seems OO.o does a popen, (possibly of a non-existant binary), and this causes
'strace' to hang; NPTL not withstanding.

How reproducible: Always

to Reproduce simply do:
strace -f soffice, and wait a while.

Comment 1 Roland McGrath 2003-05-23 01:27:16 UTC
I assume the reporter meant "ooffice", not "soffice". :-)
I have reproduced this when using linuxthreads, but not when using nptl.
On my machine "LD_ASSUME_KERNEL=2.4.1 strace -f ooffice" reproduces it.
If the platform field in this report is accurate, then I think nptl will never
be used in the reporter's configuration anyway.

I'm looking into the problem.

Comment 2 Roland McGrath 2003-05-23 02:25:05 UTC
I have a fix now in the upstream sources.  FWIW, this was always broken in
strace I am pretty sure.  Perhaps scheduling happenstance made it start showing up.
The problem case is when a process has multiple live children, and then one
child exits and becomes a zombie, and then the parent calls wait*.

Comment 3 Michael Meeks 2003-05-23 07:58:13 UTC
Thanks so much for fixing this; I think you must be right, soffice is SO 6.0 on
my rh8 machine; my OO.o does no popen's so I suppose I daftly switched machine
to verify this.

Thanks again.

Comment 4 Roland McGrath 2003-06-04 18:54:10 UTC
A newer strace version is now available in rawhide.  If the binary rpms
don't work on existing systems, then recompiling from the srpm surely will.
There will be an errata release for 8.0 and 9 at some point as well,
not sure exactly when.

Thanks for the report.

Note You need to log in before you can comment on or make changes to this bug.