[Bug libelf/28685] UBSan: member access within misaligned address 0x7ff316818032 for type 'struct Elf32_Phdr'

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28685 --- Comment #10 from Evgeny Vereshchagin --- Looks like the memory leak is gone. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.

[PATCH v3] tests: integrate fuzz-dwfl-core into the test suite

2021-12-20 Thread Evgeny Vereshchagin
[v3] The test handles infinite loops much better now. In https://sourceware.org/bugzilla/show_bug.cgi?id=28715#c4 it took it about 5 hours on Packit to discover an infinite loop on 32 bit platforms because it didn't enforce any timeouts. It was fixed by passing --tmout_sigvtalrm to honggfuzz (whic

[Bug libelf/28685] UBSan: member access within misaligned address 0x7ff316818032 for type 'struct Elf32_Phdr'

2021-12-20 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28685 --- Comment #9 from Mark Wielaard --- (In reply to Evgeny Vereshchagin from comment #7) > Created attachment 13869 [details] > archive with a report and a file triggering a memory leak > > Thanks! That branch helped me a lot. I rebased it on

[PATCH] dwfl: Always clean up build_id.memory

2021-12-20 Thread Mark Wielaard
There was a small memory leak if an error was detected in some places in dwfl_segment_report_module after the build_id.memory was alredy allocated. Fix this by moving initialization of struct elf_build_id early and always free the memory, if not NULL, at exit. https://sourceware.org/bugzilla/show_

[Bug debuginfod/28708] run-debuginfod-webapi-concurrency.sh seems to be flaky

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28708 --- Comment #10 from Evgeny Vereshchagin --- (In reply to Mark Wielaard from comment #9) > (In reply to Evgeny Vereshchagin from comment #7) > > > Note that packit doesn't use real hardware for various architectures but > > > "container emulat

[Bug libelf/28685] UBSan: member access within misaligned address 0x7ff316818032 for type 'struct Elf32_Phdr'

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28685 --- Comment #8 from Evgeny Vereshchagin --- I can't reproduce that "unknown-crash on address 0x7f54aacd7000" anymore. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libdw/28715] There seems to be an infinite loop in dwfl_segment_report_module

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28715 --- Comment #8 from Evgeny Vereshchagin --- (In reply to Mark Wielaard from comment #7) > (In reply to Evgeny Vereshchagin from comment #2) > > There seem to be quite a few new patches on the mailing list. I wonder if > > it's possible to some

[Bug libdw/28710] ERROR: AddressSanitizer: SEGV on unknown address (on i386)

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28710 --- Comment #2 from Evgeny Vereshchagin --- With https://code.wildebeest.org/git/user/mjw/elfutils/log/?h=fuzz rebased on top of my "fuzzing" branch I can no longer reproduce this issue. Thanks! -- You are receiving this mail because: You ar

[Bug libelf/28685] UBSan: member access within misaligned address 0x7ff316818032 for type 'struct Elf32_Phdr'

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28685 --- Comment #7 from Evgeny Vereshchagin --- Created attachment 13869 --> https://sourceware.org/bugzilla/attachment.cgi?id=13869&action=edit archive with a report and a file triggering a memory leak Thanks! That branch helped me a lot. I re

[Bug libdw/28715] There seems to be an infinite loop in dwfl_segment_report_module

2021-12-20 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28715 --- Comment #7 from Mark Wielaard --- (In reply to Evgeny Vereshchagin from comment #2) > There seem to be quite a few new patches on the mailing list. I wonder if > it's possible to somehow fetch a branch with all of them so that I could > ju

[Bug libelf/28685] UBSan: member access within misaligned address 0x7ff316818032 for type 'struct Elf32_Phdr'

2021-12-20 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28685 --- Comment #6 from Mark Wielaard --- I cannot replicate this with either an amd64 build or a i686 build. I might have some more patches applied locally because the line dwfl_segment_report_module.c:466 doesn't contain a memcpy call for me. A

[Bug libdw/28715] There seems to be an infinite loop in dwfl_segment_report_module

2021-12-20 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28715 --- Comment #6 from Mark Wielaard --- (In reply to Evgeny Vereshchagin from comment #5) > I can't seem to apply that patch: It might be easier to pick up the whole "fuzz" branch from my tree: https://code.wildebeest.org/git/user/mjw/elfutils/

[Bug debuginfod/28708] run-debuginfod-webapi-concurrency.sh seems to be flaky

2021-12-20 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28708 --- Comment #9 from Mark Wielaard --- (In reply to Evgeny Vereshchagin from comment #7) > > Note that packit doesn't use real hardware for various architectures but > > "container emulation" which causes various testcases to fail. > > > I thi

[Bug libdw/28715] There seems to be an infinite loop in dwfl_segment_report_module

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28715 --- Comment #5 from Evgeny Vereshchagin --- I can't seem to apply that patch: ``` $ git am --exclude=libdwfl/ChangeLog p4.patch Applying: libdwfl: Rewrite GElf_Nhdr reading in dwfl_segment_report_module error: patch failed: libdwfl/dwfl_segmen

[Bug libdw/28715] There seems to be an infinite loop in dwfl_segment_report_module

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28715 --- Comment #4 from Evgeny Vereshchagin --- (In reply to Evgeny Vereshchagin from comment #3) > (In reply to Mark Wielaard from comment #1) > > I couldn't replicate the infinite loop, which I assume has been fixed by: > > https://sourceware.or

[Bug libelf/28685] UBSan: member access within misaligned address 0x7ff316818032 for type 'struct Elf32_Phdr'

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28685 --- Comment #5 from Evgeny Vereshchagin --- Created attachment 13867 --> https://sourceware.org/bugzilla/attachment.cgi?id=13867&action=edit regression I ran the fuzzer a bit longer and it seems https://sourceware.org/pipermail/elfutils-dev

[Bug libdw/28715] There seems to be an infinite loop in dwfl_segment_report_module

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28715 --- Comment #3 from Evgeny Vereshchagin --- (In reply to Mark Wielaard from comment #1) > I couldn't replicate the infinite loop, which I assume has been fixed by: > https://sourceware.org/pipermail/elfutils-devel/2021q4/004557.html I haven't

[Bug libelf/28685] UBSan: member access within misaligned address 0x7ff316818032 for type 'struct Elf32_Phdr'

2021-12-20 Thread evvers at ya dot ru via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28685 --- Comment #4 from Evgeny Vereshchagin --- I can confirm that with those three patches applied I can no longer reproduce the issue. I tested it with both `--enable-honggfuzz` from https://sourceware.org/pipermail/elfutils-devel/2021q4/004554.