libglib2.0-dev does not include GLib's systemtap probe definitions
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/
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/
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.
source: probe gobject.
Pass 2: analysis failed. Try again with another '--vp 01' option.
script was:
global alive
probe gobject.object_new {
alive[type]++
}
probe gobject.
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
ProcVersionSign
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)
Status changed to 'Confirmed' because the bug affects multiple users.