#1449: free() called on collectable block with <0x…> with refcount 0 --------------------------------+------------------------------------------- Reporter: l.rieder@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: malloc --------------------------------+------------------------------------------- I have implemented NSJSONSerialization support for the multi_json gem. The implementation went fine, and I could finish a pretty decent MultiJson Engine standing on the shoulders of the Cocoa framework. I managed to implement all features that a MultiJson Engine requires, and the specs are all green. But I keep getting those malloc warnings/errors. They make me feel uncertain about the stability. {{{ $ git clone git@github.com:Overbryd/multi_json.git $ cd multi_json $ git checkout macruby_nsjsonserialization $ macgem install rspec simplecov yajl-ruby json $ /usr/bin/rspec spec/ ...Warning: multi_json is using default ok_json engine. Suggested action: require and load an appropriate JSON library. ........................macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40153f540 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4014cf840 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4016d4500 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4015799e0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x401599b20 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4014becc0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40165c8a0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40161c1a0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4014d5460 with refcount 0 (ignored) ................................... macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4014371e0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4014679a0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40146ab80 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40146c860 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40158ace0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40147fac0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40155b020 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4014a69a0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4015683a0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x401572a60 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x40157a800 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x4015845c0 with refcount 0 (ignored) macruby(97726,0x100ef1000) malloc: *** free() called on collectable block with 0x401483320 with refcount 0 (ignored) Finished in 1.06 seconds 62 examples, 0 failures Randomized with seed 21550 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1449> MacRuby <http://macruby.org/>