From: SourceForge.net <no...@so...> - 2009-08-12 20:48:20
|
Bugs item #2819312, was opened at 2009-07-10 01:10 Message generated for change (Settings changed) made by spamatica You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=604222&aid=2819312&group_id=93414 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Gerardo Exequiel Pozzi (djgera) Assigned to: Nobody/Anonymous (nobody) Summary: 1.0rc3 malloc problem w/glibc-2.10 on x86_64 (with fix) Initial Comment: Running muse 0.9 or 1.0rc3 on x86_64 with glibc 2.10.1 triggers this memory allocation error: $ muse muse: malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed. Aborted Running with MALLOC_CHECK_=1 solves the problem showing errors about free(). I compiled with debug symbols and running under gdb to locate the error. I created a simple patch, that solves the problem, but maybe can be wrong (please check it), just add +2 bytes in 'esize' Pool::grow @ memory.cpp Take care. ---------------------------------------------------------------------- Comment By: Robert Jonsson (spamatica) Date: 2009-07-15 23:12 Message: Right, the fix is probably not optimal. I'm going to add it with clear comments as to it's origins. ---------------------------------------------------------------------- Comment By: Orcan Ogetbil (ogetbilo) Date: 2009-07-14 22:07 Message: I confirm the error. This stops muse staritng with glibc-2.10 on x86_64. glibc-2.9, on the other hand, doesn't have this problem. With the attached patch, muse starts with glibc-2.10 on x86_64. But I am not sure either if it is a correct fix. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=604222&aid=2819312&group_id=93414 |