Skip to content

PXB-2553 [8.4]: Fix stacktrace assertion in bug766305 test - #1788

Merged
jakub-nowakowski-percona merged 1 commit into
percona:8.4from
jakub-nowakowski-percona:PXB-2553-8.4
Sep 3, 2026
Merged

PXB-2553 [8.4]: Fix stacktrace assertion in bug766305 test#1788
jakub-nowakowski-percona merged 1 commit into
percona:8.4from
jakub-nowakowski-percona:PXB-2553-8.4

Conversation

@jakub-nowakowski-percona

Copy link
Copy Markdown
Contributor

https://perconadev.atlassian.net/browse/PXB-2553

Problem:

The test sends SIGSEGV to xtrabackup and verifies a resolved stack trace is produced. The assertion grepped for "handle_fatal_signal", which only appears when the signal handler frame is resolved as a symbol in the backtrace. This is platform- and compiler-dependent: the signal is delivered to an arbitrary thread, and the backtrace shows that thread's stack, not the signal handler's frame.

Fix:

Replace the assertion with a regex matching any resolved stack frame with a source location ("... at ..."), which is always present regardless of which thread receives the signal.

https://perconadev.atlassian.net/browse/PXB-2553

Problem:
--------
The test sends SIGSEGV to xtrabackup and verifies a resolved stack
trace is produced. The assertion grepped for "handle_fatal_signal",
which only appears when the signal handler frame is resolved as a
symbol in the backtrace. This is platform- and compiler-dependent:
the signal is delivered to an arbitrary thread, and the backtrace
shows that thread's stack, not the signal handler's frame.

Fix:
----
Replace the assertion with a regex matching any resolved stack frame
with a source location ("... <symbol> at ..."), which is always
present regardless of which thread receives the signal.
@jakub-nowakowski-percona

Copy link
Copy Markdown
Contributor Author

@jakub-nowakowski-percona jakub-nowakowski-percona changed the title PXB-2553: Fix stacktrace assertion in bug766305 test PXB-2553 [8.4]: Fix stacktrace assertion in bug766305 test Sep 2, 2026
@jakub-nowakowski-percona
jakub-nowakowski-percona merged commit d94f7ea into percona:8.4 Sep 3, 2026
3 checks passed
@jakub-nowakowski-percona
jakub-nowakowski-percona deleted the PXB-2553-8.4 branch September 3, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants