Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix compiler crash with -Ymagic-offset-header #24124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
tgodzik merged 2 commits into scala:main from lihaoyi:fix-span-crash
Oct 3, 2025

Conversation

Copy link
Contributor

@lihaoyi lihaoyi commented Oct 2, 2025
edited
Loading

Fixes #24091

Since span.start is only valid when span.exists, we just check that first before calling span.start and otherwise fall back to the default code path

Haven't tested it, but from the stack trace it looks like it should fix the problem

He-Pin and daewon reacted with thumbs up emoji
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor Author

lihaoyi commented Oct 2, 2025

Thanks @tgodzik ! Could I request for a backport to 3.7.4?

Copy link
Contributor

tgodzik commented Oct 2, 2025

Thanks @tgodzik ! Could I request for a backport to 3.7.4?

I think we'll have an RC2 @WojciechMazur ?

WojciechMazur reacted with thumbs up emoji

Copy link
Contributor

@Linyxus Linyxus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

Linyxus commented Oct 2, 2025

Before merging, could you squash and rename the commits? Right now they are not quite informative.

@Linyxus Linyxus assigned lihaoyi and unassigned Linyxus Oct 2, 2025
Copy link
Contributor

tgodzik commented Oct 2, 2025

I will do it with the squash on github, it does use the PR description in those cases

@WojciechMazur WojciechMazur added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Oct 2, 2025
@tgodzik tgodzik merged commit a7bbe58 into scala:main Oct 3, 2025
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@tgodzik tgodzik tgodzik approved these changes

@Linyxus Linyxus Linyxus approved these changes

Labels
backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Compiler crash with -Ymagic-offset-header

AltStyle によって変換されたページ (->オリジナル) /