Actions
Bug #20989
closedSegmentation fault in Ripper when lexing `/#{"\xcd"}/`
Bug #20989:
Segmentation fault in Ripper when lexing `/#{"\xcd"}/`
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x86_64-linux]
Description
When I paste this code snippet into irb, I get a segfault: /#{"\xcd"}/. Current master (https://github.com/ruby/ruby/commit/adbbc9109ee71848204b5168a7c1bf604849e5fa) also fails.
Here is a simple reproduction, I attached the full bug as an attachment:
Files
Actions