From: Tj Holowaychuk Date: 2009-02-26T13:17:21+09:00 Subject: malloc error with String#<< / String#+ The repo is here if anyone wants to take a look http://github.com/visionmedia/dm-forms/tree/master This is the first time I have had a memory error of any kind, heres the output message: forms ruby(7152,0xa041efa0) malloc: *** mmap(size=1073741824) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug ruby(7152,0xa041efa0) malloc: *** mmap(size=1073741824) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug ./examples/../lib/dm-forms/base.rb:21:in `<<': failed to allocate memory (NoMemoryError) from ./examples/../lib/dm-forms/base.rb:21:in `form' from ./examples/../lib/dm-forms/helpers.rb:19:in `form' from examples/benchmarks.rb:11 ... I did a ruby-prof test on that same file and got %self total self wait child calls name 79.15 4.50 4.50 0.00 0.00 174 String#+ 13.24 0.75 0.75 0.00 0.00 84 String#<< 2.23 5.41 0.13 0.00 5.29 21 DataMapper::Form::Helpers#form Looks REALLY odd to me ... when running more than 10-ish times it seems to cause this memory error so something is really wrong that I have done. Any suggestions? if you run 'rake benchmark' you will (probably) see what i mean, I have tried without benchmarking as well this still occurs so something stupid is going on. Thanks in advance -- Posted via http://www.ruby-forum.com/.