# \[bug:trunk\] 100000.times { Time.allocate }: \[FATAL\] failed to allocate memory

**URL:** <https://www.ruby-forum.com/t/bug-trunk-100000-times-time-allocate-fatal-failed-to-allocate-memory/189479>\
**Category:** Development\
**Created:** [June 1, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/bug-trunk-100000-times-time-allocate-fatal-failed-to-allocate-memory/189479 "2010-06-01T16:08:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [June 1, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/bug-trunk-100000-times-time-allocate-fatal-failed-to-allocate-memory/189479/1 "2010-06-01T16:08:22Z")

</div>

e$B0J2\<$N$h$&$Ke(B  
[FATAL] failed to allocate memory  
e$B$H$$$&%(%i!\<$,=P$^$9!#e(B

% ./ruby -ve ‘100000.times { Time.allocate }’  
ruby 1.9.3dev (2010-05-28 trunk 28053) [i686-linux]  
[FATAL] failed to allocate memory

e$B$3$3$G$Oe(B Time e$B%\*%V%8%’%/%H$r$?$/$5$s@8@.$7$F$$$^$9$,!"e(B  
e$B;2\>H$O$9$0$K\>C$($k$O$:$J$N$G!"e(BGC e$B$5$l$F%a%b%j$Oe(B  
e$BB-$j$k$O$:$G$O$J$$$G$7$g$&$+!#e(B

LazySweep e$B$,F~$kA0$Ne(B r28052 e$B$G$O%(%i!\<$K$O$J$j$^$;$s$G$7$?!#e(B

% ./ruby -ve ‘100000.times { Time.allocate }’  
ruby 1.9.3dev (2010-05-28 trunk 28052) [i686-linux]

---

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [June 6, 2010, 6:17am UTC](https://www.ruby-forum.com/t/bug-trunk-100000-times-time-allocate-fatal-failed-to-allocate-memory/189479/2 "2010-06-06T06:17:45Z")

</div>

e$B%A%1%C%He(B #3377 e$B$,99?7$5$l$^$7$?!#e(B (by Anonymous)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r28185.  
Akira, thank you for reporting this issue.  
Your contribution to Ruby is greatly appreciated.  
May Ruby be with you.

* * *

[http://redmine.ruby-lang.org/issues/show/3377](http://redmine.ruby-lang.org/issues/show/3377)
