public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/26738] New: .debug_line reference above end of section
@ 2020-10-15 15:56 doko at debian dot org
  2020-10-15 15:57 ` [Bug default/26738] " doko at debian dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: doko at debian dot org @ 2020-10-15 15:56 UTC (permalink / raw)
  To: dwz

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

            Bug ID: 26738
           Summary: .debug_line reference above end of section
           Product: dwz
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: nobody at sourceware dot org
          Reporter: doko at debian dot org
                CC: dwz at sourceware dot org
  Target Milestone: ---

Created attachment 12902
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12902&action=edit
test case

this is seen on mipsel-linux-gnu, not on other archs, and not on
mips64el-linux-gnu. seen both with 0.13 and trunk.

../dwz-0.13+20201015/debian/dwz/usr/bin/dwz
-mdebian/python3-dbus-tests/usr/lib/debug/.dwz/mipsel-linux-gnu/python3-dbus-tests.debug
-M/usr/lib/debug/.dwz/mipsel-linux-gnu/python3-dbus-tests.debug --
debian/python3-dbus-tests/usr/lib/python3/dist-packages/dbus_py_test.cpython-38-mipsel-linux-gnu.so
debian/python3-dbus-tests/usr/lib/python3/dist-packages/dbus_py_test.cpython-39-mipsel-linux-gnu.so
debian/python3-dbus-tests/usr/libexec/installed-tests/dbus-python/python3.8/test/test-import-repeatedly
debian/python3-dbus-tests/usr/libexec/installed-tests/dbus-python/python3.9/test/test-import-repeatedly
../dwz-0.13+20201015/debian/dwz/usr/bin/dwz:
debian/python3-dbus-tests/usr/lib/python3/dist-packages/dbus_py_test.cpython-38-mipsel-linux-gnu.so:
DWARF compression not beneficial - old size 8764 new size 8764
../dwz-0.13+20201015/debian/dwz/usr/bin/dwz:
debian/python3-dbus-tests/usr/lib/python3/dist-packages/dbus_py_test.cpython-39-mipsel-linux-gnu.so:
DWARF compression not beneficial - old size 7733 new size 7733
../dwz-0.13+20201015/debian/dwz/usr/bin/dwz:
debian/python3-dbus-tests/usr/libexec/installed-tests/dbus-python/python3.8/test/test-import-repeatedly:
DWARF compression not beneficial - old size 649 new size 649
../dwz-0.13+20201015/debian/dwz/usr/bin/dwz:
debian/python3-dbus-tests/usr/libexec/installed-tests/dbus-python/python3.9/test/test-import-repeatedly:
DWARF compression not beneficial - old size 649 new size 649
../dwz-0.13+20201015/debian/dwz/usr/bin/dwz:
debian/python3-dbus-tests/usr/lib/debug/.dwz/mipsel-linux-gnu/python3-dbus-tests.debug:
.debug_line reference above end of section

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/26738] .debug_line reference above end of section
  2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
@ 2020-10-15 15:57 ` doko at debian dot org
  2020-10-15 16:39 ` mark at klomp dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: doko at debian dot org @ 2020-10-15 15:57 UTC (permalink / raw)
  To: dwz

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

Matthias Klose <doko at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |mipsel-linux-gnu

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/26738] .debug_line reference above end of section
  2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
  2020-10-15 15:57 ` [Bug default/26738] " doko at debian dot org
@ 2020-10-15 16:39 ` mark at klomp dot org
  2020-10-19 21:07 ` [Bug default/26738] .debug_line reference above end of section (mipsel) mark at klomp dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mark at klomp dot org @ 2020-10-15 16:39 UTC (permalink / raw)
  To: dwz

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Matthias Klose from comment #0)
> Created attachment 12902 [details]
> test case
> 
> this is seen on mipsel-linux-gnu, not on other archs, and not on
> mips64el-linux-gnu. seen both with 0.13 and trunk.

I can replicate it with the provided reproducer.
But there is something odd with the .debug sections.
They all have an unknown section type: SHT_LOPROC+1e
And eu-readelf has trouble reading the debuginfo itself.

Do you happen to know whether mipsel-linux-gnu uses some special interpretation
of ELF/DWARF?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/26738] .debug_line reference above end of section (mipsel)
  2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
  2020-10-15 15:57 ` [Bug default/26738] " doko at debian dot org
  2020-10-15 16:39 ` mark at klomp dot org
@ 2020-10-19 21:07 ` mark at klomp dot org
  2021-03-02 13:20 ` vries at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mark at klomp dot org @ 2020-10-19 21:07 UTC (permalink / raw)
  To: dwz

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|.debug_line reference above |.debug_line reference above
                   |end of section              |end of section (mipsel)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/26738] .debug_line reference above end of section (mipsel)
  2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
                   ` (2 preceding siblings ...)
  2020-10-19 21:07 ` [Bug default/26738] .debug_line reference above end of section (mipsel) mark at klomp dot org
@ 2021-03-02 13:20 ` vries at gcc dot gnu.org
  2021-03-02 13:57 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2021-03-02 13:20 UTC (permalink / raw)
  To: dwz

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vries at gcc dot gnu.org

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Tentative fix:
...
diff --git a/dwz.c b/dwz.c                                                      
index af1c5af..5effbc1 100644                                                   
--- a/dwz.c                                                                     
+++ b/dwz.c                                                                     
@@ -15150,7 +15150,7 @@ write_multifile (DSO *dso)
                            debug_sections[DEBUG_MACRO].new_size)               
                     != (ssize_t) debug_sections[DEBUG_MACRO].new_size)         
              || (strp_htab != NULL && write_multifile_strp ())                 
-             || (line_htab != NULL && write_multifile_line ()))                
+             || write_multifile_line ())                                       
            {                                                                   
              error (0, 0, "Error writing multi-file temporary files");         
              ret = 1;                                                          
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/26738] .debug_line reference above end of section (mipsel)
  2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
                   ` (3 preceding siblings ...)
  2021-03-02 13:20 ` vries at gcc dot gnu.org
@ 2021-03-02 13:57 ` vries at gcc dot gnu.org
  2021-03-04  8:18 ` vries at gcc dot gnu.org
  2021-03-05  6:32 ` vries at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2021-03-02 13:57 UTC (permalink / raw)
  To: dwz

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

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/dwz/2021q1/001032.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/26738] .debug_line reference above end of section (mipsel)
  2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
                   ` (4 preceding siblings ...)
  2021-03-02 13:57 ` vries at gcc dot gnu.org
@ 2021-03-04  8:18 ` vries at gcc dot gnu.org
  2021-03-05  6:32 ` vries at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2021-03-04  8:18 UTC (permalink / raw)
  To: dwz

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

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 13282
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13282&action=edit
More minimal reproducer

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug default/26738] .debug_line reference above end of section (mipsel)
  2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
                   ` (5 preceding siblings ...)
  2021-03-04  8:18 ` vries at gcc dot gnu.org
@ 2021-03-05  6:32 ` vries at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2021-03-05  6:32 UTC (permalink / raw)
  To: dwz

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

Tom de Vries <vries at gcc dot gnu.org> changed:

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

--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed in
https://sourceware.org/git/?p=dwz.git;a=commit;h=bf390b6b0a50253a719e9aefd36d8268945ef6c6

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2021-03-05  6:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 15:56 [Bug default/26738] New: .debug_line reference above end of section doko at debian dot org
2020-10-15 15:57 ` [Bug default/26738] " doko at debian dot org
2020-10-15 16:39 ` mark at klomp dot org
2020-10-19 21:07 ` [Bug default/26738] .debug_line reference above end of section (mipsel) mark at klomp dot org
2021-03-02 13:20 ` vries at gcc dot gnu.org
2021-03-02 13:57 ` vries at gcc dot gnu.org
2021-03-04  8:18 ` vries at gcc dot gnu.org
2021-03-05  6:32 ` vries at gcc dot gnu.org

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).