MacRuby 0.6 is working well for me but I recently started getting the following malloc error while using the custom page size dialog in Page Setup: MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20275e080, break on auto_refcount_underflow_error to debug. MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x202644e40, break on auto_refcount_underflow_error to debug. MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20083b6c0, break on auto_refcount_underflow_error to debug. This bug generally doesn't cause my MacRuby app to crash but it does crash audio and video streaming applications such as iTunes and EyeTV. Is this a known bug? Thanks, Bob Rice
This may not be a bug. It can mean that something is being Garbage-collected that is not an object. I've run into this a fair bit when using MacRuby. I use MacRuby to access a ObjC library that otherwise does not run in a garbage-collected environment. I typically see this most often when using toll-free bridging. NSMakeCollectable is very handy in these cases. Unfortunately, I've had to use GDB to actually track down the issue every time, as the logging suggests. If it is in code you've written, fixing it up shouldn't be too bad. If it is in an Apple/3rd party binary, please report a bug with the GDB backtrace to the owner. Matt On Jul 26, 2010, at 6:18 PM, Robert Rice wrote:
MacRuby 0.6 is working well for me but I recently started getting the following malloc error while using the custom page size dialog in Page Setup:
MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20275e080, break on auto_refcount_underflow_error to debug. MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x202644e40, break on auto_refcount_underflow_error to debug. MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20083b6c0, break on auto_refcount_underflow_error to debug.
This bug generally doesn't cause my MacRuby app to crash but it does crash audio and video streaming applications such as iTunes and EyeTV.
Is this a known bug?
Thanks, Bob Rice _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Robert, On Jul 26, 2010, at 6:18 PM, Robert Rice wrote:
MacRuby 0.6 is working well for me but I recently started getting the following malloc error while using the custom page size dialog in Page Setup:
MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20275e080, break on auto_refcount_underflow_error to debug. MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x202644e40, break on auto_refcount_underflow_error to debug. MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20083b6c0, break on auto_refcount_underflow_error to debug.
This bug generally doesn't cause my MacRuby app to crash but it does crash audio and video streaming applications such as iTunes and EyeTV.
Is this a known bug?
It may have been fixed in trunk. If you still reproduce the problem with trunk, it would be nice to get a proper backtrace from auto_refcount_underflow_error: 1) Build MacRuby trunk using `rake'. Do not install. 2) Inside the MacRuby build directory, run DYLD_LIBRARY_PATH=. gdb --args /Path/To/YourApp.app/Contents/MacOS/YourApp 3. Inside gdb, type b auto_refcount_underflow_error r Your program should run. Then, do whatever necessary until gdb breaks on auto_refcount_underflow_error. Then, please type thread apply all bt and paste the result here. Thanks :-) Laurent
participants (3)
-
Laurent Sansonetti
-
Matt Massicotte
-
Robert Rice