[Top][All Lists]

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

Re: Bug in libobjc2 gc_none free

From: Justin Hibbits
Subject: Re: Bug in libobjc2 gc_none free
Date: Sun, 31 Jul 2011 14:08:09 -0400

I was working on my own Foundation implementation, which I do use class_createInstance()/object_dispose() (it's there, why not use it?).

- Justin

On Jul 31, 2011, at 12:33 PM, David Chisnall wrote:

Thanks.  This should be fixed in r33665.

Out of interest, what were you running that triggered that bug? It's only visible with code using class_createInstance() / object_dispose(), and I've not seen any code that actually uses those two functions.


On 29 Jul 2011, at 04:17, Justin Hibbits wrote:

The gc_none.c free() is simply libc's free(), but gc- >allocate_class() returns ((id)ptr + 1). This mismatch causes segfaults on FreeBSD. Attached is a patch that fixes this, but only for this one scenario. A better patch is needed for real.

- Justin
Gnustep-dev mailing list

-- Sent from my STANTEC-ZEBRA

reply via email to

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