Skip to content

Conversation

@joelhawksley
Copy link
Member

@joelhawksley joelhawksley commented Feb 12, 2026

In #2541, logic was added to strip out the first template annotation line. Unfortunately, the template annotations in Rails span multiple lines, causing invalid Ruby to be eval'd.

This fix splits the compiled source on ";", which properly isolates the template annotation for easy removal.

@george-bit I haven't completely isolated the issue yet, but in #2555, I added a raise to prove that @strip_annotation_line is false on Rails/Ruby main.

@joelhawksley joelhawksley force-pushed the fix-segfault-compiled-source branch 3 times, most recently from c6f7212 to ff5dabb Compare February 12, 2026 17:20
In #2541, logic
was added to strip out the first template annotation line. Unfortunately,
the template annotations in Rails span multiple lines, causing
invalid Ruby to be eval'd.

This fix splits the compiled source on ";", which properly isolates
the template annotation for easy removal.
@joelhawksley joelhawksley force-pushed the fix-segfault-compiled-source branch from ff5dabb to 2750a14 Compare February 12, 2026 17:26
@joelhawksley joelhawksley merged commit 9a6d5b6 into main Feb 12, 2026
18 checks passed
@joelhawksley joelhawksley deleted the fix-segfault-compiled-source branch February 12, 2026 18:59
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.

1 participant