Fantastic! That helped me track down the problem and it's working now. On Feb 1, 2016 11:10 AM, "Matt Bauman" <mbau...@gmail.com> wrote:
> Can you reproduce it if you run julia with the --check-bounds=yes command > line argument? > > On Monday, February 1, 2016 at 1:55:25 PM UTC-5, Madeleine Udell wrote: >> >> This is on a mac; we've got a variety of function calls giving errors, >> some with probability ~.5 and some every time we've run them. >> >> On Mon, Feb 1, 2016 at 10:51 AM, Yichao Yu <yyc...@gmail.com> wrote: >> >>> On Mon, Feb 1, 2016 at 1:39 PM, Madeleine Udell >>> <madelei...@gmail.com> wrote: >>> > Hi all, >>> > >>> > I'm running into some memory management issues: in particular, a malloc >>> > error that claims I am modifying an object after freeing it: see this >>> > question. The error is, >>> > >>> > julia(9849,0x7fff705d0300) malloc: *** error for object 0x7f96a332f408: >>> > incorrect checksum for freed object - object was probably modified >>> after >>> > being freed. *** set a breakpoint in malloc_error_break to debug >>> > >>> > I'm not sure how to debug it: what's the best way to search for code >>> that >>> > might be modifying an object after freeing it in Julia? (For example, I >>> > don't know what or where malloc_error_break is.) >>> >>> Which platform is this and how repeatable is it? >>> >>> > >>> > Thanks! >>> > Madeleine >>> >> >> >> >> -- >> Madeleine Udell >> Postdoctoral Fellow at the Center for the Mathematics of Information >> California Institute of Technology >> *https://courses2.cit.cornell.edu/mru8 >> <https://courses2.cit.cornell.edu/mru8>* >> (415) 729-4115 >> >