Error in `convert': corrupted double-linked list

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
pcl
Posts: 11
Joined: 2016-11-16T08:55:51-07:00
Authentication code: 1151

Error in `convert': corrupted double-linked list

Post by pcl »

Perhaps this has been fixed in the latest version, but Gentoo only ships as follows

Code: Select all

pcl@anubis ~/identify -version
Version: ImageMagick 6.9.6-2 Q16 x86_64 2016-11-16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP 
Delegates (built-in): bzlib cairo fftw freetype jng jpeg lcms ltdl pangocairo png rsvg tiff x xml zlib
If it has been fixed I'll try pester the Gentoo maintainers for an update.

I wanted to see how my machine performs, so ran (where coma.png is a local copy of http://www.leyland.vispa.com/images/coma.png) the following as snipped from the fine manual:

Code: Select all

pcl@anubis ~/Pictures/process $ convert -bench 10 coma.png -sharpen 5x2 null:
*** Error in `convert': corrupted double-linked list: 0x0000000001e792f0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x72403)[0x7efd5d7ae403]
/lib64/libc.so.6(+0x77ce6)[0x7efd5d7b3ce6]
/lib64/libc.so.6(+0x77fb1)[0x7efd5d7b3fb1]
/lib64/libc.so.6(+0x79c9b)[0x7efd5d7b5c9b]
/lib64/libc.so.6(__libc_malloc+0x78)[0x7efd5d7b7908]
/usr/lib64/libMagickCore-6.Q16HDRI.so.2(AcquireImageInfo+0x10)[0x7efd5e1394b0]
/usr/lib64/libMagickCore-6.Q16HDRI.so.2(CloneImageInfo+0xe)[0x7efd5e13c03e]
/usr/lib64/libMagickWand-6.Q16HDRI.so.2(MogrifyImageList+0xb8)[0x7efd5ddad718]
/usr/lib64/libMagickWand-6.Q16HDRI.so.2(MogrifyImages+0x1c6)[0x7efd5ddaf306]
/usr/lib64/libMagickWand-6.Q16HDRI.so.2(ConvertImageCommand+0x2490)[0x7efd5dd38f80]
/usr/lib64/libMagickWand-6.Q16HDRI.so.2(MagickCommandGenesis+0x269)[0x7efd5dda3ef9]
convert[0x4008b7]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7efd5d75c620]
convert[0x400919]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:03 7625113                            /usr/bin/convert
00600000-00601000 r--p 00000000 08:03 7625113                            /usr/bin/convert
00601000-00602000 rw-p 00001000 08:03 7625113                            /usr/bin/convert
01e4b000-01eaa000 rw-p 00000000 00:00 0                                  [heap]
7efd3c000000-7efd3c021000 rw-p 00000000 00:00 0 
7efd3c021000-7efd40000000 ---p 00000000 00:00 0 
7efd44000000-7efd4402d000 rw-p 00000000 00:00 0 
7efd4402d000-7efd48000000 ---p 00000000 00:00 0 
7efd48000000-7efd4802d000 rw-p 00000000 00:00 0 
7efd4802d000-7efd4c000000 ---p 00000000 00:00 0 
7efd4c000000-7efd4c02d000 rw-p 00000000 00:00 0 
7efd4c02d000-7efd50000000 ---p 00000000 00:00 0 
7efd50000000-7efd5002d000 rw-p 00000000 00:00 0 
7efd5002d000-7efd54000000 ---p 00000000 00:00 0 
7efd54000000-7efd5402d000 rw-p 00000000 00:00 0 
7efd5402d000-7efd58000000 ---p 00000000 00:00 0 
7efd58278000-7efd58279000 ---p 00000000 00:00 0 
7efd58279000-7efd58a79000 rw-p 00000000 00:00 0                          [stack:21582]
7efd58a79000-7efd58a7a000 ---p 00000000 00:00 0 
7efd58a7a000-7efd5927a000 rw-p 00000000 00:00 0                          [stack:21581]
7efd5927a000-7efd5927b000 ---p 00000000 00:00 0 
7efd5927b000-7efd59a7b000 rw-p 00000000 00:00 0                          [stack:21580]
7efd59a7b000-7efd59a7c000 ---p 00000000 00:00 0 
7efd59a7c000-7efd5a27c000 rw-p 00000000 00:00 0                          [stack:21579]
7efd5a27c000-7efd5a27d000 ---p 00000000 00:00 0 
7efd5a27d000-7efd5ab7e000 rw-p 00000000 00:00 0                          [stack:21578]
7efd5ab7e000-7efd5aba5000 r-xp 00000000 08:03 7629772                    /usr/lib64/ImageMagick-6.9.6/modules-Q16HDRI/coders/png.so
7efd5aba5000-7efd5ada4000 ---p 00027000 08:03 7629772                    /usr/lib64/ImageMagick-6.9.6/modules-Q16HDRI/coders/png.so
7efd5ada4000-7efd5ada5000 r--p 00026000 08:03 7629772                    /usr/lib64/ImageMagick-6.9.6/modules-Q16HDRI/coders/png.so
7efd5ada5000-7efd5ada6000 rw-p 00027000 08:03 7629772                    /usr/lib64/ImageMagick-6.9.6/modules-Q16HDRI/coders/png.so
7efd5ada6000-7efd5af74000 r--p 00000000 08:03 16519734                   /usr/lib64/locale/locale-archive
7efd5af74000-7efd5af88000 r-xp 00000000 08:03 7488223                    /usr/lib64/libbsd.so.0.8.2
7efd5af88000-7efd5b187000 ---p 00014000 08:03 7488223                    /usr/lib64/libbsd.so.0.8.2
7efd5b187000-7efd5b188000 r--p 00013000 08:03 7488223                    /usr/lib64/libbsd.so.0.8.2
7efd5b188000-7efd5b189000 rw-p 00014000 08:03 7488223                    /usr/lib64/libbsd.so.0.8.2
7efd5b189000-7efd5b18a000 rw-p 00000000 00:00 0 
7efd5b18a000-7efd5b18f000 r-xp 00000000 08:03 9839407                    /usr/lib64/libXdmcp.so.6.0.0
7efd5b18f000-7efd5b38e000 ---p 00005000 08:03 9839407                    /usr/lib64/libXdmcp.so.6.0.0
7efd5b38e000-7efd5b38f000 r--p 00004000 08:03 9839407                    /usr/lib64/libXdmcp.so.6.0.0
7efd5b38f000-7efd5b390000 rw-p 00005000 08:03 9839407                    /usr/lib64/libXdmcp.so.6.0.0
7efd5b390000-7efd5b392000 r-xp 00000000 08:03 8149280                    /usr/lib64/libXau.so.6.0.0
7efd5b392000-7efd5b592000 ---p 00002000 08:03 8149280                    /usr/lib64/libXau.so.6.0.0
7efd5b592000-7efd5b593000 r--p 00002000 08:03 8149280                    /usr/lib64/libXau.so.6.0.0
7efd5b593000-7efd5b594000 rw-p 00003000 08:03 8149280                    /usr/lib64/libXau.so.6.0.0
7efd5b594000-7efd5b596000 r-xp 00000000 08:03 8651275                    /lib64/libdl-2.22.so
7efd5b596000-7efd5b796000 ---p 00002000 08:03 8651275                    /lib64/libdl-2.22.so
7efd5b796000-7efd5b797000 r--p 00002000 08:03 8651275                    /lib64/libdl-2.22.so
7efd5b797000-7efd5b798000 rw-p 00003000 08:03 8651275                    /lib64/libdl-2.22.so
7efd5b798000-7efd5b7c0000 r-xp 00000000 08:03 9859996                    /usr/lib64/libxcb.so.1.1.0
7efd5b7c0000-7efd5b9bf000 ---p 00028000 08:03 9859996                    /usr/lib64/libxcb.so.1.1.0
7efd5b9bf000-7efd5b9c0000 r--p 00027000 08:03 9859996                    /usr/lib64/libxcb.so.1.1.0
7efd5b9c0000-7efd5b9c1000 rw-p 00028000 08:03 9859996                    /usr/lib64/libxcb.so.1.1.0
7efd5b9c1000-7efd5b9f5000 r-xp 00000000 08:03 7486124                    /usr/lib64/libpng16.so.16.21.0
7efd5b9f5000-7efd5bbf4000 ---p 00034000 08:03 7486124                    /usr/lib64/libpng16.so.16.21.0
7efd5bbf4000-7efd5bbf5000 r--p 00033000 08:03 7486124                    /usr/lib64/libpng16.so.16.21.0
7efd5bbf5000-7efd5bbf6000 rw-p 00034000 08:03 7486124                    /usr/lib64/libpng16.so.16.21.0
7efd5bbf6000-7efd5bc0c000 r-xp 00000000 08:03 8819176                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7efd5bc0c000-7efd5be0b000 ---p 00016000 08:03 8819176                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7efd5be0b000-7efd5be0c000 r--p 00015000 08:03 8819176                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7efd5be0c000-7efd5be0d000 rw-p 00016000 08:03 8819176                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7efd5be0d000-7efd5be23000 r-xp 00000000 08:03 8819310                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgomp.so.1.0.0
7efd5be23000-7efd5c022000 ---p 00016000 08:03 8819310                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgomp.so.1.0.0
7efd5c022000-7efd5c023000 r--p 00015000 08:03 8819310                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgomp.so.1.0.0
7efd5c023000-7efd5c024000 rw-p 00016000 08:03 8819310                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgomp.so.1.0.0
7efd5c024000-7efd5c121000 r-xp 00000000 08:03 8651274                    /lib64/libm-2.22.so
7efd5c121000-7efd5c320000 ---p 000fd000 08:03 8651274                    /lib64/libm-2.22.so
7efd5c320000-7efd5c321000 r--p 000fc000 08:03 8651274                    /lib64/libm-2.22.so
7efd5c321000-7efd5c322000 rw-p 000fd000 08:03 8651274                    /lib64/libm-2.22.so
7efd5c322000-7efd5c32b000 r-xp 00000000 08:03 7478150                    /usr/lib64/libltdl.so.7.3.1
7efd5c32b000-7efd5c52a000 ---p 00009000 08:03 7478150                    /usr/lib64/libltdl.so.7.3.1
7efd5c52a000-7efd5c52b000 r--p 00008000 08:03 7478150                    /usr/lib64/libltdl.so.7.3.1
7efd5c52b000-7efd5c52c000 rw-p 00009000 08:03 7478150                    /usr/lib64/libltdl.so.7.3.1
7efd5c52c000-7efd5c541000 r-xp 00000000 08:03 7352013                    /lib64/libz.so.1.2.8
7efd5c541000-7efd5c740000 ---p 00015000 08:03 7352013                    /lib64/libz.so.1.2.8
7efd5c740000-7efd5c741000 r--p 00014000 08:03 7352013                    /lib64/libz.so.1.2.8
7efd5c741000-7efd5c742000 rw-p 00015000 08:03 7352013                    /lib64/libz.so.1.2.8
7efd5c742000-7efd5c751000 r-xp 00000000 08:03 7476125                    /lib64/libbz2.so.1.0.6
7efd5c751000-7efd5c950000 ---p 0000f000 08:03 7476125                    /lib64/libbz2.so.1.0.6
7efd5c950000-7efd5c951000 r--p 0000e000 08:03 7476125                    /lib64/libbz2.so.1.0.6
7efd5c951000-7efd5c952000 rw-p 0000f000 08:03 7476125                    /lib64/libbz2.so.1.0.6
7efd5c952000-7efd5ca8e000 r-xp 00000000 08:03 9965643                    /usr/lib64/libX11.so.6.3.0
7efd5ca8e000-7efd5cc8d000 ---p 0013c000 08:03 9965643                    /usr/lib64/libX11.so.6.3.0
7efd5cc8d000-7efd5cc8f000 r--p 0013b000 08:03 9965643                    /usr/lib64/libX11.so.6.3.0
7efd5cc8f000-7efd5cc94000 rw-p 0013d000 08:03 9965643                    /usr/lib64/libX11.so.6.3.0
7efd5cc94000-7efd5cc95000 rw-p 00000000 00:00 0 
7efd5cc95000-7efd5cca6000 r-xp 00000000 08:03 8150561                    /usr/lib64/libXext.so.6.4.0
7efd5cca6000-7efd5cea5000 ---p 00011000 08:03 8150561                    /usr/lib64/libXext.so.6.4.0
7efd5cea5000-7efd5cea6000 r--p 00010000 08:03 8150561                    /usr/lib64/libXext.so.6.4.0
7efd5cea6000-7efd5cea7000 rw-p 00011000 08:03 8150561                    /usr/lib64/libXext.so.6.4.0
7efd5cea7000-7efd5d023000 r-xp 00000000 08:03 10239193                   /usr/lib64/libfftw3.so.3.4.4
7efd5d023000-7efd5d223000 ---p 0017c000 08:03 10239193                   /usr/lib64/libfftw3.so.3.4.4
7efd5d223000-7efd5d230000 r--p 0017c000 08:03 10239193                   /usr/lib64/libfftw3.so.3.4.4
7efd5d230000-7efd5d231000 rw-p 00189000 08:03 10239193                   /usr/lib64/libfftw3.so.3.4.4
7efd5d231000-7efd5d2dc000 r-xp 00000000 08:03 7615878                    /usr/lib64/libfreetype.so.6.12.3
7efd5d2dc000-7efd5d4dc000 ---p 000ab000 08:03 7615878                    /usr/lib64/libfreetype.so.6.12.3
7efd5d4dc000-7efd5d4e2000 r--p 000ab000 08:03 7615878                    /usr/lib64/libfreetype.so.6.12.3
7efd5d4e2000-7efd5d4e3000 rw-p 000b1000 08:03 7615878                    /usr/lib64/libfreetype.so.6.12.3
7efd5d4e3000-7efd5d537000 r-xp 00000000 08:03 7482660                    /usr/lib64/liblcms2.so.2.0.6
7efd5d537000-7efd5d736000 ---p 00054000 08:03 7482660                    /usr/lib64/liblcms2.so.2.0.6
7efd5d736000-7efd5d737000 r--p 00053000 08:03 7482660                    /usr/lib64/liblcms2.so.2.0.6
7efd5d737000-7efd5d73c000 rw-p 00054000 08:03 7482660                    /usr/lib64/liblcms2.so.2.0.6
7efd5d73c000-7efd5d8cf000 r-xp 00000000 08:03 8651297                    /lib64/libc-2.22.so
7efd5d8cf000-7efd5dacf000 ---p 00193000 08:03 8651297                    /lib64/libc-2.22.so
7efd5dacf000-7efd5dad3000 r--p 00193000 08:03 8651297                    /lib64/libc-2.22.so
7efd5dad3000-7efd5dad5000 rw-p 00197000 08:03 8651297                    /lib64/libc-2.22.so
7efd5dad5000-7efd5dad9000 rw-p 00000000 00:00 0 
7efd5dad9000-7efd5daf0000 r-xp 00000000 08:03 8651280                    /lib64/libpthread-2.22.so
7efd5daf0000-7efd5dcef000 ---p 00017000 08:03 8651280                    /lib64/libpthread-2.22.so
7efd5dcef000-7efd5dcf0000 r--p 00016000 08:03 8651280                    /lib64/libpthread-2.22.so
7efd5dcf0000-7efd5dcf1000 rw-p 00017000 08:03 8651280                    /lib64/libpthread-2.22.so
7efd5dcf1000-7efd5dcf5000 rw-p 00000000 00:00 0 
7efd5dcf5000-7efd5de19000 r-xp 00000000 08:03 7608520                    /usr/lib64/libMagickWand-6.Q16HDRI.so.2.0.0
7efd5de19000-7efd5e018000 ---p 00124000 08:03 7608520                    /usr/lib64/libMagickWand-6.Q16HDRI.so.2.0.0
7efd5e018000-7efd5e019000 r--p 00123000 08:03 7608520                    /usr/lib64/libMagickWand-6.Q16HDRI.so.2.0.0
7efd5e019000-7efd5e01d000 rw-p 00124000 08:03 7608520                    /usr/lib64/libMagickWand-6.Q16HDRI.so.2.0.0
7efd5e01d000-7efd5e272000 r-xp 00000000 08:03 7624915                    /usr/lib64/libMagickCore-6.Q16HDRI.so.2.0.0
7efd5e272000-7efd5e472000 ---p 00255000 08:03 7624915                    /usr/lib64/libMagickCore-6.Q16HDRI.so.2.0.0
7efd5e472000-7efd5e486000 r--p 00255000 08:03 7624915                    /usr/lib64/libMagickCore-6.Q16HDRI.so.2.0.0
7efd5e486000-7efd5e4c7000 rw-p 00269000 08:03 7624915                    /usr/lib64/libMagickCore-6.Q16HDRI.so.2.0.0
7efd5e4c7000-7efd5e4e6000 rw-p 00000000 00:00 0 
7efd5e4e6000-7efd5e508000 r-xp 00000000 08:03 8652266                    /lib64/ld-2.22.so
7efd5e6bc000-7efd5e6c7000 rw-p 00000000 00:00 0 
7efd5e704000-7efd5e705000 rw-p 00000000 00:00 0 
7efd5e705000-7efd5e706000 r--p 00000000 08:03 8650964                    /usr/share/locale/en_GB/LC_MESSAGES/libc.mo
7efd5e706000-7efd5e707000 rw-p 00000000 00:00 0 
7efd5e707000-7efd5e708000 r--p 00021000 08:03 8652266                    /lib64/ld-2.22.so
7efd5e708000-7efd5e709000 rw-p 00022000 08:03 8652266                    /lib64/ld-2.22.so
7efd5e709000-7efd5e70a000 rw-p 00000000 00:00 0 
7ffeb44ff000-7ffeb4520000 rw-p 00000000 00:00 0                          [stack]
7ffeb45ec000-7ffeb45ee000 r--p 00000000 00:00 0                          [vvar]
7ffeb45ee000-7ffeb45f0000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Error in `convert': corrupted double-linked list

Post by magick »

We're running ImageMagick 6.9.6-6 and 7.0.3-7 built with the memory sanitizer. Both versions ran against coma.png without complaint. We also used valgrind to uncover any runtime flaws, none where found. Not sure why its fails for you.
pcl
Posts: 11
Joined: 2016-11-16T08:55:51-07:00
Authentication code: 1151

Re: Error in `convert': corrupted double-linked list

Post by pcl »

Weird. Thanks for checking. It could well be a Heisenbug which goes away when debugging mechanisms such as valgrind are in place. It might be some strange effect of the compilation options on this Gentoo installation.

As it has only been noticed for the one image and could well go away with the next rebuild, I suggest no further action is taken pro tem.
Post Reply