Page 1 of 1

malloc.c:3096: sYSMALLOc: Assertion failed

Posted: 2012-07-31T05:37:10-07:00
by voda
Hello, after upgrading ImageMagick convert fails on some git images with output:

Code: Select all

$ convert 2312515.gif -resize '261x9' a.gif
convert: malloc.c:3096: 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
versions affected: 6.7.8-3 2012-07-17 (on Slackware) and 6.7.7-10 (on Debian)
with version 6.6.0-5 2010-03-30 it work

The image causing this can be downloaded from http://s14.postimage.org/n4b2ztyg1/2312515.gif.

Thanks
voda

Re: malloc.c:3096: sYSMALLOc: Assertion failed

Posted: 2012-07-31T05:40:59-07:00
by magick
We can reproduce the problem you posted and have a patch. Look for it in the next point release of ImageMagick within a week. Thanks.