public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10088] on s390x, the translator gets an assertion
       [not found] <bug-10088-6586@http.sourceware.org/bugzilla/>
@ 2013-09-10 16:27 ` dsmith at redhat dot com
  0 siblings, 0 replies; 8+ messages in thread
From: dsmith at redhat dot com @ 2013-09-10 16:27 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=10088

David Smith <dsmith at redhat dot com> changed:

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

--- Comment #8 from David Smith <dsmith at redhat dot com> ---
I've tested this with elfutils-0.152 on 2.6.18-348.el5 s390x, and I see no
assertions when running the full buildok.exp testcase.

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

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

* [Bug translator/10088] on s390x, the translator gets an assertion
  2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
                   ` (5 preceding siblings ...)
  2009-04-30 20:40 ` mjw at redhat dot com
@ 2010-06-25 14:44 ` mjw at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2010-06-25 14:44 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2010-06-24 22:02 -------
*** Bug 11753 has been marked as a duplicate of this bug. ***

-- 


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

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

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

* [Bug translator/10088] on s390x, the translator gets an assertion
  2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
                   ` (4 preceding siblings ...)
  2009-04-23  9:38 ` mjw at redhat dot com
@ 2009-04-30 20:40 ` mjw at redhat dot com
  2010-06-25 14:44 ` mjw at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2009-04-30 20:40 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-04-30 20:40 -------
Upgrading to elfutils 0.141 solves this issue also on s390x.

A workaround for older elfutils releases would be to rewrite the runtime to
collect the kernel module segment sizes at module load time instead of calling
dwfl_offline_section_address and storing the section sizes during the
translation phase. Some suggestions on how to do this, and why we are currently
not doing this, are discussed in the following thread:
http://sourceware.org/ml/systemtap/2009-q2/msg00324.html

-- 


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

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

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

* [Bug translator/10088] on s390x, the translator gets an assertion
  2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
                   ` (3 preceding siblings ...)
  2009-04-22 15:04 ` mjw at redhat dot com
@ 2009-04-23  9:38 ` mjw at redhat dot com
  2009-04-30 20:40 ` mjw at redhat dot com
  2010-06-25 14:44 ` mjw at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2009-04-23  9:38 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-04-23 09:37 -------
The issue in comment #2 on x86_64 is fixed with the latest elfutils from git,
specifically:

commit c65558baa0382d59398234c5a05debdc5a98eb1b
Author: Roland McGrath <roland@redhat.com>
Date:   Wed Apr 22 12:29:32 2009 -0700

    Fix relocation when symbols are resolved in non-ET_REL modules.

Haven't tested on s390x though.

-- 


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

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

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

* [Bug translator/10088] on s390x, the translator gets an assertion
  2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
                   ` (2 preceding siblings ...)
  2009-04-22 14:38 ` mjw at redhat dot com
@ 2009-04-22 15:04 ` mjw at redhat dot com
  2009-04-23  9:38 ` mjw at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2009-04-22 15:04 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-04-22 15:04 -------
buildok/scheduler-all-probes.stp is a different failure:
semantic error: no match while resolving probe point kernel.function("__switch_t
o")

All others occur because they have a probe module.function().


-- 


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

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

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

* [Bug translator/10088] on s390x, the translator gets an assertion
  2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
  2009-04-21 22:53 ` [Bug translator/10088] " roland at gnu dot org
  2009-04-22 10:59 ` mjw at redhat dot com
@ 2009-04-22 14:38 ` mjw at redhat dot com
  2009-04-22 15:04 ` mjw at redhat dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2009-04-22 14:38 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-04-22 14:38 -------
Unfortunately the workaround still does hit the elfutils (0.137) bug on s390x.
But not because we call dwfl_module_relocations() on the kernel module itself.
We only call it on an ET_REL kernel module, but as sketched in comment #2
libdwfl still calls __libdwfl_relocate_value() on the kernel module itself when
we do that. Will need to think of some other workaround.

-- 


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

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

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

* [Bug translator/10088] on s390x, the translator gets an assertion
  2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
  2009-04-21 22:53 ` [Bug translator/10088] " roland at gnu dot org
@ 2009-04-22 10:59 ` mjw at redhat dot com
  2009-04-22 14:38 ` mjw at redhat dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mjw at redhat dot com @ 2009-04-22 10:59 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From mjw at redhat dot com  2009-04-22 10:58 -------
(In reply to comment #1)
> I fixed the crash in elfutils git, for 0.141 when it comes (soonish).
> 
> But this hits from a call to dwfl_module_address_section in dump_unwindsyms on
> the "kernel" (vmlinux) module.  IMHO it should not be calling
> dwfl_module_address_section for any non-ET_REL module (i.e. non-.ko).  If that's
> fixed it won't provoke the bug on the older elfutils libraries.

You are right, that logic was trying too be way too clever, it should just see
that dwfl_module_relocations() returned <= 1 relocation sections and then not
call it. Fixed in:

commit eadbd95761af3c2815e1b36df5a7d18dd28112a4
Author: Mark Wielaard <mjw@redhat.com>
Date:   Wed Apr 22 12:53:39 2009 +0200

    Simplify section size logic.
    
    * translate.cxx (dump_unwindsyms): Just check that dwfl_module_relocations()
      return more than 1 relocation section bases before calling
      dwfl_module_address_section().

That works fine with 0.140 or before your last elfutils commit. But with your
latest fix applied you will hit the new assert in __libdwfl_relocate_value for
mod->e_type == ET_REL. The problem is the kernel module which isn't ET_REL. But
when dwfl_module_address_section() is called on an ET_REL kernel module it might
end up going through resolve_symbol() for that module, which loops through the
dwfl->modulelist and ends up trying to call __libdwfl_relocate_value on some
kernel module value.

The test cases that fail in the above manner, on x86_64, with elfutils tip
(19a8e4db) are precisely those of comment #1, on s390, so at least the failures
are consistent per platform now.

-- 


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

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

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

* [Bug translator/10088] on s390x, the translator gets an assertion
  2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
@ 2009-04-21 22:53 ` roland at gnu dot org
  2009-04-22 10:59 ` mjw at redhat dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: roland at gnu dot org @ 2009-04-21 22:53 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From roland at gnu dot org  2009-04-21 22:53 -------
I fixed the crash in elfutils git, for 0.141 when it comes (soonish).

But this hits from a call to dwfl_module_address_section in dump_unwindsyms on
the "kernel" (vmlinux) module.  IMHO it should not be calling
dwfl_module_address_section for any non-ET_REL module (i.e. non-.ko).  If that's
fixed it won't provoke the bug on the older elfutils libraries.

-- 


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

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

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

end of thread, other threads:[~2013-09-10 16:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10088-6586@http.sourceware.org/bugzilla/>
2013-09-10 16:27 ` [Bug translator/10088] on s390x, the translator gets an assertion dsmith at redhat dot com
2009-04-21 18:08 [Bug translator/10088] New: " dsmith at redhat dot com
2009-04-21 22:53 ` [Bug translator/10088] " roland at gnu dot org
2009-04-22 10:59 ` mjw at redhat dot com
2009-04-22 14:38 ` mjw at redhat dot com
2009-04-22 15:04 ` mjw at redhat dot com
2009-04-23  9:38 ` mjw at redhat dot com
2009-04-30 20:40 ` mjw at redhat dot com
2010-06-25 14:44 ` 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).