Hi, On Mon, 4 Dec 2006, Troy Heber wrote:
> On 12/01/06 00:40, Roman Zippel wrote: > > A few structures are not evenly dividable by word_t and thus too > > little memory is allocated. > > I'm trying to figure out how this is a bug in Judy. It seems like the > allocator is simply broken, what does it do for a packed structure? Is > there another bug filed against libc for this as well? It's a bug in judy. Check src/Judy1/Judy1MallocIF.c and src/JudyL/JudyLMallocIF.c. There are a lot of "sizeof(x) / cJU_BYTESPERWORD" and if the structure size isn't a multiple of word_t size, too little memory is allocated. An alternative fix would to replace these with JU_BYTESTOWORDS(), which does proper rounding. > I'm down > grading the severity to normal for now. Well, this bug makes judy unusable for m68k right now. bye, Roman -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]