gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: double free or corruption in base Rev. 39909 2016-06-22 16:14:05


From: Richard Frith-Macdonald
Subject: Re: double free or corruption in base Rev. 39909 2016-06-22 16:14:05
Date: Fri, 24 Jun 2016 05:55:03 +0100

> 
> 
> but then I did the same in plain C (see Test_MariaDB_main.c) and there it 
> works. Or in other words: when I remove the ObjC runtime and the very little 
> ObjC stuff, the crash doesn't occur.

That's not really telling indicative of anything ... different code has memory 
laid out differently, so overruns will write on different parts of the memory 
and cause different crashes (or often no crash at all).
You therefore have to assume that the problem could be anywhere, and try to 
narrow it down using frequent checks (mcheck_protect etc).
There is also the problem that adding calls to diagnostic functions could in 
itself hide the bug ... so non-intrusive methods like valgrind are also worth 
trying.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]