public
Created

  • Download Gist
rbx_regex_crash_18.txt
1 2 3 4 5 6 7 8 9 10 11 12
$ rbx -X18 -e '"".match /[^\u{20}-\u{7E}]/'
An exception occurred evaluating command line code
empty range in char class: [^\u{20}-\u{7E}] (RegexpError)
 
Backtrace:
Regexp#initialize at kernel/common/regexp18.rb:27
Class#new at kernel/alpha.rb:96
{ } in Object#__script__ at -e:1
Rubinius::BlockEnvironment#call_on_instance at kernel/common/block_environment.rb:75
Kernel(Rubinius::Loader)#eval at kernel/common/eval.rb:75
Rubinius::Loader#evals at kernel/loader.rb:583
Rubinius::Loader#main at kernel/loader.rb:814
rbx_regex_crash_19.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# Found at: https://github.com/threedaymonk/htmlentities/blob/master/lib/htmlentities/encoder.rb#L55
 
$ rbx -e '"anything".match /[^\u{20}-\u{7E}]/'
Fatal ONIG error: empty range in char class
Assertion failed: (err == ONIG_NORMAL), function maybe_recompile, file vm/builtin/regexp.cpp, line 236.
 
---------------------------------------------
CRASH: A fatal error has occurred.
 
Backtrace:
0 rbx 0x000000010819e4d0 _ZN8rubiniusL12segv_handlerEi + 544
1 libsystem_c.dylib 0x00007fff8f5b98ea _sigtramp + 26
2 rbx 0x00000001082b3ebe _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1150
3 libsystem_c.dylib 0x00007fff8f610dce abort + 143
4 libsystem_c.dylib 0x00007fff8f611e2a __assert_rtn + 146
5 rbx 0x0000000108311abe _ZN8rubinius6Regexp15maybe_recompileEPNS_5StateEPNS_6StringE + 348
6 rbx 0x0000000108312094 _ZN8rubinius6Regexp12match_regionEPNS_5StateEPNS_6StringEPNS_6FixnumES6_PNS_6ObjectE + 234
7 rbx 0x0000000108256f37 _ZN8rubinius10Primitives20regexp_search_regionEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 455
8 rbx 0x00000001081a808d _ZN8rubinius11InlineCache11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 629
9 rbx 0x00000001081ab5f6 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 9318
10 rbx 0x00000001082166f7 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1063
11 rbx 0x00000001081a808d _ZN8rubinius11InlineCache11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 629
12 rbx 0x00000001081ab5f6 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 9318
13 rbx 0x00000001082b3ebe _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1150
14 rbx 0x00000001082b4030 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 260
15 rbx 0x00000001082b41d0 _ZN8rubinius16BlockEnvironment10call_underEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 372
16 rbx 0x000000010822c7f3 _ZN8rubinius10Primitives16block_call_underEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 171
17 rbx 0x00000001081a7c88 _ZN8rubinius11InlineCache19empty_cache_privateEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 554
18 rbx 0x00000001081ab95a _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 10186
19 rbx 0x00000001082166f7 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1063
20 rbx 0x00000001081a808d _ZN8rubinius11InlineCache11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 629
21 rbx 0x00000001081ab5f6 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 9318
22 rbx 0x00000001082166f7 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1063
23 rbx 0x00000001082b9b73 _ZN8rubinius12CompiledCode16default_executorEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 469
24 rbx 0x00000001081a7c88 _ZN8rubinius11InlineCache19empty_cache_privateEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 554
25 rbx 0x00000001081ab5f6 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 9318
26 rbx 0x0000000108216b84 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1044
27 rbx 0x00000001082b9b73 _ZN8rubinius12CompiledCode16default_executorEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 469
28 rbx 0x00000001081a7a58 _ZN8rubinius11InlineCache17empty_cache_vcallEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 554
29 rbx 0x00000001081ab4d2 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 9026
30 rbx 0x0000000108216b84 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1044
31 rbx 0x00000001082b9b73 _ZN8rubinius12CompiledCode16default_executorEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 469
32 rbx 0x00000001082e0de7 _ZN8rubinius6Object4sendEPNS_5StateEPNS_9CallFrameEPNS_6SymbolEb + 165
33 rbx 0x000000010819ecfd _ZN8rubinius11Environment19run_from_filesystemEv + 1003
34 rbx 0x000000010834c68c main + 220
35 libdyld.dylib 0x00007fff965137e1 start + 0
 
 
Wrote full error report to: /Users/will/.rubinius_last_error
Run 'rbx report' to submit this crash report!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.