[Bug 1577579] Re: Problems on rawhide, incorrect inclusion of runtime.h

Dan Streetman dan.streetman+launchpad at canonical.com
Tue May 3 11:55:25 UTC 2016


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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemtap in Ubuntu.
https://bugs.launchpad.net/bugs/1577579

Title:
  Problems on rawhide, incorrect inclusion of runtime.h

Status in systemtap package in Ubuntu:
  New

Bug description:
  [Environment]

  - Trusty
  - Wily 

  [ Description]

  niedbalski at 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1577579/+subscriptions



More information about the foundations-bugs mailing list