I did in an attempt to track down a problem I reported that sometimes the save 
as file dialog comes up empty. 
I found several places that show uninitialized memory reads, one when the 
first image is loaded, one when generating the histogram for the levels 
dialog and the preview when you press on the navigate button on the lower 
right corner of the image window...
regards
Karl Günter Wünsch

==7078== Memcheck, a memory error detector.
==7078== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==7078== Using LibVEX rev 1732, a library for dynamic binary translation.
==7078== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==7078== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==7078== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==7078== For more details, rerun with: -v
==7078== 
dcraw -i '/digicambilder/bilder46/20071004-libelle-terasse/img_0063.jpg'
Cannot decode file /digicambilder/bilder46/20071004-libelle-terasse/img_0063.jpg
==7078== Use of uninitialised value of size 4
==7078==    at 0x80C23AC: gimp_display_shell_render (gimpdisplayshell-render.c:564)
==7078==    by 0x80B9582: gimp_display_shell_draw_area (gimpdisplayshell-draw.c:574)
==7078==    by 0x80B4BED: gimp_display_shell_canvas_expose (gimpdisplayshell-callbacks.c:421)
==7078==    by 0x42DCFED: (within /usr/lib/libgtk-x11-2.0.so.0.1200.0)
==7078==    by 0x4B4D0F9: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078== 
==7078== Use of uninitialised value of size 4
==7078==    at 0x80C23BC: gimp_display_shell_render (gimpdisplayshell-render.c:565)
==7078==    by 0x80B9582: gimp_display_shell_draw_area (gimpdisplayshell-draw.c:574)
==7078==    by 0x80B4BED: gimp_display_shell_canvas_expose (gimpdisplayshell-callbacks.c:421)
==7078==    by 0x42DCFED: (within /usr/lib/libgtk-x11-2.0.so.0.1200.0)
==7078==    by 0x4B4D0F9: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078== 
==7078== Use of uninitialised value of size 4
==7078==    at 0x80C23CC: gimp_display_shell_render (gimpdisplayshell-render.c:566)
==7078==    by 0x80B9582: gimp_display_shell_draw_area (gimpdisplayshell-draw.c:574)
==7078==    by 0x80B4BED: gimp_display_shell_canvas_expose (gimpdisplayshell-callbacks.c:421)
==7078==    by 0x42DCFED: (within /usr/lib/libgtk-x11-2.0.so.0.1200.0)
==7078==    by 0x4B4D0F9: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078== 
==7078== Syscall param write(buf) points to uninitialised byte(s)
==7078==    at 0x47B51F3: __write_nocancel (in /lib/libpthread-2.5.so)
==7078==    by 0x46E576D: (within /usr/lib/libX11.so.6.2.0)
==7078==  Address 0x4DF4DA0 is 32 bytes inside a block of size 16,384 alloc'd
==7078==    at 0x4020B3D: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==7078==    by 0x46C6CBB: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==7078== 
==7078== Use of uninitialised value of size 4
==7078==    at 0x82E1C29: gimp_histogram_calculate_sub_region (gimphistogram.c:732)
==7078==    by 0x82E3D16: pixel_regions_process_parallel_valist (pixel-processor.c:210)
==7078==    by 0x82E3E9A: pixel_regions_process_parallel (pixel-processor.c:475)
==7078==    by 0x82E1419: gimp_histogram_calculate (gimphistogram.c:109)
==7078==    by 0x823C2E9: gimp_drawable_calculate_histogram (gimpdrawable-histogram.c:73)
==7078==    by 0x80EF5EB: gimp_levels_tool_initialize (gimplevelstool.c:267)
==7078==    by 0x810CF0E: gimp_tool_initialize (gimptool.c:425)
==7078==    by 0x80CF59E: tool_manager_initialize_active (tool_manager.c:236)
==7078==    by 0x4B5A74F: g_cclosure_marshal_VOID__STRING (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078==    by 0x64762D7: ???
==7078== 
==7078== Use of uninitialised value of size 4
==7078==    at 0x82E1C3E: gimp_histogram_calculate_sub_region (gimphistogram.c:733)
==7078==    by 0x82E3D16: pixel_regions_process_parallel_valist (pixel-processor.c:210)
==7078==    by 0x82E3E9A: pixel_regions_process_parallel (pixel-processor.c:475)
==7078==    by 0x82E1419: gimp_histogram_calculate (gimphistogram.c:109)
==7078==    by 0x823C2E9: gimp_drawable_calculate_histogram (gimpdrawable-histogram.c:73)
==7078==    by 0x80EF5EB: gimp_levels_tool_initialize (gimplevelstool.c:267)
==7078==    by 0x810CF0E: gimp_tool_initialize (gimptool.c:425)
==7078==    by 0x80CF59E: tool_manager_initialize_active (tool_manager.c:236)
==7078==    by 0x4B5A74F: g_cclosure_marshal_VOID__STRING (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078==    by 0x64762D7: ???
==7078== 
==7078== Use of uninitialised value of size 4
==7078==    at 0x82E1C53: gimp_histogram_calculate_sub_region (gimphistogram.c:734)
==7078==    by 0x82E3D16: pixel_regions_process_parallel_valist (pixel-processor.c:210)
==7078==    by 0x82E3E9A: pixel_regions_process_parallel (pixel-processor.c:475)
==7078==    by 0x82E1419: gimp_histogram_calculate (gimphistogram.c:109)
==7078==    by 0x823C2E9: gimp_drawable_calculate_histogram (gimpdrawable-histogram.c:73)
==7078==    by 0x80EF5EB: gimp_levels_tool_initialize (gimplevelstool.c:267)
==7078==    by 0x810CF0E: gimp_tool_initialize (gimptool.c:425)
==7078==    by 0x80CF59E: tool_manager_initialize_active (tool_manager.c:236)
==7078==    by 0x4B5A74F: g_cclosure_marshal_VOID__STRING (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078==    by 0x64762D7: ???
==7078== 
==7078== Conditional jump or move depends on uninitialised value(s)
==7078==    at 0x82E1C6A: gimp_histogram_calculate_sub_region (gimphistogram.c:736)
==7078==    by 0x82E3D16: pixel_regions_process_parallel_valist (pixel-processor.c:210)
==7078==    by 0x82E3E9A: pixel_regions_process_parallel (pixel-processor.c:475)
==7078==    by 0x82E1419: gimp_histogram_calculate (gimphistogram.c:109)
==7078==    by 0x823C2E9: gimp_drawable_calculate_histogram (gimpdrawable-histogram.c:73)
==7078==    by 0x80EF5EB: gimp_levels_tool_initialize (gimplevelstool.c:267)
==7078==    by 0x810CF0E: gimp_tool_initialize (gimptool.c:425)
==7078==    by 0x80CF59E: tool_manager_initialize_active (tool_manager.c:236)
==7078==    by 0x4B5A74F: g_cclosure_marshal_VOID__STRING (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078==    by 0x64762D7: ???
==7078== 
==7078== Conditional jump or move depends on uninitialised value(s)
==7078==    at 0x82E1C77: gimp_histogram_calculate_sub_region (gimphistogram.c:738)
==7078==    by 0x82E3D16: pixel_regions_process_parallel_valist (pixel-processor.c:210)
==7078==    by 0x82E3E9A: pixel_regions_process_parallel (pixel-processor.c:475)
==7078==    by 0x82E1419: gimp_histogram_calculate (gimphistogram.c:109)
==7078==    by 0x823C2E9: gimp_drawable_calculate_histogram (gimpdrawable-histogram.c:73)
==7078==    by 0x80EF5EB: gimp_levels_tool_initialize (gimplevelstool.c:267)
==7078==    by 0x810CF0E: gimp_tool_initialize (gimptool.c:425)
==7078==    by 0x80CF59E: tool_manager_initialize_active (tool_manager.c:236)
==7078==    by 0x4B5A74F: g_cclosure_marshal_VOID__STRING (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078==    by 0x64762D7: ???
==7078== 
==7078== Use of uninitialised value of size 4
==7078==    at 0x82E1C16: gimp_histogram_calculate_sub_region (gimphistogram.c:741)
==7078==    by 0x82E3D16: pixel_regions_process_parallel_valist (pixel-processor.c:210)
==7078==    by 0x82E3E9A: pixel_regions_process_parallel (pixel-processor.c:475)
==7078==    by 0x82E1419: gimp_histogram_calculate (gimphistogram.c:109)
==7078==    by 0x823C2E9: gimp_drawable_calculate_histogram (gimpdrawable-histogram.c:73)
==7078==    by 0x80EF5EB: gimp_levels_tool_initialize (gimplevelstool.c:267)
==7078==    by 0x810CF0E: gimp_tool_initialize (gimptool.c:425)
==7078==    by 0x80CF59E: tool_manager_initialize_active (tool_manager.c:236)
==7078==    by 0x4B5A74F: g_cclosure_marshal_VOID__STRING (in /usr/lib/libgobject-2.0.so.0.1400.1)
==7078==    by 0x64762D7: ???
==7078== 
==7078== More than 10000000 total errors detected.  I'm not reporting any more.
==7078== Final error counts will be inaccurate.  Go fix your program!
==7078== Rerun with --error-limit=no to disable this cutoff.  Note
==7078== that errors may occur in your program without prior warning from
==7078== Valgrind, because errors are no longer being displayed.
==7078== 
==7078== 
==7078== ERROR SUMMARY: 10000000 errors from 10 contexts (suppressed: 92 from 1)
==7078== malloc/free: in use at exit: 10,905,808 bytes in 102,378 blocks.
==7078== malloc/free: 821,151 allocs, 718,773 frees, 354,692,577 bytes allocated.
==7078== For counts of detected errors, rerun with: -v
==7078== searching for pointers to 102,378 not-freed blocks.
==7078== checked 10,560,288 bytes.
==7078== 
==7078== LEAK SUMMARY:
==7078==    definitely lost: 145,812 bytes in 5,127 blocks.
==7078==      possibly lost: 2,233,248 bytes in 2,117 blocks.
==7078==    still reachable: 8,526,748 bytes in 95,134 blocks.
==7078==         suppressed: 0 bytes in 0 blocks.
==7078== Rerun with --leak-check=full to see details of leaked memory.
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to