Problems on rawhide, incorrect inclusion of runtime.h

Bug #1577579 reported by Jorge Niedbalski
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemtap (Ubuntu)
New
Undecided
Unassigned
Nominated for Trusty by Jorge Niedbalski
Nominated for Vivid by Jorge Niedbalski
Nominated for Wily by Jorge Niedbalski
Nominated for Xenial by Jorge Niedbalski
Nominated for Yakkety by Jorge Niedbalski

Bug Description

[Environment]

- Trusty
- Wily

[ Description]

niedbalski@theos-mobile:~/src/fs$ sudo stap -v -e 'probe vfs.read {printf("read performed\n"); exit(); }'

Pass 1: parsed user script and 110 library script(s) using 105692virt/43412res/6212shr/37420data kb, in 80usr/10sys/88real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 4 embed(s), 0 global(s) using 246396virt/185356res/7448shr/178124data kb, in 1420usr/110sys/1537real ms.
Pass 3: translated to C into "/tmp/stap5MUgMO/stap_0c28290098caf602b74e30154e70b30f_1683_src.c" using 246396virt/185604res/7696shr/178124data kb, in 10usr/0sys/4real ms.
In file included from include/linux/mutex.h:15:0,
                 from /tmp/stap5MUgMO/stap_0c28290098caf602b74e30154e70b30f_1683_src.c:25:
include/linux/spinlock_types.h:55:14: error: ‘__ARCH_SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)
  .raw_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
              ^
include/linux/spinlock_types.h:79:15: note: in expansion of macro ‘__RAW_SPIN_LOCK_INITIALIZER’
  { { .rlock = __RAW_SPIN_LOCK_INITIALIZER(lockname) } }
               ^
include/linux/spinlock_types.h:82:16: note: in expansion of macro ‘__SPIN_LOCK_INITIALIZER’
  (spinlock_t ) __SPIN_LOCK_INITIALIZER(lockname)
                ^
include/linux/mutex.h:111:18: note: in expansion of macro ‘__SPIN_LOCK_UNLOCKED’
   , .wait_lock = __SPIN_LOCK_UNLOCKED(lockname.wait_lock) \
                  ^
include/linux/mutex.h:117:27: note: in expansion of macro ‘__MUTEX_INITIALIZER’
  struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
                           ^
/tmp/stap5MUgMO/stap_0c28290098caf602b74e30154e70b30f_1683_src.c:26:8: note: in expansion of macro ‘DEFINE_MUTEX’
 static DEFINE_MUTEX(module_refresh_mutex);
        ^
scripts/Makefile.build:258: recipe for target '/tmp/stap5MUgMO/stap_0c28290098caf602b74e30154e70b30f_1683_src.o' failed
make[1]: *** [/tmp/stap5MUgMO/stap_0c28290098caf602b74e30154e70b30f_1683_src.o] Error 1
Makefile:1398: recipe for target '_module_/tmp/stap5MUgMO' failed
make: *** [_module_/tmp/stap5MUgMO] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_0c28290098caf602b74e30154e70b30f_1683.ko" in 5730usr/570sys/6860real ms.
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.

[Test Case]

- $ sudo stap -v -e 'probe vfs.read {printf("read performed\n"); exit(); }'

[Regression Potential]

- Not identified

[Possible Fix]

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1240682
Commit: https://www.sourceware.org/git/gitweb.cgi?p=systemtap.git;a=commitdiff;h=320e1ecb16427b5769f0f5a097d80823ee1fb765

Revision history for this message
Dan Streetman (ddstreet) wrote :

This is a dup of bug 1545330, and should be fixed with kernel 4.4.0-10.25

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.