Program received signal SIGSEGV, Segmentation fault.
0x405f0208 in _int_free () from /lib/tls/libc.so.6
(gdb) where
#0  0x405f0208 in _int_free () from /lib/tls/libc.so.6
#1  0x405f1aec in _int_realloc () from /lib/tls/libc.so.6
#2  0x405f28fd in realloc () from /lib/tls/libc.so.6
#3  0x40552e18 in exif_data_new_from_file () from /usr/lib/libexif.so.9
#4  0x40553090 in exif_data_new_from_file () from /usr/lib/libexif.so.9
#5  0x0804b65b in load_image (
    filename=0x8055500 "/home/<user>/problem.jpg", runmode=Variable "runmode" is not available.
)
    at jpeg.c:1105
#6  0x0804c7f3 in run (name=0x80542e0 "file_jpeg_load", nparams=3,
    param=0x8055490, nreturn_vals=0xbffff090, return_vals=0x0) at jpeg.c:390
#7  0x40045483 in gimp_main () from /opt/gnome/lib/libgimp-2.0.so.0
#8  0x0804e0eb in main (argc=6, argv=0xbffff1b4) at jpeg.c:293
...
(gdb) break 1105
Breakpoint 1 at 0x804b646: file jpeg.c, line 1105.
(gdb) c
Breakpoint 1, load_image (
    filename=0x8055500 "/home/dstutz/Bilder/problem.jpg", runmode=Variable "runmode" is not available.
)
    at jpeg.c:1105
1105              exif_data_save_data (exif_data, &exif_buf, &exif_buf_len);
(gdb) print *exif_data
$4 = {ifd = {0x80555d8, 0x80555f0, 0x8055618, 0x8055640, 0x8055668},
  data = 0x805a440 "��, size = 6781, priv = 0x80555c0}
===
1059      /* Step 8: Release JPEG decompression object */
1060
1061      /* This is an important step since it will release a good deal of memory. */
1062      jpeg_destroy_decompress (&cinfo);
1063
1064      /* free up the temporary buffers */
1065      g_free (rowbuf);
1066      g_free (buf);
1067      g_free (padded_buf);
1068
1069      /* After finish_decompress, we can close the input file.
1070       * Here we postpone it until after no more JPEG errors are possible,
1071       * so as to simplify the setjmp error logic above.  (Actually, I don't
1072       * think that jpeg_destroy can do an error exit, but why assume anything...)
1073       */
1074      fclose (infile);
1075
1076      /* At this point you may want to check to see whether any corrupt-data
1077       * warnings occurred (test whether jerr.num_warnings is nonzero).
---Type <return> to continue, or q <return> to quit---
1078       */
1079
1080      /* Tell the GIMP to display the image.
1081       */
1082      gimp_image_add_layer (image_ID, layer_ID, 0);
1083      gimp_drawable_flush (drawable);
1084
1085      /* pw - Last of all, attach the parasites (couldn't do it earlier -
1086         there was no image. */
1087
1088      if (!preview)
1089        {
1090          if (comment_parasite)
1091            {
1092              gimp_image_parasite_attach (image_ID, comment_parasite);
1093              gimp_parasite_free (comment_parasite);
1094
1095              comment_parasite = NULL;
1096            }
1097
1098    #ifdef HAVE_EXIF
1099          exif_data = exif_data_new_from_file (filename);
1100          if (exif_data)
---Type <return> to continue, or q <return> to quit---
1101            {
1102              guchar *exif_buf;
1103              guint   exif_buf_len;
1104
1105              exif_data_save_data (exif_data, &exif_buf, &exif_buf_len);
1106              exif_data_unref (exif_data);
1107              exif_parasite = gimp_parasite_new ("jpeg-exif-data",
1108                                                 GIMP_PARASITE_PERSISTENT,
1109                                                 exif_buf_len, exif_buf);
1110              gimp_image_parasite_attach (image_ID, exif_parasite);
1111              gimp_parasite_free (exif_parasite);
1112              free (exif_buf);
1113            }
1114    #endif
1115
1116        }
1117
1118      return image_ID;
1119    }
