Skip to content

fix: SIGSEGV on malformed shebang #3588

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Stranger6667
Copy link
Contributor

Without the fix, the new test gives the following on cargo test:

test tests::call_flags_test ... ok
error: test failed, to rerun pass `-p ruby-prism --lib`

Caused by:
  process didn't exit successfully: `/tmp/prism/rust/target/debug/deps/ruby_prism-65349bb1fc339892` (signal: 11, SIGSEGV: invalid memory reference)

@Stranger6667 Stranger6667 changed the title fix: SIGSEGV on empty shebang fix: SIGSEGV on malformed shebang Jun 21, 2025
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
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