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. ../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
(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?
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; ...
https://sourceware.org/pipermail/dwz/2021q1/001032.html
Created attachment 13282 [details] More minimal reproducer
Fixed in https://sourceware.org/git/?p=dwz.git;a=commit;h=bf390b6b0a50253a719e9aefd36d8268945ef6c6