From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6172 invoked by alias); 18 Jul 2014 19:31:34 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 6086 invoked by uid 48); 18 Jul 2014 19:31:30 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/17181] New: systemtap has problems attaching to resumed processes Date: Fri, 18 Jul 2014 19:31:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dsmith at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q3/txt/msg00042.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17181 Bug ID: 17181 Summary: systemtap has problems attaching to resumed processes Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: dsmith at redhat dot com Systemtap will error when attempting to attach to a resumed process. This happens with "fake" utrace (seen on RHEL7 and f20). ==== # stap -v -e 'probe syscall.getpid { printf("%s\n", probefunc()) }' Pass 5: starting run. sys_getpid ERROR: utrace_set_events returned error -114 on pid 1903 WARNING: /usr/bin/staprun exited with status: 1 Pass 5: run completed in 0usr/70sys/8196real ms. Pass 5: run failed. [man error::pass5] ==== Here's how to reproduce this one: 1. Compile the following C code to 'a.out'. ==== #include #include void main() { kill(getpid(), SIGSTOP); getpid(); } ==== 2. Run 'a.out' in the background. # ./a.out & [1] 3. Execute stap command in another console. # stap -v -e 'probe syscall.getpid { printf("%s\n", probefunc()) }' 4. Resume the stopped process # kill -cont Sometimes the stopped process can get stuck in the 't' state till kill -9'd. -- You are receiving this mail because: You are the assignee for the bug.