public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/14659] New: task_finder2 breaks ptrace apps
@ 2012-10-03  1:09 jistone at redhat dot com
  2012-10-08 19:06 ` [Bug runtime/14659] " dsmith at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jistone at redhat dot com @ 2012-10-03  1:09 UTC (permalink / raw)
  To: systemtap


http://sourceware.org/bugzilla/show_bug.cgi?id=14659

             Bug #: 14659
           Summary: task_finder2 breaks ptrace apps
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap@sourceware.org
        ReportedBy: jistone@redhat.com
    Classification: Unclassified


I'm running on kernel 3.5.4-1.fc17.x86_64, which is utrace-free, thus using
task_finder2.  I was trying to debug a problem between stapdyn and its module,
but when certain kernel-mode stap scripts are running, dyninst is completely
disrupted.  I can reproduce this with strace too, so I think it's a conflict
with ptrace().

First the good output, then the bad stap runs:

> $ strace -e read true
> read(4, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\30B\273?\0\0\0"..., 832) = 832
> +++ exited with 0 +++


> $ stap -V
> Systemtap translator/driver (version 2.0/0.154, commit release-1.8-311-g44f25c1)
> Copyright (C) 2005-2012 Red Hat, Inc. and others
> This is free software; see the source for copying conditions.
> enabled features: AVAHI LIBRPM LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS DYNINST

> $ stap -e 'probe never{print_ubacktrace()}' -c 'strace -e read true'
> --- SIGTRAP {si_signo=SIGTRAP, si_code=0x5, si_pid=9294, si_uid=10719} ---
> --- SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} ---
> +++ killed by SIGTRAP +++
> Warning: child process exited with signal 5 (Trace/breakpoint trap)
> WARNING: /usr/local/bin/staprun exited with status: 1
> Pass 5: run failed.  Try again with another '--vp 00001' option.

> $ stap -e 'probe process.begin{next}' -c 'strace -e read true'
> +++ exited with 0 +++

The same tests work fine on 2.6.32-279.5.2.el6.x86_64, with utrace, which is
why I blamed task_finder2 in the subject.  It could also be a bug in any of the
new kernel infrastructure that task_finder2 uses though.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

end of thread, other threads:[~2012-10-11 22:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03  1:09 [Bug runtime/14659] New: task_finder2 breaks ptrace apps jistone at redhat dot com
2012-10-08 19:06 ` [Bug runtime/14659] " dsmith at redhat dot com
2012-10-08 19:26 ` jistone at redhat dot com
2012-10-08 20:43 ` dsmith at redhat dot com
2012-10-08 21:03 ` dsmith at redhat dot com
2012-10-11 15:58 ` dsmith at redhat dot com
2012-10-11 22:30 ` agentzh at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).