public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11678] New: stap -d /bin/prog --ldd doesn't pick up ld.so
@ 2010-06-09 13:20 mjw at redhat dot com
  2010-06-09 13:23 ` [Bug translator/11678] " mjw at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mjw at redhat dot com @ 2010-06-09 13:20 UTC (permalink / raw)
  To: systemtap

As can be seen in the first few syscalls captured through:

$ stap -d /bin/ls --ldd -e 'probe process.syscall {
  printf("%s:%s@0x%x %s (%d:%d)\n",
         execname(), umodname(uaddr()), uaddr(), usymname(uaddr()),
         pid(), tid()); }' -c '/bin/ls /dev/null'
/dev/null
ls:ld-2.12.so@0x33dc21622a 0x00000033dc21622a (24470:24470)
ls:ld-2.12.so@0x33dc21702a 0x00000033dc21702a (24470:24470)
ls:ld-2.12.so@0x33dc216ee7 0x00000033dc216ee7 (24470:24470)
ls:ld-2.12.so@0x33dc216e27 0x00000033dc216e27 (24470:24470)
[...]
ls:libpthread-2.12.so@0x33dd205712 __pthread_initialize_minimal (24594:24594)
ls:libpthread-2.12.so@0x33dd20577c __pthread_initialize_minimal (24594:24594)
ls:libpthread-2.12.so@0x33dd20579e __pthread_initialize_minimal (24594:24594)
ls:libpthread-2.12.so@0x33dd2057ee __pthread_initialize_minimal (24594:24594)
ls:libpthread-2.12.so@0x33dd20f55e __libc_sigaction (24594:24594)
ls:libpthread-2.12.so@0x33dd20f55e __libc_sigaction (24594:24594)
ls:libpthread-2.12.so@0x33dd2058d5 __pthread_initialize_minimal (24594:24594)
ls:libc-2.12.so@0x33dc6d8f57 getrlimit64 (24594:24594)
ls:libc-2.12.so@0x33dc6d3cc7 statfs (24594:24594)
ls:libc-2.12.so@0x33dc6d948a brk (24594:24594)
ls:libc-2.12.so@0x33dc6d948a brk (24594:24594)
ls:libc-2.12.so@0x33dc6d3fb0 __open_nocancel (24594:24594)
ls:libc-2.12.so@0x33dc6d3b24 __fxstat (24594:24594)
ls:libc-2.12.so@0x33dc6ddf9a mmap64 (24594:24594)
ls:libc-2.12.so@0x33dc62a59c _nl_load_locale_from_archive (24594:24594)
ls:libc-2.12.so@0x33dc6d8c77 tcgetattr (24594:24594)
ls:libc-2.12.so@0x33dc6d95b7 ioctl (24594:24594)
ls:libc-2.12.so@0x33dc6d3ad5 __xstat64 (24594:24594)
ls:libc-2.12.so@0x33dc6d3b75 __lxstat64 (24594:24594)
ls:libc-2.12.so@0x33dc6d3b24 __fxstat (24594:24594)
ls:libc-2.12.so@0x33dc6ddf9a mmap64 (24594:24594)
ls:libc-2.12.so@0x33dc6d4200 __write_nocancel (24594:24594)
ls:libc-2.12.so@0x33dc6d4140 __close_nocancel (24594:24594)
ls:libc-2.12.so@0x33dc6ddfc7 munmap (24594:24594)
ls:libc-2.12.so@0x33dc6d4140 __close_nocancel (24594:24594)
ls:libc-2.12.so@0x33dc6a6e28 _exit (24594:24594)

$ $ ldd /bin/ls
	linux-vdso.so.1 =>  (0x00007fff75783000)
	libselinux.so.1 => /lib64/libselinux.so.1 (0x00000033dde00000)
	librt.so.1 => /lib64/librt.so.1 (0x00000033dda00000)
	libcap.so.2 => /lib64/libcap.so.2 (0x00000034c0e00000)
	libacl.so.1 => /lib64/libacl.so.1 (0x00000034c0200000)
	libc.so.6 => /lib64/libc.so.6 (0x00000033dc600000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00000033dce00000)
	/lib64/ld-linux-x86-64.so.2 (0x00000033dc200000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00000033dd200000)
	libattr.so.1 => /lib64/libattr.so.1 (0x00000034bfe00000)

$ ls -lah /lib64/ld-linux-x86-64.so.2
lrwxrwxrwx. 1 root root 10 Jun  2 14:33 /lib64/ld-linux-x86-64.so.2 -> ld-2.12.so

-- 
           Summary: stap -d /bin/prog --ldd doesn't pick up ld.so
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11678

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/11678] stap -d /bin/prog --ldd doesn't pick up ld.so
  2010-06-09 13:20 [Bug translator/11678] New: stap -d /bin/prog --ldd doesn't pick up ld.so mjw at redhat dot com
@ 2010-06-09 13:23 ` mjw at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: mjw at redhat dot com @ 2010-06-09 13:23 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2010-06-08 11:48 -------
commit 478fda5943f78c3bcb0e58389383930430f185e6
Author: Mark Wielaard <mjw@redhat.com>
Date:   Tue Jun 8 13:32:21 2010 +0200

    PR11678 Pick up ld.so (and other absolute shlibs) through stap --ldd.
    
    * translate.cxx (add_unwindsym_ldd): Make scan slightly stricter, require
      shlib to start as absolute path and address to be hex. Also allow direct
      absolute shlib paths without soname.

$ stap -d /bin/ls --ldd -e 'probe process.syscall {
  printf("%s:%s@0x%x %s (%d:%d)\n",
         execname(), umodname(uaddr()), uaddr(), usymname(uaddr()),
         pid(), tid()); }' -c '/bin/ls /dev/null'
ls:ld-2.12.so@0x33dc21622a brk (19055:19055)
ls:ld-2.12.so@0x33dc21702a mmap64 (19055:19055)
ls:ld-2.12.so@0x33dc216ee7 __access (19055:19055)
ls:ld-2.12.so@0x33dc216e27 __open64 (19055:19055)
ls:ld-2.12.so@0x33dc216df4 __fxstat (19055:19055)
ls:ld-2.12.so@0x33dc21702a mmap64 (19055:19055)
ls:ld-2.12.so@0x33dc216e57 close (19055:19055)
ls:ld-2.12.so@0x33dc216e27 __open64 (19055:19055)
[...]

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=11678

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-08 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-09 13:20 [Bug translator/11678] New: stap -d /bin/prog --ldd doesn't pick up ld.so mjw at redhat dot com
2010-06-09 13:23 ` [Bug translator/11678] " mjw at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).