On Tue, Oct 6, 2009 at 3:43 AM, Mike Frysinger <[email protected]> wrote:
> On Tuesday 06 October 2009 06:07:40 Garrett Cooper wrote:
>>     Ran into another issue. When I was running ptrace06 in the
>> syscalls test I noticed that it had been hung for over 7 hours -- is
>> this a known issue?
>>     strace'ing the child proc didn't help (got ENOPERM), and
>> strace'ing the parent proc returned nada. I'm going to attach gdb and
>> figure out what the issue is, but I was wondering whether or not
>> anyone else knew.
>
> you wont be able to strace the child because it's already attached with ptrace
> from the parent.  most likely the parent is sleeping and awaiting a signal
> from the child as there was some race that caused a mismatch.
>
> the test probably could do with a alarm() to prevent such hangs -- in the
> normal case, it should execute in a few seconds if that.

    Looks like it wasn't a well documented known issue:

Index: testcases/kernel/syscalls/ptrace/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/ptrace/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- testcases/kernel/syscalls/ptrace/Makefile   15 Oct 2008 17:07:36
-0000      1.6
+++ testcases/kernel/syscalls/ptrace/Makefile   7 Oct 2009 05:57:23 -0000
@@ -16,16 +16,8 @@
 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #

-SRCS    = $(wildcard *[^6].c)
-TARGETS = $(patsubst ptrace%.c,ptrace%,$(SRCS))

    I'm going to yank it from the runtest file (comment it out) and
leave a pointer back to the Makefile / this thread.
Thanks,
-Garrett

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to