User application hangs with systemtap 2.3
Martin Martin
martin@infinio.com
Thu Sep 26 17:03:00 GMT 2013
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
More information about the Systemtap
mailing list