Project

General

Profile

Bug #10913

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

~~~ 
 [shreyas@~ (master)]$ rvm use 2.1.2 
 Using /Users/shreyas/.rvm/gems/ruby-2.1.2 
 [shreyas@~ (master)]$ pry 
 `[1] pry(main)> [1,2,3].each_slice(50000000000000000).to_a 
 pry(948,0x7fff73abb180) malloc: *** mmap(size=400000000000000000) failed (error code=12) 
 *** error: can't allocate region 
 *** set a breakpoint in malloc_error_break to debug 
 pry(948,0x7fff73abb180) malloc: *** mmap(size=400000000000000000) failed (error code=12) 
 *** error: can't allocate region 
 *** set a breakpoint in malloc_error_break to debug 
 NoMemoryError: failed to allocate memory 
 from (pry):1:in `each_slice' 
 [2] pry(main)>` 
 ~~~

Back