[PATCH 2/9 v3] libdw: Add locking to dwarf_getsrcfiles, dwarf_getsrclines, dwarf_macro_getsrcfiles

2025-02-19 Thread Aaron Merey
* libdw/dwarf_getsrcfiles.c (dwarf_getsrcfiles): Use dwarf_lock. * libdw/dwarf_getsrclines.c (dwarf_getsrclines): Ditto. * libdw/dwarf_macro_getsrclines.c (dwarf_macro_getsrclines): Ditto. Signed-off-by: Aaron Merey --- v3 changes: This patch replaces v2 02/10 a

[PATCH 5/9 v3] Add tests/thread-safety-subr.sh

2025-02-19 Thread Aaron Merey
thread-safety-subr.sh contains subroutine check_thread_safety_enabled which skips further testing when USE_LOCKS is false. * tests/Makefile.am (EXTRA_DIST): Add thread-safety-subr.sh. * tests/thread-safety-subr.sh: New file. Signed-off-by: Aaron Merey --- No changes in v3. tes

[PATCH 4/9 v3] Add configure option --enable-helgrind

2025-02-19 Thread Aaron Merey
Like --enable-valgrind but uses helgrind instead of memcheck. If both --enable-valgrind and --enable-helgrind are given then helgrind takes priority. --enable-helgrind requires --enable-valgrind-annotations. * configure.ac: Add --enable-helgrind option. * tests/Makefile.am: If US

[PATCH 6/9 v6] Add tests/run-eu-search-cfi.sh

2025-02-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search_cfi. * tests/Makefile.am: Add eu_search_cfi, run-eu-search-cfi.sh. * tests/eu_search_cfi.c: New file. * tests/run-eu-search-cfi.sh: New file. Signed-off-by: Heather S. McIntyre Signed-off-by: Aaron Merey S

[PATCH 1/9 v3] Change type of dwarf_lock from rwlock to mutex

2025-02-19 Thread Aaron Merey
Change type of dwarf_lock to mutex in order to take advantage of built-in support for recursive locking. * lib/locks.h: Add macros for locking, unlocking, initializing and destroying mutexes. * libdw/dwarf_begin_elf.c (dwarf_end): Replace rwlock macro with mutex mac

[PATCH 7/9 v6] Add tests/run-eu-search-macros.sh

2025-02-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search_macros.sh * tests/Makefile.am: Add eu_search_macros, run-eu-search-macros.sh. * tests/eu_search_macros.c: New file. * tests/run-eu-search-macros.sh: New file. Signed-off-by: Heather S. McIntyre Sign

[PATCH 3/9 v3] libdwP.h: Add locking to str_offsets_base_off

2025-02-19 Thread Aaron Merey
* libdw/dwarf_end.c (cu_free): Free str_off_base_lock. * libdw/libdwP.h (struct Dwarf_CU): Add str_off_base_lock member. (str_offsets_base_off): Add locking. * libdw/libdw_findcu.c (__libdw_intern_next_unit): Initialize str_off_base_lock. Signed-off-by: Aaro

[PATCH 8/9 v6] Add tests/run-eu-search-lines.sh

2025-02-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search-lines. * tests/Makefile.am: Add eu_search_lines, run-eu-search-lines.sh. * tests/eu_search_lines.c: New file. tests/run-eu-search-lines.sh: New file. Signed-off-by: Heather S. McIntyre Signed-off-by

[PATCH 9/9 v6] Add tests/run-eu-search-die.sh

2025-02-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search_die. * tests/Makefile.am: Add eu_search_die, run-eu-search-die.sh. * tests/eu_search_die.c: New file. * tests/run-eu-search-die.sh: New file. Signed-off-by: Heather S. McIntyre Signed-off-by: Aaron Merey S

Re: [obv] [patch] debuginfod-client memory hygiene

2025-02-19 Thread Mark Wielaard
Hi Frank, On Tue, Feb 18, 2025 at 10:30:44PM -0500, Frank Ch. Eigler wrote: > Planning to commit this shortly: > > commit a71bac67f4705b84368b71f5ece54deedaa1abf1 (HEAD -> master1) > Author: Frank Ch. Eigler > Date: Tue Feb 18 22:09:12 2025 -0500 > > debuginfod-client: correct invalid fre

[Bug libdw/32713] elfutils fails to symbolize core dumps created by Linux 6.12+

2025-02-19 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32713 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #1

[Bug libdw/32713] elfutils fails to symbolize core dumps created by Linux 6.12+

2025-02-19 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=32713 --- Comment #2 from Mark Wielaard --- See also this kernel thread: https://lore.kernel.org/all/39fc2866-dff3-43c9-9d40-e8ff30a21...@juniper.net/ Looks like the kernel people believe this in "in spec" so doesn't really break user space handling

[Bug libdw/32713] elfutils fails to symbolize core dumps created by Linux 6.12+

2025-02-19 Thread michael+sourceware at stapelberg dot ch
https://sourceware.org/bugzilla/show_bug.cgi?id=32713 --- Comment #3 from Michael Stapelberg --- (In reply to Mark Wielaard from comment #2) > See also this kernel thread: > https://lore.kernel.org/all/39fc2866-dff3-43c9-9d40-e8ff30a21...@juniper.net/ > Looks like the kernel people believe this i