Invalid pointer on PCL conversion

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
lcohen999
Posts: 7
Joined: 2010-01-18T13:30:56-07:00
Authentication code: 8675309

Invalid pointer on PCL conversion

Post by lcohen999 »

Code: Select all

[root@iybcons coders]# convert /u/scrapit/pictures/01_S_00046481_01_T_0015.jpg /
tmp/lorne33.pcl
*** glibc detected *** convert: free(): invalid pointer: 0x000000001d22ff20 ***
======= Backtrace: =========
/lib64/libc.so.6[0x31db67230f]
/lib64/libc.so.6(cfree+0x4b)[0x31db67276b]
/usr/lib64/libMagickCore.so.4(RelinquishMagickMemory+0xf)[0x2b0f83041f0f]
/usr/lib64/ImageMagick-6.6.8/modules-Q16/coders/pcl.so[0x2b0f87606c66]
/usr/lib64/libMagickCore.so.4(WriteImage+0x585)[0x2b0f82fab545]
/usr/lib64/libMagickCore.so.4(WriteImages+0x25a)[0x2b0f82fabb3a]
/usr/lib64/libMagickWand.so.4(ConvertImageCommand+0x53d6)[0x2b0f833f3746]
/usr/lib64/libMagickWand.so.4(MagickCommandGenesis+0x329)[0x2b0f8346b0f9]
convert(ConvertImageCommand+0x165)[0x400945]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x31db61d994]
convert(ConvertImageCommand+0x59)[0x400839]
======= Memory map: ========
00400000-00401000 r-xp 00000000 fd:00 2137144                            /usr/bi
n/convert
00600000-00601000 rwxp 00000000 fd:00 2137144                            /usr/bi
n/convert
1d20f000-1d253000 rwxp 1d20f000 00:00 0                                  [heap]
31db200000-31db21c000 r-xp 00000000 fd:00 3211268                        /lib64/
ld-2.5.so
31db41b000-31db41c000 r-xp 0001b000 fd:00 3211268                        /lib64/
ld-2.5.so
31db41c000-31db41d000 rwxp 0001c000 fd:00 3211268                        /lib64/
ld-2.5.so
31db600000-31db74e000 r-xp 00000000 fd:00 3211275                        /lib64/
libc-2.5.so
31db74e000-31db94d000 ---p 0014e000 fd:00 3211275                        /lib64/
libc-2.5.so
31db94d000-31db951000 r-xp 0014d000 fd:00 3211275                        /lib64/
libc-2.5.so
31db951000-31db952000 rwxp 00151000 fd:00 3211275                        /lib64/
libc-2.5.so
31db952000-31db957000 rwxp 31db952000 00:00 0
31dba00000-31dba02000 r-xp 00000000 fd:00 3211289                        /lib64/
libdl-2.5.so
31dba02000-31dbc02000 ---p 00002000 fd:00 3211289                        /lib64/
libdl-2.5.so
31dbc02000-31dbc03000 r-xp 00002000 fd:00 3211289                        /lib64/
libdl-2.5.so
31dbc03000-31dbc04000 rwxp 00003000 fd:00 3211289                        /lib64/
libdl-2.5.so
31dbe00000-31dbe16000 r-xp 00000000 fd:00 3211285                        /lib64/
libpthread-2.5.so
31dbe16000-31dc015000 ---p 00016000 fd:00 3211285                        /lib64/
libpthread-2.5.so
31dc015000-31dc016000 r-xp 00015000 fd:00 3211285                        /lib64/
libpthread-2.5.so
31dc016000-31dc017000 rwxp 00016000 fd:00 3211285                        /lib64/
libpthread-2.5.so
31dc017000-31dc01b000 rwxp 31dc017000 00:00 0
31dc200000-31dc214000 r-xp 00000000 fd:00 2139933                        /usr/li
b64/libz.so.1.2.3
31dc214000-31dc413000 ---p 00014000 fd:00 2139933                        /usr/li
b64/libz.so.1.2.3
31dc413000-31dc414000 rwxp 00013000 fd:00 2139933                        /usr/li
b64/libz.so.1.2.3
31dc600000-31dc682000 r-xp 00000000 fd:00 3211505                        /lib64/
libm-2.5.so
31dc682000-31dc881000 ---p 00082000 fd:00 3211505                        /lib64/
libm-2.5.so
31dc881000-31dc882000 r-xp 00081000 fd:00 3211505                        /lib64/
libm-2.5.so
31dc882000-31dc883000 rwxp 00082000 fd:00 3211505                        /lib64/
libm-2.5.so
31dca00000-31dca32000 r-xp 00000000 fd:00 2141769                        /usr/li
b64/liblcms.so.1.0.18
31dca32000-31dcc32000 ---p 00032000 fd:00 2141769                        /usr/li
b64/liblcms.so.1.0.18
31dcc32000-31dcc34000 rwxp 00032000 fd:00 2141769                        /usr/li
b64/liblcms.so.1.0.18
31dcc34000-31dcc36000 rwxp 31dcc34000 00:00 0
31dce00000-31dce5b000 r-xp 00000000 fd:00 2138242                        /usr/li
b64/libXt.so.6.0.0
31dce5b000-31dd05a000 ---p 0005b000 fd:00 2138242                        /usr/li
b64/libXt.so.6.0.0
31dd05a000-31dd060000 rwxp 0005a000 fd:00 2138242                        /usr/li
b64/libXt.so.6.0.0
31dd060000-31dd061000 rwxp 31dd060000 00:00 0
31dd600000-31dd60d000 r-xp 00000000 fd:00 3211283                        /lib64/
libgcc_s-4.1.2-20080825.so.1
31dd60d000-31dd80d000 ---p 0000d000 fd:00 3211283                        /lib64/
libgcc_s-4.1.2-20080825.so.1
31dd80d000-31dd80e000 rwxp 0000d000 fd:00 3211283                        /lib64/
libgcc_s-4.1.2-20080825.so.1
31dda00000-31dda57000 r-xp 00000000 fd:00 2140035                        /usr/li
b64/libtiff.so.3.8.2
31dda57000-31ddc57000 ---p 00057000 fd:00 2140035                        /usr/li
b64/libtiff.so.3.8.2
31ddc57000-31ddc5a000 rwxp 00057000 fd:00 2140035                        /usr/li
b64/libtiff.so.3.8.2
31dee00000-31dee7f000 r-xp 00000000 fd:00 2140886                        /usr/li
b64/libfreetype.so.6.3.10
31dee7f000-31df07f000 ---p 0007f000 fd:00 2140886                        /usr/li
b64/libfreetype.so.6.3.10
31df07f000-31df084000 rwxp 0007f000 fd:00 2140886                        /usr/li
b64/libfreetype.so.6.3.10
31df200000-31df221000 r-xp 00000000 fd:00 2146736                        /usr/li
b64/libjpeg.so.62.0.0
31df221000-31df420000 ---p 00021000 fd:00 2146736                        /usr/li
b64/libjpeg.so.62.0.0
31df420000-31df421000 rwxp 00020000 fd:00 2146736                        /usr/li
b64/libjpeg.so.62.0.0
31dfe00000-31dfe05000 r-xp 00000000 fd:00 2146793                        /usr/li
b64/libXdmcp.so.6.0.0
31dfe05000-31e0004000 ---p 00005000 fd:00 2146793                        /usr/li
b64/libXdmcp.so.6.0.0
31e0004000-31e0005000 rwxp 00004000 fd:00 2146793                        /usr/li
b64/libXdmcp.so.6.0.0
31e0200000-31e0220000 r-xp 00000000 fd:00 3211315                        /lib64/
libexpat.so.0.5.0
31e0220000-31e041f000 ---p 00020000 fd:00 3211315                        /lib64/
libexpat.so.0.5.0
31e041f000-31e0422000 rwxp 0001f000 fd:00 3211315                        /lib64/
libexpat.so.0.5.0
31e0600000-31e0705000 r-xp 00000000 fd:00 2137039                        /usr/li
b64/libX11.so.6.2.0
31e0705000-31e0905000 ---p 00105000 fd:00 2137039                        /usr/li
b64/libX11.so.6.2.0
31e0905000-31e090c000 rwxp 00105000 fd:00 2137039                        /usr/li
b64/libX11.so.6.2.0
31e1200000-31e1202000 r-xp 00000000 fd:00 2146743                        /usr/li
b64/libXau.so.6.0.0
31e1202000-31e1401000 ---p 00002000 fd:00 2146743                        /usr/li
b64/libXau.so.6.0.0
31e1401000-31e1402000 rwxp 00001000 fd:00 2146743                        /usr/li
b64/libXau.so.6.0.0
31e1600000-31e1629000 r-xp 00000000 fd:00 2139585                        /usr/li
b64/libfontconfig.so.1.1.0
31e1629000-31e1829000 ---p 00029000 fd:00 2139585                        /usr/li
b64/libfontconfig.so.1.1.0
31e1829000-31e1833000 rwxp 00029000 fd:00 2139585                        /usr/li
b64/libfontconfig.so.1.1.0
31e1833000-31e1834000 rwxp 31e1833000 00:00 0
31e1e00000-31e1e0f000 r-xp 00000000 fd:00 2140059                        /usr/li
b64/libbz2.so.1.0.3
31e1e0f000-31e200e000 ---p 0000f000 fd:00 2140059                        /usr/li
b64/libbz2.so.1.0.3
31e200e000-31e2010000 rwxp 0000e000 fd:00 2140059                        /usr/li
b64/libbz2.so.1.0.3
31e4600000-31e4610000 r-xp 00000000 fd:00 2139570                        /usr/li
b64/libXext.so.6.4.0
31e4610000-31e4810000 ---p 00010000 fd:00 2139570                        /usr/li
b64/libXext.so.6.4.0
31e4810000-31e4811000 rwxp 00010000 fd:00 2139570                        /usr/li
b64/libXext.so.6.4.0
31e6200000-31e6217000 r-xp 00000000 fd:00 2139588                        /usr/li
b64/libICE.so.6.3.0
31e6217000-31e6416000 ---p 00017000 fd:00 2139588                        /usr/li
b64/libICE.so.6.3.0
31e6416000-31e6418000 rwxp 00016000 fd:00 2139588                        /usr/li
b64/libICE.so.6.3.0
31e6418000-31e641b000 rwxp 31e6418000 00:00 0
31e6a00000-31e6a09000 r-xp 00000000 fd:00 2139589                        /usr/li
b64/libSM.so.6.0.0
31e6a09000-31e6c09000 ---p 00009000 fd:00 2139589                        /usr/li
b64/libSM.so.6.0.0
31e6c09000-31e6c0a000 rwxp 00009000 fd:00 2139589                        /usr/li
b64/libSM.so.6.0.0
3d67800000-3d67807000 r-xp 00000000 fd:00 3211281                        /lib64/
librt-2.5.so
3d67807000-3d67a07000 ---p 00007000 fd:00 3211281                        /lib64/
librt-2.5.so
3d67a07000-3d67a08000 r-xp 00007000 fd:00 3211281                        /lib64/
librt-2.5.so
3d67a08000-3d67a09000 rwxp 00008000 fd:00 3211281                        /lib64/
librt-2.5.so
2b0f82f1f000-2b0f82f20000 rwxp 2b0f82f1f000 00:00 0
2b0f82f2f000-2b0f82f30000 rwxp 2b0f82f2f000 00:00 0
2b0f82f30000-2b0f83136000 r-xp 00000000 fd:00 2149035                    /usr/li
b64/libMagickCore.so.4.0.1
2b0f83136000-2b0f83336000 ---p 00206000 fd:00 2149035                    /usr/li
b64/libMagickCore.so.4.0.1
2b0f83336000-2b0f8338e000 rwxp 00206000 fd:00 2149035                    /usr/li
b64/libMagickCore.so.4.0.1
2b0f8338e000-2b0f833a7000 rwxp 2b0f8338e000 00:00 0
2b0f833a7000-2b0f834d6000 r-xp 00000000 fd:00 2149037                    /usr/li
b64/libMagickWand.so.4.0.1
2b0f834d6000-2b0f836d6000 ---p 0012f000 fd:00 2149037                    /usr/li
b64/libMagickWand.so.4.0.1
2b0f836d6000-2b0f836da000 rwxp 0012f000 fd:00 2149037                    /usr/li
b64/libMagickWand.so.4.0.1
2b0f836da000-2b0f836dd000 rwxp 2b0f836da000 00:00 0
2b0f836dd000-2b0f836e3000 r-xp 00000000 fd:00 2146981                    /usr/li
b64/libltdl.so.3.1.4
2b0f836e3000-2b0f838e3000 ---p 00006000 fd:00 2146981                    /usr/li
b64/libltdl.so.3.1.4
2b0f838e3000-2b0f838e4000 rwxp 00006000 fd:00 2146981                    /usr/li
b64/libltdl.so.3.1.4
2b0f838e4000-2b0f838e6000 rwxp 2b0f838e4000 00:00 0
2b0f838e6000-2b0f838f3000 r-xp 00000000 fd:00 2140480                    /usr/li
b64/libgomp.so.1.0.0
2b0f838f3000-2b0f83af2000 ---p 0000d000 fd:00 2140480                    /usr/li
b64/libgomp.so.1.0.0
2b0f83af2000-2b0f83af3000 rwxp 0000c000 fd:00 2140480                    /usr/li
b64/libgomp.so.1.0.0
2b0f83af3000-2b0f83af8000 rwxp 2b0f83af3000 00:00 0
2b0f83af8000-2b0f870ce000 r-xp 00000000 fd:00 2140010                    /usr/li
b/locale/locale-archive
2b0f870ce000-2b0f870d5000 r-xs 00000000 fd:00 2140014                    /usr/li
b64/gconv/gconv-modules.cache
2b0f870d5000-2b0f870de000 r-xp 00000000 fd:00 3149027                    /usr/li
b64/ImageMagick-6.6.8/modules-Q16/coders/jpeg.so
2b0f870de000-2b0f872de000 ---p 00009000 fd:00 3149027                    /usr/li
b64/ImageMagick-6.6.8/modules-Q16/coders/jpeg.so
2b0f872de000-2b0f872df000 rwxp 00009000 fd:00 3149027                    /usr/li
b64/ImageMagick-6.6.8/modules-Q16/coders/jpeg.so
2b0f872eb000-2b0f87604000 rwxp 2b0f872eb000 00:00 0
2b0f87604000-2b0f87608000 r-xp 00000000 fd:00 3149069                    /usr/li
b64/ImageMagick-6.6.8/modules-Q16/coders/pcl.so
2b0f87608000-2b0f87807000 ---p 00004000 fd:00 3149069                    /usr/li
b64/ImageMagick-6.6.8/modules-Q16/coders/pcl.so
2b0f87807000-2b0f87808000 rwxp 00003000 fd:00 3149069                    /usr/li
b64/ImageMagick-6.6.8/modules-Q16/coders/pcl.so
2b0f87808000-2b0f87809000 rwxp 2b0f87808000 00:00 0
7fffee915000-7fffee930000 rw-p 7ffffffe3000 00:00 0                      [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0                  [vdso]
Aborted
Not too sure what to do at this point...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Invalid pointer on PCL conversion

Post by magick »

Post a URL to lorne33.pcl. We need to download the image and reproduce the problem. If we can, we'll post a patch to fix the problem.
Post Reply