[Bug 1237390] Re: stap fails with 3.8 kernel in precise
** Description changed: [ Test Case ] - # echo probe timer.s(1) {exit()} | stap - + # echo 'probe timer.s(1) {printf(!)}' | stap - [ Expected Result ] script compiles and starts running. [ Actual Result ] In file included from /usr/share/systemtap/runtime/transport/transport.c:53:0, - from /usr/share/systemtap/runtime/print.c:18, - from /usr/share/systemtap/runtime/runtime.h:128, - from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:59: + from /usr/share/systemtap/runtime/print.c:18, + from /usr/share/systemtap/runtime/runtime.h:128, + from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:59: /usr/share/systemtap/runtime/transport/relay_v2.c:241:2: error: initialization from incompatible pointer type [-Werror] /usr/share/systemtap/runtime/transport/relay_v2.c:241:2: error: (near initialization for ‘__stp_relay_callbacks.create_buf_file’) [-Werror] In file included from /usr/share/systemtap/runtime/print.c:18:0, - from /usr/share/systemtap/runtime/runtime.h:128, - from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:59: + from /usr/share/systemtap/runtime/runtime.h:128, + from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:59: /usr/share/systemtap/runtime/transport/transport.c: In function ‘_stp_get_root_dir’: /usr/share/systemtap/runtime/transport/transport.c:386:8: error: ‘struct hlist_head’ has no member named ‘next’ In file included from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:61:0: /usr/share/systemtap/runtime/stat.c: In function ‘_stp_stat_get’: /usr/share/systemtap/runtime/stat.c:213:2: error: ‘cpu_possible_map’ undeclared (first use in this function) /usr/share/systemtap/runtime/stat.c:213:2: note: each undeclared identifier is reported only once for each function it appears in /usr/share/systemtap/runtime/stat.c: In function ‘_stp_stat_clear’: /usr/share/systemtap/runtime/stat.c:248:2: error: ‘cpu_possible_map’ undeclared (first use in this function) cc1: all warnings being treated as errors make[1]: *** [/tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.o] Error 1 make: *** [_module_/tmp/stapEhR7Am] Error 2 Warning: make exited with status: 2 Pass 4: compilation failed. Try again with another '--vp 0001' option. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: systemtap 1.6-1ubuntu1 ProcVersionSignature: Ubuntu 3.8.0-31.46~precise1-generic 3.8.13.8 Uname: Linux 3.8.0-31-generic x86_64 ApportVersion: 2.0.1-0ubuntu17.4 Architecture: amd64 Date: Wed Oct 9 07:55:33 2013 InstallationMedia: Ubuntu-Server 12.04.3 LTS Precise Pangolin - Release amd64 (20130820.2) MarkForUpload: True ProcEnviron: - TERM=xterm - PATH=(custom, no user) - LANG=en_US.UTF-8 - SHELL=/bin/bash + TERM=xterm + PATH=(custom, no user) + LANG=en_US.UTF-8 + SHELL=/bin/bash SourcePackage: systemtap UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1237390 Title: stap fails with 3.8 kernel in precise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1237390/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1237390] Re: stap fails with 3.8 kernel in precise
** Description changed: [ Test Case ] - # echo 'probe timer.s(1) {printf(!)}' | stap - + # echo 'probe timer.s(1) {exit();}' | stap - [ Expected Result ] - script compiles and starts running. + script compiles and starts running. exits with 0. [ Actual Result ] In file included from /usr/share/systemtap/runtime/transport/transport.c:53:0, from /usr/share/systemtap/runtime/print.c:18, from /usr/share/systemtap/runtime/runtime.h:128, from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:59: /usr/share/systemtap/runtime/transport/relay_v2.c:241:2: error: initialization from incompatible pointer type [-Werror] /usr/share/systemtap/runtime/transport/relay_v2.c:241:2: error: (near initialization for ‘__stp_relay_callbacks.create_buf_file’) [-Werror] In file included from /usr/share/systemtap/runtime/print.c:18:0, from /usr/share/systemtap/runtime/runtime.h:128, from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:59: /usr/share/systemtap/runtime/transport/transport.c: In function ‘_stp_get_root_dir’: /usr/share/systemtap/runtime/transport/transport.c:386:8: error: ‘struct hlist_head’ has no member named ‘next’ In file included from /tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.c:61:0: /usr/share/systemtap/runtime/stat.c: In function ‘_stp_stat_get’: /usr/share/systemtap/runtime/stat.c:213:2: error: ‘cpu_possible_map’ undeclared (first use in this function) /usr/share/systemtap/runtime/stat.c:213:2: note: each undeclared identifier is reported only once for each function it appears in /usr/share/systemtap/runtime/stat.c: In function ‘_stp_stat_clear’: /usr/share/systemtap/runtime/stat.c:248:2: error: ‘cpu_possible_map’ undeclared (first use in this function) cc1: all warnings being treated as errors make[1]: *** [/tmp/stapEhR7Am/stap_17350b932f2d616d597e792fa8968eb5_720.o] Error 1 make: *** [_module_/tmp/stapEhR7Am] Error 2 Warning: make exited with status: 2 Pass 4: compilation failed. Try again with another '--vp 0001' option. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: systemtap 1.6-1ubuntu1 ProcVersionSignature: Ubuntu 3.8.0-31.46~precise1-generic 3.8.13.8 Uname: Linux 3.8.0-31-generic x86_64 ApportVersion: 2.0.1-0ubuntu17.4 Architecture: amd64 Date: Wed Oct 9 07:55:33 2013 InstallationMedia: Ubuntu-Server 12.04.3 LTS Precise Pangolin - Release amd64 (20130820.2) MarkForUpload: True ProcEnviron: TERM=xterm PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: systemtap UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1237390 Title: stap fails with 3.8 kernel in precise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1237390/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1237390] Re: stap fails with 3.8 kernel in precise
This problem was fixed in upstream systemtap in commit e14ac0e274c back in Apr. 2012, and included in subsequent releases 1.8, 2.0, 2.1, 2.2, and 2.3. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1237390 Title: stap fails with 3.8 kernel in precise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1237390/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1237390] Re: stap fails with 3.8 kernel in precise
So this actually requires three patches to be backported to fix all issues: e14ac0e2 /usr/share/systemtap/runtime/stat.c:213:2: error: ‘cpu_possible_map’ undeclared (first use in this function) /usr/share/systemtap/runtime/stat.c:248:2: error: ‘cpu_possible_map’ undeclared (first use in this function) 52dea427 /usr/share/systemtap/runtime/transport/transport.c:386:8: error: ‘struct hlist_head’ has no member named ‘next’ 56111fdc /usr/share/systemtap/runtime/transport/relay_v2.c:241:2: error: (near initialization for ‘__stp_relay_callbacks.create_buf_file’) Going to do some more testing, and see how I can backport these for 1.6. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1237390 Title: stap fails with 3.8 kernel in precise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1237390/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs