This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: User application hangs with systemtap 2.3
- From: Martin Martin <martin at infinio dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 26 Sep 2013 13:02:35 -0400
- Subject: Re: User application hangs with systemtap 2.3
- Authentication-results: sourceware.org; auth=none
- References: <CAAQ0mPje4d+co1RcaqE4s-4kjhLe6fOA2jmW164McNt52hd=nw at mail dot gmail dot com>
I just realized I forgot to include the systemtap script in my last
email. Here it is:
probe process("./test").provider("nfs").mark("writeBackendFailed") {
print("Hello!\n")
}
On Thu, Sep 26, 2013 at 11:40 AM, Martin Martin <martin@infinio.com> wrote:
> Hi,
>
> I'm trying to use systemtap on Ubuntu 12.04.3 LTS, Linux kernel
> 3.5.0-40-generic. I installed systemtap from source. Currently, a
> simple DTRACE_PROBE is causing my application to hang. Here's a
> simple reproduction:
>
> $ cat test.cpp
> #include <sys/sdt.h>
> #include <iostream>
>
> using namespace std;
>
> int main() {
> cerr << "About to hit probe.\n";
> DTRACE_PROBE(nfs, writeBackendFailed);
> cerr << "Back from probe.\n";
> cerr << "This output doesn't show up.\n";
> }
>
> $ g++ -Wall -Wextra ./test.cpp -o test && sudo stap -c './test' -g temp.stp
> About to hit probe.
> Back from probe.
> [my application hangs here, then I hit Ctrl-C]
> ^CWARNING: Child process exited with signal 2 (Interrupt)
> WARNING: /usr/bin/staprun exited with status: 1
> Pass 5: run failed. [man error::pass5]
>
> What can I do to track down the problem?
>
> Here's how I installed it:
>
> sudo apt-get install elfutils linux-headers-$(uname -r)
> sudo apt-get build-dep systemtap
> wget --no-check-certificate
> https://sourceware.org/systemtap/ftp/releases/systemtap-2.3.tar.gz
> tar xavf systemtap-2.3.tar.gz
> cd systemtap-2.3 && ./configure --prefix=/usr && make all && sudo
> make install
>
> Thanks,
> Martin