public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/10323] New: some ustack exelib.exp tests fail with prelinked shared libs
@ 2009-06-24 10:19 mjw at redhat dot com
  2009-06-25 21:17 ` [Bug runtime/10323] " mjw at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mjw at redhat dot com @ 2009-06-24 10:19 UTC (permalink / raw)
  To: systemtap

Seems we are not fetching the unwind tables correctly in some prelinked scenarios.

Example failure case:

sourcing: /home/mark/src/systemtap/testsuite/systemtap.exelib/ustack.tcl for
uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_uprobeslibgcc-O0default-prelink-debug
Running: stap -DMAXSTRINGLEN=133
/home/mark/src/systemtap/testsuite/systemtap.exelib/ustack.stp
./uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe
./libuprobeslibgcc-O0default-prelink-debug.so -c
./uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe
print_ubacktrace exe 0
 0x00000000004005ed : main_func+0x1/0x53
[/home/mark/src/systemtap/testsuite/uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe]
 0x0000000000400666 : main+0x27/0x41
[/home/mark/src/systemtap/testsuite/uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe]
print_ustack exe 1
 0x00000000004005ed : main_func+0x1/0x53
[/home/mark/src/systemtap/testsuite/uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe]
 0x000000000040062a : main_func+0x3e/0x53
[/home/mark/src/systemtap/testsuite/uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe]
 0x0000000000400666 : main+0x27/0x41
[/home/mark/src/systemtap/testsuite/uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe]
print_ubacktrace lib 2
 0x00000000064005cd : lib_func+0x1/0x4c
[/home/mark/src/systemtap/testsuite/libuprobeslibgcc-O0default-prelink-debug.so]
print_ustack lib 3
 0x00000000064005cd : lib_func+0x1/0x4c
[/home/mark/src/systemtap/testsuite/libuprobeslibgcc-O0default-prelink-debug.so]
PASS:
ustack-uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_uprobeslibgcc-O0default-prelink-debug
print
FAIL:
ustack-uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_uprobeslibgcc-O0default-prelink-debug
main (2)
FAIL:
ustack-uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_uprobeslibgcc-O0default-prelink-debug
main_func (3)
FAIL:
ustack-uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_uprobeslibgcc-O0default-prelink-debug
lib_main (0)
FAIL:
ustack-uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_uprobeslibgcc-O0default-prelink-debug
lib_func (2)

-- 
           Summary: some ustack exelib.exp tests fail with prelinked shared
                    libs
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


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

------- 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 runtime/10323] some ustack exelib.exp tests fail with prelinked shared libs
  2009-06-24 10:19 [Bug runtime/10323] New: some ustack exelib.exp tests fail with prelinked shared libs mjw at redhat dot com
@ 2009-06-25 21:17 ` mjw at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: mjw at redhat dot com @ 2009-06-25 21:17 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-06-25 21:17 -------
commit c65358e84b38bc84951a4e3c5e8e4f3cace9f63e
Author: Mark Wielaard <mjw@redhat.com>
Date:   Thu Jun 25 23:07:17 2009 +0200

    PR10323 Some ustack exelib.exp tests fail with prelinked shared libs.
    
    For shared libraries (.dynamic sections) we need the eh frame section
    address offset. This is the sh_addr if the shared library isn't prelinked
    (since the base load address is zero in that case), otherwise it is
    the module start address minus the bias (which also works for the
    non-prelinked case).
    
    * translate.cxx (get_unwind_data): Adjust eh_addr for module start and
      bias if module isn't absolute (has no relocations).
    * testsuite/systemtap.exelib/ustack.tcl: Accept all prelink tests.

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


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

------- 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:[~2009-06-25 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24 10:19 [Bug runtime/10323] New: some ustack exelib.exp tests fail with prelinked shared libs mjw at redhat dot com
2009-06-25 21:17 ` [Bug runtime/10323] " 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).