Actions
Bug #22559
closedparse.y segfault` on `.digit` error inside `alias`/`undef`
Bug #22559:
parse.y segfault` on `.digit` error inside `alias`/`undef`
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [arm64-darwin27]
Description
ruby --parser=parse.y -c -e "alias target .0when"
-e:1: no .<digit> floating literal anymore; put 0 before dot
alias target .0when
ruby: [BUG] Segmentation fault at 0x0000000000000001
ruby 4.0.9 (2026-10-23 revision 3e93b23afc) [arm64-darwin27]
-- Crash Report log information --------------------------------------------
See Crash Report log file in one of the following locations:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0003 E:001ea0 l:y b:---- DUMMY [FINISH]
-- Threading information ---------------------------------------------------
Total ractor count: 1
Ruby thread count for this ractor: 1
-- Machine register context ------------------------------------------------
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000028
x3: 0x0000000000000008 x4: 0x0000000000000000 x5: 0x0000000000000000
x6: 0x000000000000000a x7: 0xffffffffb00007ff x18: 0x0000000000000000
x19: 0x0000000000000018 x20: 0x000000787c8f80e0 x21: 0x000000016affd498
x22: 0x000000016affc840 x23: 0x00000000000000dc x24: 0x000000016affdaba
x25: 0x00000000000000c8 x26: 0x00000000000000da x27: 0x0000000105e0c902
x28: 0x0000000105dc3dd2 lr: 0x0000000105ac40d4 fp: 0x000000016affc5e0
sp: 0x000000016affc5a0
-- C level backtrace information -------------------------------------------
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(rb_vm_bugreport+0x374) [0x105bb3a2c]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(rb_bug_for_fatal_signal) [0x105a3e198]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(sigabrt) [0x105b3016c]
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x38) [0x18bcac144]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(rb_node_sym_new) [0x105ac40d4]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(rb_node_sym_new) [0x105ac40d4]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(ruby_yyparse) [0x105ac12d8]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(yycompile0) [0x105ac9358]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(rb_suppress_tracing) [0x105bb4fb4]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(rb_parser_compile) [0x105ac7ba8]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(parser_compile) [0x105b26328]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(rb_parser_compile_string) [0x105b25704]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(ruby_process_options) [0x105b212ac]
/opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib(ruby_options) [0x105a44f20]
/opt/homebrew/Cellar/ruby/4.0.9/bin/ruby(main+0x64) [0x104e015a4]
-- Other runtime information -----------------------------------------------
* Loaded script: ruby
* Ruby Box: disabled
* Loaded features:
0 enumerator.so
1 thread.rb
2 fiber.so
3 rational.so
4 complex.so
5 pathname.so
6 ruby2_keywords.rb
7 set.rb
8 /opt/homebrew/Cellar/ruby/4.0.9/lib/ruby/4.0.0/arm64-darwin27/enc/encdb.bundle
9 /opt/homebrew/Cellar/ruby/4.0.9/lib/ruby/4.0.0/arm64-darwin27/enc/trans/transdb.bundle
* Process memory map:
104e14000-104e1c000 r-- /opt/homebrew/Cellar/ruby/4.0.9/bin/ruby
104e1c000-104e20000 r-- /opt/homebrew/Cellar/ruby/4.0.9/bin/ruby
104e20000-104e60000 rw- /opt/homebrew/Cellar/ruby/4.0.9/bin/ruby
105258000-10535c000 --- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
10535c000-105440000 rw- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
105440000-105444000 r-- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
105444000-10544c000 rw- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
10545c000-1056dc000 --- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
1056dc000-105734000 rw- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
105734000-1057b4000 rw- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
106120000-106124000 --- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
106124000-106524000 rw- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
106524000-106528000 --- /opt/homebrew/Cellar/ruby/4.0.9/lib/libruby.4.0.dylib
11ce00000-11ce04000 rw-
787c800000-787cc00000 rw-
787cc00000-787d000000 rw-
787d000000-787d400000 rw-
787d400000-787d800000 rw-
787d800000-787dc00000 rw-
7c1e000000-7c1e400000 rw-
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
[1] 19006 segmentation fault ruby --parser=parse.y -c -e "alias target .0when"
Actions