Created
April 27, 2013 01:31
-
-
Save clifff/5471511 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3p392 :003 > arr = []; arr[10000000000000001] = 1 | |
irb(16545,0x7fff795b9180) malloc: *** mmap(size=80000000000004096) failed (error code=12) | |
*** error: can't allocate region | |
*** set a breakpoint in malloc_error_break to debug | |
irb(16545,0x7fff795b9180) malloc: *** mmap(size=80000000000004096) failed (error code=12) | |
*** error: can't allocate region | |
*** set a breakpoint in malloc_error_break to debug | |
NoMemoryError: failed to allocate memory | |
from (irb):3:in `[]=' | |
from (irb):3 | |
from /Users/clifff/./.rvm/rubies/ruby-1.9.3-p392/bin/irb:16:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment