GNOME Bugzilla – Bug 606372
Saving to .ppm fails on indexed colorspace
Last modified: 2011-03-17 20:20:16 UTC
From http://bugs.debian.org/549537: Attempting to save an image to splash.ppm fails with the below errors. Plug-in crashed: "file-pnm" (/usr/lib/gimp/2.0/plug-ins/file-pnm) Steps to reproduce: *Scale* an image to 640x480 pixels. *Reduce* the number of colors to 14 by selecting menu item "Image->Mode->Indexed" *Save* the resulting image as splash.ppm
Does this still happen with 2.6.8?
This still appears to happen on 2.6.8. Do you need a backtrace? This probably doesn't help, but here's the console output upon plugin crash: (file-pnm:25995): GLib-WARNING **: g_set_prgname() called multiple times *** glibc detected *** /usr/lib/gimp/2.0/plug-ins/file-pnm: munmap_chunk(): invalid pointer: 0x00000000011da8fa *** ======= Backtrace: ========= /lib/libc.so.6[0x7f8bf3176d56] /usr/lib/gimp/2.0/plug-ins/file-pnm[0x402d13] /usr/lib/gimp/2.0/plug-ins/file-pnm[0x403f27] /usr/lib/libgimp-2.0.so.0(gimp_main+0x698)[0x7f8bf4639c98] /lib/libc.so.6(__libc_start_main+0xfd)[0x7f8bf3124abd] /usr/lib/gimp/2.0/plug-ins/file-pnm[0x401e29] ======= Memory map: ======== 00400000-00405000 r-xp 00000000 08:01 7202650 /usr/lib/gimp/2.0/plug-ins/file-pnm 00605000-00606000 rw-p 00005000 08:01 7202650 /usr/lib/gimp/2.0/plug-ins/file-pnm 01143000-01286000 rw-p 00000000 00:00 0 [heap] 7f8bec3a2000-7f8bec3b8000 r-xp 00000000 08:01 2031657 /lib/libgcc_s.so.1 7f8bec3b8000-7f8bec5b7000 ---p 00016000 08:01 2031657 /lib/libgcc_s.so.1 7f8bec5b7000-7f8bec5b8000 rw-p 00015000 08:01 2031657 /lib/libgcc_s.so.1 7f8bec5d9000-7f8bec639000 rw-s 00000000 00:04 19136546 /SYSV00000000 (deleted) 7f8bec639000-7f8bec648000 r--p 00000000 08:01 1550192 /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf 7f8bec648000-7f8bec659000 r--p 00000000 08:01 1550191 /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf 7f8bec659000-7f8bec65b000 r-xp 00000000 08:01 7251353 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 7f8bec65b000-7f8bec85a000 ---p 00002000 08:01 7251353 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 7f8bec85a000-7f8bec85b000 rw-p 00001000 08:01 7251353 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so 7f8bec85b000-7f8bec864000 r--s 00000000 08:01 3427087 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86-64.cache-2 7f8bec864000-7f8bec867000 r--s 00000000 08:01 3427061 /var/cache/fontconfig/f24b2111ab8703b4e963115a8cf14259-x86-64.cache-2 7f8bec867000-7f8bec86b000 r--s 00000000 08:01 3427065 /var/cache/fontconfig/a46337af8a0b4c9b317ad981ec3bdf87-x86-64.cache-2 7f8bec86b000-7f8bec86d000 r--s 00000000 08:01 3427086 /var/cache/fontconfig/cc350556a40230a43bbdf28d7b7e2141-x86-64.cache-2 7f8bec86d000-7f8bec86e000 r--s 00000000 08:01 3427060 /var/cache/fontconfig/6edd069ccec3ba28096b368c434fa861-x86-64.cache-2 7f8bec86e000-7f8bec871000 r--s 00000000 08:01 3427085 /var/cache/fontconfig/b5ea634b0fb353b8ea17632d1f9ef766-x86-64.cache-2 7f8bec871000-7f8bec875000 r--s 00000000 08:01 3427084 /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-x86-64.cache-2 7f8bec875000-7f8bec876000 r--s 00000000 08:01 3427064 /var/cache/fontconfig/a8d35ba226d862df35f7c320f882e11a-x86-64.cache-2 7f8bec876000-7f8bec87f000 r--s 00000000 08:01 3427067 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86-64.cache-2 7f8bec87f000-7f8bec882000 r--s 00000000 08:01 3427082 /var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86-64.cache-2 7f8bec882000-7f8bec885000 r--s 00000000 08:01 3427081 /var/cache/fontconfig/ddd4086aec35a5275babba44bb759c3c-x86-64.cache-2 7f8bec885000-7f8bec886000 r--s 00000000 08:01 3427075 /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-x86-64.cache-2 7f8bec886000-7f8bec8b4000 r--s 00000000 08:01 3427071 /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-x86-64.cache-2 7f8bec8b4000-7f8bec995000 r--s 00000000 08:01 3425581 /var/cache/fontconfig/edb1e813a5c2f6ec851a707830532169-x86-64.cache-2 7f8bec995000-7f8bec9bf000 r-xp 00000000 08:01 7020562 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so 7f8bec9bf000-7f8becbbf000 ---p 0002a000 08:01 7020562 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so 7f8becbbf000-7f8becbc0000 rw-p 0002a000 08:01 7020562 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so 7f8becbc0000-7f8becbcb000 r-xp 00000000 08:01 862421 /lib/libnss_files-2.10.2.so 7f8becbcb000-7f8becdca000 ---p 0000b000 08:01 862421 /lib/libnss_files-2.10.2.so 7f8becdca000-7f8becdcb000 r--p 0000a000 08:01 862421 /lib/libnss_files-2.10.2.so 7f8becdcb000-7f8becdcc000 rw-p 0000b000 08:01 862421 /lib/libnss_files-2.10.2.so 7f8becdcc000-7f8becdd6000 r-xp 00000000 08:01 862396 /lib/libnss_nis-2.10.2.so 7f8becdd6000-7f8becfd5000 ---p 0000a000 08:01 862396 /lib/libnss_nis-2.10.2.so 7f8becfd5000-7f8becfd6000 r--p 00009000 08:01 862396 /lib/libnss_nis-2.10.2.so 7f8becfd6000-7f8becfd7000 rw-p 0000a000 08:01 862396 /lib/libnss_nis-2.10.2.so 7f8becfd7000-7f8becfec000 r-xp 00000000 08:01 862416 /lib/libnsl-2.10.2.so 7f8becfec000-7f8bed1eb000 ---p 00015000 08:01 862416 /lib/libnsl-2.10.2.so 7f8bed1eb000-7f8bed1ec000 r--p 00014000 08:01 862416 /lib/libnsl-2.10.2.so 7f8bed1ec000-7f8bed1ed000 rw-p 00015000 08:01 862416 /lib/libnsl-2.10.2.so 7f8bed1ed000-7f8bed1ef000 rw-p 00000000 00:00 0 7f8bed1ef000-7f8bed1f6000 r-xp 00000000 08:01 2031797 /lib/libnss_compat-2.10.2.so 7f8bed1f6000-7f8bed3f5000 ---p 00007000 08:01 2031797 /lib/libnss_compat-2.10.2.so 7f8bed3f5000-7f8bed3f6000 r--p 00006000 08:01 2031797 /lib/libnss_compat-2.10.2.so 7f8bed3f6000-7f8bed3f7000 rw-p 00007000 08:01 2031797 /lib/libnss_compat-2.10.2.so 7f8bed3f9000-7f8bed3fc000 r--s 00000000 08:01 3427072 /var/cache/fontconfig/80d0a1cf7989637baed91f874e3e11f6-x86-64.cache-2 7f8bed3fc000-7f8bed3ff000 r--s 00000000 08:01 3427080 /var/cache/fontconfig/de9486f0b47a4d768a594cb4198cb1c6-x86-64.cache-2
Created attachment 151078 [details] full backtrace from pnm crash Turns out I got a coredump too, so here's the "bt full" from it.
Fix pushed to both branches: commit b883d59411dfde28fb0704fa2790e602999f7f6f Author: Sven Neumann <sven@gimp.org> Date: Sat Jan 9 12:12:12 2010 +0100 Bug 606372 - Saving to .ppm fails on indexed colorspace Don't change the pointer to the colormap and then attempt to free it.
*** Bug 616075 has been marked as a duplicate of this bug. ***