Subject: Re: 24.3.50; reading certain emails containing images in mu4e causes segfault

From: Nicolas Avrutin <[email-masked]>
Date: Thu, 07 Mar 2013 12:57:14 -0500

Took some finicking with the mu4e elisp to get it to run under temacs
(temacs doesn't like sendmail), but I got it. Valgrind info below. I can
leave that valgrind session open for a few days in case you want me
check anything else from within valgrind (if so, give me specific
commands to run, I haven't used valgrind beyond memcheck).

Also, I found this bug on the mu4e issue tracker, though it doesn't look
like there is any useful information there:
https://github.com/djcb/mu/issues/143[1]

Here's what valgrind gives me:

==5565== Invalid write of size 4
==5565==    at 0x8AD3791: AcquireQuantumInfo (in /usr/lib/libMagickCore-Q16.so.7.0.0)
==5565==    by 0x2373680E: ??? (in /usr/lib/ImageMagick-6.8.2/modules-Q16/coders/png.so)
==5565==    by 0x2373762F: ??? (in /usr/lib/ImageMagick-6.8.2/modules-Q16/coders/png.so)
==5565==    by 0x8A093BF: ReadImage (in /usr/lib/libMagickCore-Q16.so.7.0.0)
==5565==    by 0x870C5BB: MagickReadImage (in /usr/lib/libMagickWand-Q16.so.7.0.0)
==5565==    by 0x6748D7: imagemagick_load_image (image.c:7685)
==5565==    by 0x67537D: imagemagick_load (image.c:7978)
==5565==    by 0x66BF56: lookup_image (image.c:1697)
==5565==    by 0x43B844: handle_single_display_spec (xdisp.c:5017)
==5565==    by 0x43A0AF: handle_display_spec (xdisp.c:4515)
==5565==    by 0x439EE8: handle_display_prop (xdisp.c:4467)
==5565==    by 0x437194: handle_stop (xdisp.c:3219)
==5565==  Address 0x60 is not stack'd, malloc'd or (recently) free'd

Backtrace:
./temacs[0x55a542]
./temacs[0x536722]
./temacs[0x55a064]
./temacs[0x55a039]
./temacs[0x55a09a]
/usr/lib/libpthread.so.0(+0xf1e0)[0xaca31e0]
/usr/lib/libMagickCore-Q16.so.7(AcquireQuantumInfo+0x61)[0x8ad3791]
/usr/lib/ImageMagick-6.8.2/modules-Q16/coders/png.so(+0x1780f)[0x2373680f]
/usr/lib/ImageMagick-6.8.2/modules-Q16/coders/png.so(+0x18630)[0x23737630]
/usr/lib/libMagickCore-Q16.so.7(ReadImage+0x190)[0x8a093c0]
/usr/lib/libMagickWand-Q16.so.7(MagickReadImage+0x6c)[0x870c5bc]
./temacs[0x6748d8]
./temacs[0x67537e]
./temacs[0x66bf57]
./temacs[0x43b845]
./temacs[0x43a0b0]
./temacs[0x439ee9]
./temacs[0x437195]
./temacs[0x44373f]
./temacs[0x43fbf6]
./temacs[0x461ae1]
./temacs[0x458e73]
./temacs[0x4568e0]
./temacs[0x451517]
./temacs[0x5d2f10]
./temacs[0x4508c0]
./temacs[0x44e650]
./temacs[0x53cf34]
./temacs[0x549c0d]
./temacs[0x53af8d]
./temacs[0x5d2d95]
./temacs[0x53a8d6]
./temacs[0x5d2769]
./temacs[0x53a837]
./temacs[0x53a002]
./temacs[0x53a1a5]
./temacs[0x5d5f73]
./temacs[0x61d1ca]
./temacs[0x5d66d0]
./temacs[0x5d6184]
./temacs[0x5d536a]

-- 
Nicolas Avrutin