==9804== Memcheck, a memory error detector for x86-linux. ==9804== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==9804== Using valgrind-2.4.0, a program supervision framework for x86-linux. ==9804== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==9804== For more details, rerun with: -v ==9804== ==9804== Syscall param ioctl(generic) points to uninitialised byte(s) ==9804== at 0x1BF7A694: ioctl (in /usr/lib/debug/libc-2.3.2.so) ==9804== by 0x1BDDC7B5: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== Address 0x52BFB2B8 is on thread 1's stack ==9804== ==9804== Conditional jump or move depends on uninitialised value(s) ==9804== at 0x1BDDF2D0: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Use of uninitialised value of size 4 ==9804== at 0x1BDDF2D5: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Conditional jump or move depends on uninitialised value(s) ==9804== at 0x1BDDF381: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Conditional jump or move depends on uninitialised value(s) ==9804== at 0x1BDDF38B: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Conditional jump or move depends on uninitialised value(s) ==9804== at 0x1BDDF3A0: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Conditional jump or move depends on uninitialised value(s) ==9804== at 0x1BDDF3CF: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Conditional jump or move depends on uninitialised value(s) ==9804== at 0x1BDDF3DB: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Conditional jump or move depends on uninitialised value(s) ==9804== at 0x1BDDF3E3: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Use of uninitialised value of size 4 ==9804== at 0x1BDDF433: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== Use of uninitialised value of size 4 ==9804== at 0x1BDDF448: usb_os_determine_children (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1BDDC8F7: usb_find_devices (in /lib/libusb-0.1.so.4.4.2) ==9804== by 0x1C43949C: sanei_usb_init (sanei_usb.c:335) ==9804== by 0x1C437043: sane_stv680_init (stv680.c:1564) ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== Warning: invalid file descriptor 474859496 in syscall read() ==9804== ==9804== Use of uninitialised value of size 4 ==9804== at 0x1C4368CD: stv680_bayer_unshuffle (stv680.c:1343) ==9804== by 0x1C437B65: sane_stv680_read (stv680.c:2080) ==9804== by 0x1BDD6EE8: sane_dll_read (dll.c:1056) ==9804== by 0x1BDD71B3: sane_read (dll-s.c:52) ==9804== by 0x804DB6F: input_available (xcam.c:1060) ==9804== by 0x804E550: next_frame (xcam.c:1237) ==9804== by 0x804E66B: play_stop_button (xcam.c:1261) ==9804== by 0x1BD2D2A5: g_cclosure_marshal_VOID__VOID (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD1B735: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2CDCE: (within /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2BE9B: g_signal_emit_valist (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2C125: g_signal_emit (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== ==9804== Use of uninitialised value of size 4 ==9804== at 0x1C4368E3: stv680_bayer_unshuffle (stv680.c:1344) ==9804== by 0x1C437B65: sane_stv680_read (stv680.c:2080) ==9804== by 0x1BDD6EE8: sane_dll_read (dll.c:1056) ==9804== by 0x1BDD71B3: sane_read (dll-s.c:52) ==9804== by 0x804DB6F: input_available (xcam.c:1060) ==9804== by 0x804E550: next_frame (xcam.c:1237) ==9804== by 0x804E66B: play_stop_button (xcam.c:1261) ==9804== by 0x1BD2D2A5: g_cclosure_marshal_VOID__VOID (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD1B735: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2CDCE: (within /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2BE9B: g_signal_emit_valist (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2C125: g_signal_emit (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== ==9804== Use of uninitialised value of size 4 ==9804== at 0x1C4368FA: stv680_bayer_unshuffle (stv680.c:1345) ==9804== by 0x1C437B65: sane_stv680_read (stv680.c:2080) ==9804== by 0x1BDD6EE8: sane_dll_read (dll.c:1056) ==9804== by 0x1BDD71B3: sane_read (dll-s.c:52) ==9804== by 0x804DB6F: input_available (xcam.c:1060) ==9804== by 0x804E550: next_frame (xcam.c:1237) ==9804== by 0x804E66B: play_stop_button (xcam.c:1261) ==9804== by 0x1BD2D2A5: g_cclosure_marshal_VOID__VOID (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD1B735: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2CDCE: (within /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2BE9B: g_signal_emit_valist (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2C125: g_signal_emit (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== ==9804== More than 30000 total errors detected. I'm not reporting any more. ==9804== Final error counts will be inaccurate. Go fix your program! ==9804== Rerun with --error-limit=no to disable this cutoff. Note ==9804== that errors may occur in your program without prior warning from ==9804== Valgrind, because errors are no longer being displayed. ==9804== ==9804== ==9804== ERROR SUMMARY: 30000 errors from 14 contexts (suppressed: 107 from 2) ==9804== malloc/free: in use at exit: 1719868 bytes in 9902 blocks. ==9804== malloc/free: 125361 allocs, 115459 frees, 19587395 bytes allocated. ==9804== For counts of detected errors, rerun with: -v ==9804== searching for pointers to 9902 not-freed blocks. ==9804== checked 2467464 bytes. ==9804== ==9804== ==9804== 4 bytes in 1 blocks are definitely lost in loss record 6 of 147 ==9804== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==9804== by 0x1C56B168: ??? ==9804== by 0x1BDD6862: sane_dll_get_devices (dll.c:839) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== ==9804== 4 bytes in 1 blocks are definitely lost in loss record 10 of 147 ==9804== at 0x1B904F75: calloc (vg_replace_malloc.c:175) ==9804== by 0x1BD7B96E: g_malloc0 (in /usr/lib/libglib-2.0.so.0.600.4) ==9804== by 0x1BD8282E: g_option_context_parse (in /usr/lib/libglib-2.0.so.0.600.4) ==9804== by 0x1BA2A91D: gtk_parse_args (in /usr/lib/libgtk-x11-2.0.so.0.600.4) ==9804== by 0x1BA2A955: gtk_init_check (in /usr/lib/libgtk-x11-2.0.so.0.600.4) ==9804== by 0x1BA2A9A5: gtk_init (in /usr/lib/libgtk-x11-2.0.so.0.600.4) ==9804== by 0x804F1D9: main (xcam.c:1603) ==9804== ==9804== ==9804== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 49 of 147 ==9804== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==9804== by 0x1BF917C8: nss_parse_service_list (nsswitch.c:529) ==9804== by 0x1BF91038: __nss_database_lookup (nsswitch.c:133) ==9804== by 0x1BFE036B: ??? ==9804== by 0x1BFE1F08: ??? ==9804== by 0x1BF51195: getpwuid_r@@GLIBC_2.1.2 (getXXbyYY_r.c:219) ==9804== by 0x1BF50B9E: getpwuid (getXXbyYY.c:108) ==9804== by 0x80505B8: gsg_make_path (gtkglue.c:107) ==9804== by 0x804C827: pref_xcam_restore (xcam.c:463) ==9804== by 0x804F0AC: main (xcam.c:1557) ==9804== ==9804== ==9804== 59 bytes in 6 blocks are definitely lost in loss record 56 of 147 ==9804== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==9804== by 0x1BF1FA5F: strdup (strdup.c:43) ==9804== by 0x1C43930F: ??? ==9804== by 0x1C437043: ??? ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== ==9804== 105 bytes in 9 blocks are definitely lost in loss record 72 of 147 ==9804== at 0x1B90506F: realloc (vg_replace_malloc.c:196) ==9804== by 0x80547F8: ascii_w_string (sanei_codec_ascii.c:242) ==9804== by 0x8053C25: sanei_w_string (sanei_wire.c:232) ==9804== by 0x80503FC: preferences_restore (preferences.c:172) ==9804== by 0x804C843: pref_xcam_restore (xcam.c:467) ==9804== by 0x804F0AC: main (xcam.c:1557) ==9804== ==9804== ==9804== 220 bytes in 1 blocks are definitely lost in loss record 89 of 147 ==9804== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==9804== by 0x1C57672D: ??? ==9804== by 0x1C5778DF: ??? ==9804== by 0x1C577A72: ??? ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== ==9804== 800 bytes in 20 blocks are possibly lost in loss record 107 of 147 ==9804== at 0x1B904F75: calloc (vg_replace_malloc.c:175) ==9804== by 0x1BD7B96E: g_malloc0 (in /usr/lib/libglib-2.0.so.0.600.4) ==9804== by 0x1BD2EBD6: (within /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD2EF35: (within /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD364BE: g_type_init_with_debug_flags (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BD36571: g_type_init (in /usr/lib/libgobject-2.0.so.0.600.4) ==9804== by 0x1BBFDFC3: gdk_pre_parse_libgtk_only (in /usr/lib/libgdk-x11-2.0.so.0.600.4) ==9804== by 0x1BA2A432: (within /usr/lib/libgtk-x11-2.0.so.0.600.4) ==9804== by 0x1BA2A677: (within /usr/lib/libgtk-x11-2.0.so.0.600.4) ==9804== by 0x1BD82AD7: g_option_context_parse (in /usr/lib/libglib-2.0.so.0.600.4) ==9804== by 0x1BA2A91D: gtk_parse_args (in /usr/lib/libgtk-x11-2.0.so.0.600.4) ==9804== by 0x1BA2A955: gtk_init_check (in /usr/lib/libgtk-x11-2.0.so.0.600.4) ==9804== ==9804== ==9804== 4144 bytes in 1 blocks are definitely lost in loss record 126 of 147 ==9804== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==9804== by 0x1BF4D315: opendir (opendir.c:150) ==9804== by 0x1C4394C0: ??? ==9804== by 0x1C437043: ??? ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== ==9804== 5105 bytes in 435 blocks are definitely lost in loss record 127 of 147 ==9804== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==9804== by 0x1BF1FAC8: strndup (strndup.c:46) ==9804== by 0x1BDD7934: sanei_config_get_string (sanei_config.c:166) ==9804== by 0x1C54B9C2: ??? ==9804== by 0x1BDD5F8F: init (dll.c:524) ==9804== by 0x1BDD6794: sane_dll_get_devices (dll.c:836) ==9804== by 0x1BDD7065: sane_get_devices (dll-s.c:15) ==9804== by 0x804D292: build_device_menu (xcam.c:743) ==9804== by 0x804F2E4: main (xcam.c:1620) ==9804== ==9804== ==9804== 24576 bytes in 3 blocks are definitely lost in loss record 137 of 147 ==9804== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==9804== by 0x8054282: sanei_w_init (sanei_wire.c:451) ==9804== by 0x80503B0: preferences_restore (preferences.c:163) ==9804== by 0x804C843: pref_xcam_restore (xcam.c:467) ==9804== by 0x804F0AC: main (xcam.c:1557) ==9804== ==9804== LEAK SUMMARY: ==9804== definitely lost: 34253 bytes in 458 blocks. ==9804== indirectly lost: 120 bytes in 10 blocks. ==9804== possibly lost: 800 bytes in 20 blocks. ==9804== still reachable: 1684695 bytes in 9414 blocks. ==9804== suppressed: 0 bytes in 0 blocks. ==9804== Reachable blocks (those to which a pointer was found) are not shown. ==9804== To see them, rerun with: --show-reachable=yes