Skip to content

Fix panic line numbers#3492

Merged
illicitonion merged 8 commits intobazelbuild:mainfrom
illicitonion:fix-remapping
Jul 20, 2025
Merged

Fix panic line numbers#3492
illicitonion merged 8 commits intobazelbuild:mainfrom
illicitonion:fix-remapping

Conversation

@illicitonion
Copy link
Copy Markdown
Collaborator

Without this patch, line numbers are missing for first-party code in panic traces.

This reverts part of #1563 but keeps the test showing we have a relative path not an absolute one, and adds an integration test showing that line numbers are correctly reported in panic traces.

As far as I know, path remapping has been improved in rustc over the last few years, so maybe the behaviour reported in that patch has been fixed.

Closes #3476

Without this patch, line numbers are missing for first-party code in
panic traces.

This reverts part of bazelbuild#1563 but keeps the test showing we have a relative
path not an absolute one, and adds an integration test showing that line
numbers are correctly reported in panic traces.

As far as I know, path remapping has been improved in rustc over the
last few years, so maybe the behaviour reported in that patch has been
fixed.
@illicitonion illicitonion requested a review from UebelAndre July 2, 2025 23:04
@illicitonion illicitonion added this pull request to the merge queue Jul 12, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 12, 2025
@illicitonion illicitonion added this pull request to the merge queue Jul 12, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 12, 2025
@illicitonion illicitonion added this pull request to the merge queue Jul 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 13, 2025
@csmulhern
Copy link
Copy Markdown
Contributor

I think this needs to be rebased and merged again.

@illicitonion illicitonion added this pull request to the merge queue Jul 20, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 20, 2025
@illicitonion illicitonion added this pull request to the merge queue Jul 20, 2025
Merged via the queue into bazelbuild:main with commit daae900 Jul 20, 2025
3 checks passed
@illicitonion illicitonion deleted the fix-remapping branch July 20, 2025 22: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.

Current implementation of remap_path_prefix breaks debugging on macOS

3 participants