Bugs item #25366, was opened at 2009-04-11 01:38 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=25366&group_id=494
Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Jeff Smick (sprsquish) >Assigned to: Charlie Savage (cfis) Summary: malloc error in v1.1.3 on OS X Leopard Initial Comment: I'm getting the following error when using v1.1.3 on OS X Leopard. I can reproduce it consistently. I know that it wont happen when I turn off garbage collection or if the script never reaches a point where garbage collection is needed. I also tried running the same code against v1.1.2 and did not receive the error. ruby(74165) malloc: *** error for object 0x1808910: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug ruby(74165) malloc: *** error for object 0x17affe0: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug ruby(74165) malloc: *** error for object 0x17a7e70: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug This happens when I run the test suite for Blather. The code for doing so is below: git clone git://github.com/sprsquish/blather.git cd blather rake build rake --Jeff ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-04-22 22:55 Message: This should be fixed in the latest release. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Alexander Seith (alxs) Date: 2009-04-17 12:05 Message: I'm running into a similar problem as Jeff with v1.1.3 on OSX 10.5 and believe that it's the same issue. ruby(26242) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug ruby(26242) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug ruby(26242) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug ruby(26242) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug ruby(26242) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug [FATAL] failed to allocate memory I have a GC.start call in my code and disabled that one, but it didn't resolve the memory exhaustion. Also, I didn't try out v1.1.2, but everything was working fine with v0.9.8. -- Alex ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=25366&group_id=494 _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel