Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.4
-
Fix Version/s: JRuby-OSSL 0.7.6
-
Component/s: C Extensions
-
Labels:None
-
Environment:Mac OS Lion, jruby 1.6.3 (ruby-1.8.7-p330) (2011-10-26 d9009b7) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
-
Number of attachments :
Description
Error is usually along the lines of:
java(61909,0x10d6e6000) malloc: *** error for object 0x7ff14a8307c0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
JRuby 1.6.3 didn't have this issue, JRuby 1.6.4 and 1.6.5 do.
Git bisect (using `ant clean cext` shows the bad commit as:
d9009b75eb0dc63b17c3583549f9042135737224 is the first bad commit
commit d9009b75eb0dc63b17c3583549f9042135737224
Author: Wayne Meissner <wmeissner@gmail.com>
Date: Mon Aug 15 21:14:51 2011 +1000
Improve cext ruby object -> native handle GC correctness
:040000 040000 cf2e090681f2ab84eded1eda90e5daec26ba0fed 13d9c3697b91e2ed4a7303bf7ab84e9670ab0ef0 M cext
:040000 040000 f5900d637bdbd8cb82cc1f40dfc8afe2841108fd e4f2e5f9b43b5bd4d8174ff1005f600df6ba7028 M src
Issue Links
- is related to
-
JRUBY-6441
malloc: *** error for object 0x7f94d1a24650: pointer being freed was not allocated
-
Help! I'm encountering this problem too using Rails 3.1.1 app experiences this on Mac OS 10.6.8 and JRuby 1.6.5:
$ ruby -v # via "rvm install jruby" jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]"rails server" starts up fine, but the first request attempt to it dies with this malloc error.
Is no one else experiencing this? Seems like this would be a common pain point if it's not just me.