libglib2.0-dev does not include GLib's systemtap probe definitions

Bug #1063691 reported by mspanc
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

libglib2.0-dev does not include GLib's systemtap probe definitions, so it is impossible to perform GLib debugging using systemtap.

Basically it means that /usr/share/systemtap/tapset/gobject.stp is missing (there is no package that provides such file).

On Fedora, it comes as part of glib*-devel.

Test case:

$ stap --ldd debugging/alive.stp -c 'src/myapp -c config.xml'
semantic error: probe point mismatch at position 0 (alternatives:
__nfs __scheduler __signal __tcpmib __vm _linuxmib _signal _sunrpc
_syscall _vfs begin begin(number) end end(number) error error(number)
generic ioblock ioblock_trace ioscheduler ioscheduler_trace ipmib
irq_handler kernel kprobe kprocess linuxmib module(string) nd_syscall
netdev never nfs nfsd perf process process(number) process(string)
procfs procfs(string) scheduler scsi signal socket softirq stap
staprun sunrpc syscall tcp tcpmib timer tty udp vfs vm workqueue):
identifier 'gobject' at debugging/alive.stp:2:7 while resolving probe
point gobject.object_new
        source: probe gobject.object_new {
                      ^
semantic error: probe point mismatch at position 0 (alternatives:
__nfs __scheduler __signal __tcpmib __vm _linuxmib _signal _sunrpc
_syscall _vfs begin begin(number) end end(number) error error(number)
generic ioblock ioblock_trace ioscheduler ioscheduler_trace ipmib
irq_handler kernel kprobe kprocess linuxmib module(string) nd_syscall
netdev never nfs nfsd perf process process(number) process(string)
procfs procfs(string) scheduler scsi signal socket softirq stap
staprun sunrpc syscall tcp tcpmib timer tty udp vfs vm workqueue):
identifier 'gobject' at :5:7 while resolving probe point
gobject.object_finalize
        source: probe gobject.object_finalize {
                      ^
Pass 2: analysis failed. Try again with another '--vp 01' option.

script was:

global alive
probe gobject.object_new {
 alive[type]++
}
probe gobject.object_finalize {
 alive[type]--
}
probe end {
  printf ("Alive objects: \n")
  foreach (a in alive) {
   if (alive[a] > 0)
     printf ("%d\t%s\n", alive[a], a)
  }
}

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libglib2.0-dev 2.32.3-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
Uname: Linux 3.2.0-31-generic i686
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
Date: Mon Oct 8 12:52:35 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
SourcePackage: glib2.0
UpgradeStatus: Upgraded to precise on 2012-07-16 (83 days ago)

Revision history for this message
mspanc (mspanc) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glib2.0 (Ubuntu):
status: New → Confirmed
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.