public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Issue 3 - ptrace06 hung for 7 hours
@ 2009-10-06 10:07 Garrett Cooper
  2009-10-06 10:43 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Garrett Cooper @ 2009-10-06 10:07 UTC (permalink / raw)
  To: LTP list

Hi all,
    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.
Thanks,
-Garrett

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] Issue 3 - ptrace06 hung for 7 hours
  2009-10-06 10:07 [LTP] Issue 3 - ptrace06 hung for 7 hours Garrett Cooper
@ 2009-10-06 10:43 ` Mike Frysinger
  2009-10-07  6:00   ` Garrett Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2009-10-06 10:43 UTC (permalink / raw)
  To: ltp-list


[-- Attachment #1.1: Type: Text/Plain, Size: 812 bytes --]

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.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 401 bytes --]

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

* Re: [LTP] Issue 3 - ptrace06 hung for 7 hours
  2009-10-06 10:43 ` Mike Frysinger
@ 2009-10-07  6:00   ` Garrett Cooper
  0 siblings, 0 replies; 3+ messages in thread
From: Garrett Cooper @ 2009-10-07  6:00 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: ltp-list

On Tue, Oct 6, 2009 at 3:43 AM, Mike Frysinger <vapier@gentoo.org> 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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2009-10-07  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-06 10:07 [LTP] Issue 3 - ptrace06 hung for 7 hours Garrett Cooper
2009-10-06 10:43 ` Mike Frysinger
2009-10-07  6:00   ` Garrett Cooper

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