Michael Smith has submitted this change and it was merged. ( 
https://gerrit.cloudera.org/25468 )

Change subject: IMPALA-15764: Bump toolchain to fix minidumps for mold on 
aarch64
......................................................................

IMPALA-15764: Bump toolchain to fix minidumps for mold on aarch64

Minidumps from Redhat 9 ARM binaries linked with mold could not be
symbolized. mold emits separate PT_LOAD segments for read-only data and
code, and on aarch64 these are aligned to the 64KB max page size, which
leaves an unmapped hole between them in /proc/<pid>/maps. Breakpad only
merged exactly adjacent mappings into one module, so impalad showed up
as two modules in the minidump. The symbols were only correct for the
first module, so most frames were unresolved or resolved to the wrong
function.

This bumps the toolchain to pick up the patched breakpad, which merges
mappings separated by small alignment gaps.

This also adds TestBreakpadCore::test_minidump_symbol_resolution, which
crashes an impalad and resolves the minidump both ways that
bin/jenkins/finalize.sh does: dump_breakpad_symbols.py with
minidump_stackwalk, and resolve_minidumps.py. It verifies that impalad
is a single module with symbols, and that frames resolve to
Thread::SuperviseThread(), the entry point of all Impala threads. The
main thread is not used, because the stack walk can stop in libc before
reaching main() on aarch64.

Testing:
 - On Redhat 9 aarch64 with mold, the new test fails without the
   toolchain bump and passes with it.
 - The new test passes on Ubuntu 22 x86_64

Change-Id: Id520d38d9029fe1a55471f2d04bcbae883619c21
Assisted-by: Claude Opus 5.5 (Claude Code)
Reviewed-on: https://gerrit.cloudera.org/25468
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Balazs Hevele <[email protected]>
Reviewed-by: Michael Smith <[email protected]>
---
M bin/impala-config.sh
M tests/custom_cluster/test_breakpad.py
2 files changed, 85 insertions(+), 4 deletions(-)

Approvals:
  Impala Public Jenkins: Verified
  Balazs Hevele: Looks good to me, but someone else must approve
  Michael Smith: Looks good to me, approved

--
To view, visit https://gerrit.cloudera.org/25468
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id520d38d9029fe1a55471f2d04bcbae883619c21
Gerrit-Change-Number: 25468
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>

Reply via email to