This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

User application hangs with systemtap 2.3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]