root@enter:~# cat valgrind.log ==30038== Memcheck, a memory error detector. ==30038== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==30038== Using LibVEX rev 1804, a library for dynamic binary translation. ==30038== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==30038== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework. ==30038== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==30038== ==30038== My PID = 30038, parent PID = 29993. Prog and args are: ==30038== /usr/sbin/console-kit-daemon ==30038== --no-daemon ==30038== --debug ==30038== --30038-- --30038-- Command line --30038-- /usr/sbin/console-kit-daemon --30038-- --no-daemon --30038-- --debug --30038-- Startup, with flags: --30038-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp --30038-- -v --30038-- --tool=memcheck --30038-- --leak-check=full --30038-- --num-callers=40 --30038-- --log-file=valgrind.log --30038-- Contents of /proc/version: --30038-- Linux version 2.6.24-19-server (buildd@king) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Wed Aug 20 18:43:06 UTC 2008 --30038-- Arch and hwcaps: AMD64, amd64-sse2 --30038-- Page sizes: currently 4096, max supported 4096 --30038-- Valgrind library directory: /usr/lib/valgrind --30038-- Reading syms from /usr/sbin/console-kit-daemon (0x400000) --30038-- Reading debug info from /usr/sbin/console-kit-daemon... --30038-- ... CRC mismatch (computed 50acca34 wanted 6e5f0c1a) --30038-- Reading debug info from /usr/lib/debug/usr/sbin/console-kit-daemon... --30038-- Reading syms from /lib/ld-2.7.so (0x4000000) --30038-- Reading debug info from /lib/ld-2.7.so... --30038-- ... CRC mismatch (computed c9862f74 wanted 7aafc83d) --30038-- object doesn't have a symbol table --30038-- Reading syms from /usr/lib/valgrind/amd64-linux/memcheck (0x38000000) --30038-- object doesn't have a dynamic symbol table --30038-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp --30038-- Reading suppressions file: /usr/lib/valgrind/default.supp --30038-- Reading syms from /usr/lib/valgrind/amd64-linux/vgpreload_core.so (0x4A1F000) --30038-- Reading syms from /usr/lib/valgrind/amd64-linux/vgpreload_memcheck.so (0x4C20000) --30038-- Reading syms from /usr/lib/libdbus-glib-1.so.2.1.0 (0x4E27000) --30038-- Reading debug info from /usr/lib/libdbus-glib-1.so.2.1.0... --30038-- ... CRC mismatch (computed 4828c83c wanted 876558b5) --30038-- object doesn't have a symbol table --30038-- Reading syms from /usr/lib/libdbus-1.so.3.4.0 (0x5047000) --30038-- Reading debug info from /usr/lib/libdbus-1.so.3.4.0... --30038-- ... CRC mismatch (computed 77b8b9a2 wanted 4349cae2) --30038-- Reading debug info from /usr/lib/debug/usr/lib/libdbus-1.so.3.4.0... --30038-- Reading syms from /usr/lib/libgobject-2.0.so.0.1600.4 (0x5284000) --30038-- Reading debug info from /usr/lib/libgobject-2.0.so.0.1600.4... --30038-- ... CRC mismatch (computed ae81bf07 wanted a3249db9) --30038-- Reading debug info from /usr/lib/debug/usr/lib/libgobject-2.0.so.0.1600.4... --30038-- Reading syms from /usr/lib/libgthread-2.0.so.0.1600.4 (0x54C9000) --30038-- Reading debug info from /usr/lib/libgthread-2.0.so.0.1600.4... --30038-- ... CRC mismatch (computed 539763b2 wanted b1c6fbda) --30038-- Reading debug info from /usr/lib/debug/usr/lib/libgthread-2.0.so.0.1600.4... --30038-- Reading syms from /lib/librt-2.7.so (0x56CD000) --30038-- Reading debug info from /lib/librt-2.7.so... --30038-- ... CRC mismatch (computed c0424b42 wanted 293359f6) --30038-- object doesn't have a symbol table --30038-- Reading syms from /usr/lib/libglib-2.0.so.0.1600.4 (0x58D6000) --30038-- Reading debug info from /usr/lib/libglib-2.0.so.0.1600.4... --30038-- ... CRC mismatch (computed 1b9d4ee0 wanted f0fc4328) --30038-- Reading debug info from /usr/lib/debug/usr/lib/libglib-2.0.so.0.1600.4... --30038-- Reading syms from /lib/libpthread-2.7.so (0x5B96000) --30038-- Reading debug info from /lib/libpthread-2.7.so... --30038-- ... CRC mismatch (computed b064431f wanted 03c6976c) --30038-- Reading syms from /lib/libc-2.7.so (0x5DB2000) --30038-- Reading debug info from /lib/libc-2.7.so... --30038-- ... CRC mismatch (computed cb7b9635 wanted 11d14124) --30038-- object doesn't have a symbol table --30038-- Reading syms from /lib/libnsl-2.7.so (0x6114000) --30038-- Reading debug info from /lib/libnsl-2.7.so... --30038-- ... CRC mismatch (computed b0b57441 wanted c8167f5e) --30038-- object doesn't have a symbol table --30038-- Reading syms from /lib/libselinux.so.1 (0x632D000) --30038-- Reading debug info from /lib/libselinux.so.1... --30038-- ... CRC mismatch (computed 6e2a0151 wanted 90cef010) --30038-- object doesn't have a symbol table --30038-- Reading syms from /usr/lib/libpcre.so.3.12.1 (0x6549000) --30038-- Reading debug info from /usr/lib/libpcre.so.3.12.1... --30038-- ... CRC mismatch (computed 9f1d15e2 wanted 3588444b) --30038-- object doesn't have a symbol table --30038-- Reading syms from /lib/libdl-2.7.so (0x676F000) --30038-- Reading debug info from /lib/libdl-2.7.so... --30038-- ... CRC mismatch (computed 13394ae2 wanted 5c0f7518) --30038-- object doesn't have a symbol table --30038-- REDIR: 0x5e2e2d0 (memset) redirected to 0x4c24200 (memset) --30038-- REDIR: 0x5e2d460 (rindex) redirected to 0x4c23cb0 (rindex) --30038-- REDIR: 0x5e282d0 (malloc) redirected to 0x4c22f40 (malloc) --30038-- REDIR: 0x5e29b90 (free) redirected to 0x4c22ac0 (free) --30038-- REDIR: 0x5e2fa60 (strchrnul) redirected to 0x4c242b0 (strchrnul) --30038-- REDIR: 0x5e2d050 (strlen) redirected to 0x4c23f50 (strlen) --30038-- REDIR: 0x5e2ecf0 (memcpy) redirected to 0x4c25020 (memcpy) --30038-- REDIR: 0x5e2e3e0 (mempcpy) redirected to 0x4c24a20 (mempcpy) --30038-- REDIR: 0x5e29d70 (realloc) redirected to 0x4c23000 (realloc) --30038-- REDIR: 0x5e2db70 (memchr) redirected to 0x4c240e0 (memchr) --30038-- REDIR: 0x5e2c930 (index) redirected to 0x4c23da0 (index) --30038-- REDIR: 0x5e2d2d0 (strncmp) redirected to 0x4c23fb0 (strncmp) --30038-- REDIR: 0x5e2d3b0 (strncpy) redirected to 0x4c25170 (strncpy) --30038-- REDIR: 0x5e27f70 (calloc) redirected to 0x4c22050 (calloc) --30038-- REDIR: 0xffffffffff600000 (???) redirected to 0x38029a63 (vgPlain_amd64_linux_REDIR_FOR_vgettimeofday) --30038-- REDIR: 0x5e2cae0 (strcmp) redirected to 0x4c24020 (strcmp) --30038-- REDIR: 0x5e2e130 (memmove) redirected to 0x4c24250 (memmove) --30038-- REDIR: 0x5e2e9f0 (stpcpy) redirected to 0x4c24cb0 (stpcpy) --30038-- REDIR: 0x5e2c770 (strcat) redirected to 0x4c24750 (strcat) --30038-- REDIR: 0xffffffffff600400 (???) redirected to 0x38029a6d (vgPlain_amd64_linux_REDIR_FOR_vtime) --30038-- REDIR: 0x5e2cb20 (strcpy) redirected to 0x4c25280 (strcpy) --30038-- REDIR: 0x5de69c0 (unsetenv) redirected to 0x4c24390 (unsetenv) ==30038== Syscall param ioctl(VT_GETSTATE) points to uninitialised byte(s) ==30038== at 0x5E823C7: ioctl (in /lib/libc-2.7.so) ==30038== by 0x40FE64: ck_get_active_console_num (ck-sysdeps-linux.c:679) ==30038== by 0x4091BA: ck_vt_monitor_init (ck-vt-monitor.c:408) ==30038== by 0x52B0723: g_type_create_instance (gtype.c:1575) ==30038== by 0x5295F5C: g_object_constructor (gobject.c:1046) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5297051: g_object_new_valist (gobject.c:986) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x408C90: ck_vt_monitor_new (ck-vt-monitor.c:460) ==30038== by 0x40C076: ck_seat_constructor (ck-seat.c:892) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5296F65: g_object_new_valist (gobject.c:1027) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x40B542: ck_seat_new_with_devices (ck-seat.c:1048) ==30038== by 0x40B7E1: ck_seat_new_from_file (ck-seat.c:1140) ==30038== by 0x408778: ck_manager_init (ck-manager.c:1723) ==30038== by 0x52B0723: g_type_create_instance (gtype.c:1575) ==30038== by 0x5295F5C: g_object_constructor (gobject.c:1046) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5297051: g_object_new_valist (gobject.c:986) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x4080C2: ck_manager_new (ck-manager.c:1828) ==30038== by 0x405FCF: main (main.c:332) ==30038== Address 0x7fefff1f0 is on thread 1's stack ==30038== ==30038== Thread 2: ==30038== Invalid read of size 8 ==30038== at 0x4015EE4: (within /lib/ld-2.7.so) ==30038== by 0x400AB93: (within /lib/ld-2.7.so) ==30038== by 0x40061E4: (within /lib/ld-2.7.so) ==30038== by 0x4008677: (within /lib/ld-2.7.so) ==30038== by 0x4012048: (within /lib/ld-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x401191A: (within /lib/ld-2.7.so) ==30038== by 0x5EBFF7F: (within /lib/libc-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x5EC00E6: __libc_dlopen_mode (in /lib/libc-2.7.so) ==30038== by 0x5BA4EAB: pthread_cancel_init (in /lib/libpthread-2.7.so) ==30038== by 0x5BA4FBF: _Unwind_ForcedUnwind (in /lib/libpthread-2.7.so) ==30038== by 0x5BA2DEF: __pthread_unwind (in /lib/libpthread-2.7.so) ==30038== by 0x5B9D604: pthread_exit (in /lib/libpthread-2.7.so) ==30038== by 0x54CB03A: g_thread_exit_posix_impl (gthread-posix.c:391) ==30038== by 0x409584: vt_thread_start (ck-vt-monitor.c:301) ==30038== by 0x5933283: g_thread_create_proxy (gthread.c:635) ==30038== by 0x5B9C3F6: start_thread (in /lib/libpthread-2.7.so) ==30038== by 0x5E89B2C: clone (in /lib/libc-2.7.so) ==30038== Address 0x6cc4a00 is 16 bytes inside a block of size 19 alloc'd ==30038== at 0x4C22FAB: malloc (vg_replace_malloc.c:207) ==30038== by 0x4008B75: (within /lib/ld-2.7.so) ==30038== by 0x4012048: (within /lib/ld-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x401191A: (within /lib/ld-2.7.so) ==30038== by 0x5EBFF7F: (within /lib/libc-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x5EC00E6: __libc_dlopen_mode (in /lib/libc-2.7.so) ==30038== by 0x5BA4EAB: pthread_cancel_init (in /lib/libpthread-2.7.so) ==30038== by 0x5BA4FBF: _Unwind_ForcedUnwind (in /lib/libpthread-2.7.so) ==30038== by 0x5BA2DEF: __pthread_unwind (in /lib/libpthread-2.7.so) ==30038== by 0x5B9D604: pthread_exit (in /lib/libpthread-2.7.so) ==30038== by 0x54CB03A: g_thread_exit_posix_impl (gthread-posix.c:391) ==30038== by 0x409584: vt_thread_start (ck-vt-monitor.c:301) ==30038== by 0x5933283: g_thread_create_proxy (gthread.c:635) ==30038== by 0x5B9C3F6: start_thread (in /lib/libpthread-2.7.so) ==30038== by 0x5E89B2C: clone (in /lib/libc-2.7.so) --30038-- Reading syms from /lib/libgcc_s.so.1 (0x6FB5000) --30038-- Reading debug info from /lib/libgcc_s.so.1... --30038-- ... CRC mismatch (computed 068ceb1e wanted 5861faf2) --30038-- object doesn't have a symbol table --30038-- REDIR: 0x5e2f990 (rawmemchr) redirected to 0x4c242e0 (rawmemchr) ==30038== ==30038== Thread 1: ==30038== Invalid read of size 8 ==30038== at 0x40FA75: emit_events_in_idle (ck-file-monitor-inotify.c:308) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== Address 0x6d175b8 is 8 bytes inside a block of size 16 free'd ==30038== at 0x4C22B2E: free (vg_replace_malloc.c:323) ==30038== by 0x592A455: g_slist_remove (gslist.c:328) ==30038== by 0x40EF40: ck_file_monitor_remove_notify (ck-file-monitor-inotify.c:526) ==30038== by 0x409988: ck_tty_idle_monitor_start (ck-tty-idle-monitor.c:307) ==30038== by 0x40FA74: emit_events_in_idle (ck-file-monitor-inotify.c:322) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== ==30038== Invalid read of size 8 ==30038== at 0x40FA37: emit_events_in_idle (ck-file-monitor-inotify.c:308) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== Address 0x72c6ed0 is 16 bytes inside a block of size 24 free'd ==30038== at 0x4C22B2E: free (vg_replace_malloc.c:323) ==30038== by 0x40EF8D: ck_file_monitor_remove_notify (ck-file-monitor-inotify.c:530) ==30038== by 0x409988: ck_tty_idle_monitor_start (ck-tty-idle-monitor.c:307) ==30038== by 0x40FA74: emit_events_in_idle (ck-file-monitor-inotify.c:322) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== ==30038== Invalid read of size 1 ==30038== at 0x592D110: g_str_hash (gstring.c:95) ==30038== by 0x5901305: g_hash_table_remove_internal (ghash.c:118) ==30038== by 0x40EE84: file_monitor_remove_watch (ck-file-monitor-inotify.c:245) ==30038== by 0x40EF83: ck_file_monitor_remove_notify (ck-file-monitor-inotify.c:529) ==30038== by 0x40E034: ck_session_finalize (ck-session.c:851) ==30038== by 0x529299F: g_object_unref (gobject.c:1793) ==30038== by 0x5900CF1: g_hash_table_remove_node (ghash.c:204) ==30038== by 0x5901378: g_hash_table_remove_internal (ghash.c:848) ==30038== by 0x406D36: remove_session_for_cookie (ck-manager.c:1355) ==30038== by 0x406F5E: remove_leader_for_connection (ck-manager.c:1516) ==30038== by 0x590102E: g_hash_table_foreach_remove_or_steal (ghash.c:975) ==30038== by 0x40626D: bus_name_owner_changed (ck-manager.c:1536) ==30038== by 0x4E37F3B: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x5290BCE: g_closure_invoke (gclosure.c:490) ==30038== by 0x52A47F7: signal_emit_unlocked_R (gsignal.c:2440) ==30038== by 0x52A6254: g_signal_emit_valist (gsignal.c:2199) ==30038== by 0x52A6642: g_signal_emit (gsignal.c:2243) ==30038== by 0x4E38E39: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x50550DB: dbus_connection_dispatch (dbus-connection.c:4379) ==30038== by 0x4E30854: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==30038== ==30038== Process terminating with default action of signal 11 (SIGSEGV) ==30038== Access not within mapped region at address 0x0 ==30038== at 0x592D110: g_str_hash (gstring.c:95) ==30038== by 0x5901305: g_hash_table_remove_internal (ghash.c:118) ==30038== by 0x40EE84: file_monitor_remove_watch (ck-file-monitor-inotify.c:245) ==30038== by 0x40EF83: ck_file_monitor_remove_notify (ck-file-monitor-inotify.c:529) ==30038== by 0x40E034: ck_session_finalize (ck-session.c:851) ==30038== by 0x529299F: g_object_unref (gobject.c:1793) ==30038== by 0x5900CF1: g_hash_table_remove_node (ghash.c:204) ==30038== by 0x5901378: g_hash_table_remove_internal (ghash.c:848) ==30038== by 0x406D36: remove_session_for_cookie (ck-manager.c:1355) ==30038== by 0x406F5E: remove_leader_for_connection (ck-manager.c:1516) ==30038== by 0x590102E: g_hash_table_foreach_remove_or_steal (ghash.c:975) ==30038== by 0x40626D: bus_name_owner_changed (ck-manager.c:1536) ==30038== by 0x4E37F3B: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x5290BCE: g_closure_invoke (gclosure.c:490) ==30038== by 0x52A47F7: signal_emit_unlocked_R (gsignal.c:2440) ==30038== by 0x52A6254: g_signal_emit_valist (gsignal.c:2199) ==30038== by 0x52A6642: g_signal_emit (gsignal.c:2243) ==30038== by 0x4E38E39: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x50550DB: dbus_connection_dispatch (dbus-connection.c:4379) ==30038== by 0x4E30854: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== ==30038== ERROR SUMMARY: 13 errors from 5 contexts (suppressed: 8 from 1) ==30038== ==30038== 1 errors in context 1 of 5: ==30038== Invalid read of size 1 ==30038== at 0x592D110: g_str_hash (gstring.c:95) ==30038== by 0x5901305: g_hash_table_remove_internal (ghash.c:118) ==30038== by 0x40EE84: file_monitor_remove_watch (ck-file-monitor-inotify.c:245) ==30038== by 0x40EF83: ck_file_monitor_remove_notify (ck-file-monitor-inotify.c:529) ==30038== by 0x40E034: ck_session_finalize (ck-session.c:851) ==30038== by 0x529299F: g_object_unref (gobject.c:1793) ==30038== by 0x5900CF1: g_hash_table_remove_node (ghash.c:204) ==30038== by 0x5901378: g_hash_table_remove_internal (ghash.c:848) ==30038== by 0x406D36: remove_session_for_cookie (ck-manager.c:1355) ==30038== by 0x406F5E: remove_leader_for_connection (ck-manager.c:1516) ==30038== by 0x590102E: g_hash_table_foreach_remove_or_steal (ghash.c:975) ==30038== by 0x40626D: bus_name_owner_changed (ck-manager.c:1536) ==30038== by 0x4E37F3B: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x5290BCE: g_closure_invoke (gclosure.c:490) ==30038== by 0x52A47F7: signal_emit_unlocked_R (gsignal.c:2440) ==30038== by 0x52A6254: g_signal_emit_valist (gsignal.c:2199) ==30038== by 0x52A6642: g_signal_emit (gsignal.c:2243) ==30038== by 0x4E38E39: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x50550DB: dbus_connection_dispatch (dbus-connection.c:4379) ==30038== by 0x4E30854: (within /usr/lib/libdbus-glib-1.so.2.1.0) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==30038== ==30038== 1 errors in context 2 of 5: ==30038== Invalid read of size 8 ==30038== at 0x40FA37: emit_events_in_idle (ck-file-monitor-inotify.c:308) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== Address 0x72c6ed0 is 16 bytes inside a block of size 24 free'd ==30038== at 0x4C22B2E: free (vg_replace_malloc.c:323) ==30038== by 0x40EF8D: ck_file_monitor_remove_notify (ck-file-monitor-inotify.c:530) ==30038== by 0x409988: ck_tty_idle_monitor_start (ck-tty-idle-monitor.c:307) ==30038== by 0x40FA74: emit_events_in_idle (ck-file-monitor-inotify.c:322) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== ==30038== 1 errors in context 3 of 5: ==30038== Thread 2: ==30038== Invalid read of size 8 ==30038== at 0x4015EE4: (within /lib/ld-2.7.so) ==30038== by 0x400AB93: (within /lib/ld-2.7.so) ==30038== by 0x40061E4: (within /lib/ld-2.7.so) ==30038== by 0x4008677: (within /lib/ld-2.7.so) ==30038== by 0x4012048: (within /lib/ld-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x401191A: (within /lib/ld-2.7.so) ==30038== by 0x5EBFF7F: (within /lib/libc-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x5EC00E6: __libc_dlopen_mode (in /lib/libc-2.7.so) ==30038== by 0x5BA4EAB: pthread_cancel_init (in /lib/libpthread-2.7.so) ==30038== by 0x5BA4FBF: _Unwind_ForcedUnwind (in /lib/libpthread-2.7.so) ==30038== by 0x5BA2DEF: __pthread_unwind (in /lib/libpthread-2.7.so) ==30038== by 0x5B9D604: pthread_exit (in /lib/libpthread-2.7.so) ==30038== by 0x54CB03A: g_thread_exit_posix_impl (gthread-posix.c:391) ==30038== by 0x409584: vt_thread_start (ck-vt-monitor.c:301) ==30038== by 0x5933283: g_thread_create_proxy (gthread.c:635) ==30038== by 0x5B9C3F6: start_thread (in /lib/libpthread-2.7.so) ==30038== by 0x5E89B2C: clone (in /lib/libc-2.7.so) ==30038== Address 0x6cc4a00 is 16 bytes inside a block of size 19 alloc'd ==30038== at 0x4C22FAB: malloc (vg_replace_malloc.c:207) ==30038== by 0x4008B75: (within /lib/ld-2.7.so) ==30038== by 0x4012048: (within /lib/ld-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x401191A: (within /lib/ld-2.7.so) ==30038== by 0x5EBFF7F: (within /lib/libc-2.7.so) ==30038== by 0x400DDF5: (within /lib/ld-2.7.so) ==30038== by 0x5EC00E6: __libc_dlopen_mode (in /lib/libc-2.7.so) ==30038== by 0x5BA4EAB: pthread_cancel_init (in /lib/libpthread-2.7.so) ==30038== by 0x5BA4FBF: _Unwind_ForcedUnwind (in /lib/libpthread-2.7.so) ==30038== by 0x5BA2DEF: __pthread_unwind (in /lib/libpthread-2.7.so) ==30038== by 0x5B9D604: pthread_exit (in /lib/libpthread-2.7.so) ==30038== by 0x54CB03A: g_thread_exit_posix_impl (gthread-posix.c:391) ==30038== by 0x409584: vt_thread_start (ck-vt-monitor.c:301) ==30038== by 0x5933283: g_thread_create_proxy (gthread.c:635) ==30038== by 0x5B9C3F6: start_thread (in /lib/libpthread-2.7.so) ==30038== by 0x5E89B2C: clone (in /lib/libc-2.7.so) ==30038== ==30038== 1 errors in context 4 of 5: ==30038== Thread 1: ==30038== Syscall param ioctl(VT_GETSTATE) points to uninitialised byte(s) ==30038== at 0x5E823C7: ioctl (in /lib/libc-2.7.so) ==30038== by 0x40FE64: ck_get_active_console_num (ck-sysdeps-linux.c:679) ==30038== by 0x4091BA: ck_vt_monitor_init (ck-vt-monitor.c:408) ==30038== by 0x52B0723: g_type_create_instance (gtype.c:1575) ==30038== by 0x5295F5C: g_object_constructor (gobject.c:1046) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5297051: g_object_new_valist (gobject.c:986) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x408C90: ck_vt_monitor_new (ck-vt-monitor.c:460) ==30038== by 0x40C076: ck_seat_constructor (ck-seat.c:892) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5296F65: g_object_new_valist (gobject.c:1027) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x40B542: ck_seat_new_with_devices (ck-seat.c:1048) ==30038== by 0x40B7E1: ck_seat_new_from_file (ck-seat.c:1140) ==30038== by 0x408778: ck_manager_init (ck-manager.c:1723) ==30038== by 0x52B0723: g_type_create_instance (gtype.c:1575) ==30038== by 0x5295F5C: g_object_constructor (gobject.c:1046) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5297051: g_object_new_valist (gobject.c:986) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x4080C2: ck_manager_new (ck-manager.c:1828) ==30038== by 0x405FCF: main (main.c:332) ==30038== Address 0x7fefff1f0 is on thread 1's stack ==30038== ==30038== 9 errors in context 5 of 5: ==30038== Invalid read of size 8 ==30038== at 0x40FA75: emit_events_in_idle (ck-file-monitor-inotify.c:308) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) ==30038== Address 0x6d175b8 is 8 bytes inside a block of size 16 free'd ==30038== at 0x4C22B2E: free (vg_replace_malloc.c:323) ==30038== by 0x592A455: g_slist_remove (gslist.c:328) ==30038== by 0x40EF40: ck_file_monitor_remove_notify (ck-file-monitor-inotify.c:526) ==30038== by 0x409988: ck_tty_idle_monitor_start (ck-tty-idle-monitor.c:307) ==30038== by 0x40FA74: emit_events_in_idle (ck-file-monitor-inotify.c:322) ==30038== by 0x590D3D3: g_main_context_dispatch (gmain.c:2012) ==30038== by 0x59106E4: g_main_context_iterate (gmain.c:2645) ==30038== by 0x5910A04: g_main_loop_run (gmain.c:2853) ==30038== by 0x406018: main (main.c:349) --30038-- --30038-- supp: 8 dl-hack3-1 ==30038== ==30038== IN SUMMARY: 13 errors from 5 contexts (suppressed: 8 from 1) ==30038== ==30038== malloc/free: in use at exit: 75,810 bytes in 1,363 blocks. ==30038== malloc/free: 12,857 allocs, 11,494 frees, 6,548,844 bytes allocated. ==30038== ==30038== searching for pointers to 1,363 not-freed blocks. ==30038== checked 270,640 bytes. ==30038== ==30038== ==30038== 1,239 (80 direct, 1,159 indirect) bytes in 2 blocks are definitely lost in loss record 33 of 46 ==30038== at 0x4C22FAB: malloc (vg_replace_malloc.c:207) ==30038== by 0x5914EBB: g_malloc (gmem.c:131) ==30038== by 0x5928957: g_slice_alloc (gslice.c:824) ==30038== by 0x59291E5: g_slice_alloc0 (gslice.c:833) ==30038== by 0x590737A: g_key_file_new (gkeyfile.c:270) ==30038== by 0x40B5FA: ck_seat_new_from_file (ck-seat.c:1083) ==30038== by 0x408778: ck_manager_init (ck-manager.c:1723) ==30038== by 0x52B0723: g_type_create_instance (gtype.c:1575) ==30038== by 0x5295F5C: g_object_constructor (gobject.c:1046) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5297051: g_object_new_valist (gobject.c:986) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x4080C2: ck_manager_new (ck-manager.c:1828) ==30038== by 0x405FCF: main (main.c:332) ==30038== ==30038== ==30038== 992 bytes in 62 blocks are definitely lost in loss record 38 of 46 ==30038== at 0x4C220BC: calloc (vg_replace_malloc.c:397) ==30038== by 0x5914E62: g_malloc0 (gmem.c:151) ==30038== by 0x4090C0: vt_add_watches (ck-vt-monitor.c:316) ==30038== by 0x4091F1: ck_vt_monitor_init (ck-vt-monitor.c:419) ==30038== by 0x52B0723: g_type_create_instance (gtype.c:1575) ==30038== by 0x5295F5C: g_object_constructor (gobject.c:1046) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5297051: g_object_new_valist (gobject.c:986) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x408C90: ck_vt_monitor_new (ck-vt-monitor.c:460) ==30038== by 0x40C076: ck_seat_constructor (ck-seat.c:892) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5296F65: g_object_new_valist (gobject.c:1027) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x40B542: ck_seat_new_with_devices (ck-seat.c:1048) ==30038== by 0x40B7E1: ck_seat_new_from_file (ck-seat.c:1140) ==30038== by 0x408778: ck_manager_init (ck-manager.c:1723) ==30038== by 0x52B0723: g_type_create_instance (gtype.c:1575) ==30038== by 0x5295F5C: g_object_constructor (gobject.c:1046) ==30038== by 0x529654F: g_object_newv (gobject.c:937) ==30038== by 0x5297051: g_object_new_valist (gobject.c:986) ==30038== by 0x5297190: g_object_new (gobject.c:795) ==30038== by 0x4080C2: ck_manager_new (ck-manager.c:1828) ==30038== by 0x405FCF: main (main.c:332) ==30038== ==30038== LEAK SUMMARY: ==30038== definitely lost: 1,072 bytes in 64 blocks. ==30038== indirectly lost: 1,159 bytes in 38 blocks. ==30038== possibly lost: 0 bytes in 0 blocks. ==30038== still reachable: 71,979 bytes in 1,241 blocks. ==30038== suppressed: 1,600 bytes in 20 blocks. ==30038== Reachable blocks (those to which a pointer was found) are not shown. ==30038== To see them, rerun with: --leak-check=full --show-reachable=yes --30038-- memcheck: sanity checks: 29 cheap, 3 expensive --30038-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --30038-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10 --30038-- memcheck: auxmaps_L2: 0 searches, 0 nodes --30038-- memcheck: SMs: n_issued = 199 (3184k, 3M) --30038-- memcheck: SMs: n_deissued = 6 (96k, 0M) --30038-- memcheck: SMs: max_noaccess = 524287 (8388592k, 8191M) --30038-- memcheck: SMs: max_undefined = 0 (0k, 0M) --30038-- memcheck: SMs: max_defined = 520 (8320k, 8M) --30038-- memcheck: SMs: max_non_DSM = 199 (3184k, 3M) --30038-- memcheck: max sec V bit nodes: 709 (60k, 0M) --30038-- memcheck: set_sec_vbits8 calls: 16373 (new: 709, updates: 15664) --30038-- memcheck: max shadow mem size: 7388k, 7M --30038-- translate: fast SP updates identified: 15,743 ( 87.0%) --30038-- translate: generic_known SP updates identified: 2,199 ( 12.1%) --30038-- translate: generic_unknown SP updates identified: 141 ( 0.7%) --30038-- tt/tc: 74,918 tt lookups requiring 85,571 probes --30038-- tt/tc: 74,918 fast-cache updates, 2 flushes --30038-- transtab: new 15,168 (350,273 -> 5,494,487; ratio 156:10) [0 scs] --30038-- transtab: dumped 0 (0 -> ??) --30038-- transtab: discarded 0 (0 -> ??) --30038-- scheduler: 3,396,008 jumps (bb entries). --30038-- scheduler: 29/85,610 major/minor sched events. --30038-- sanity: 30 cheap, 3 expensive checks. --30038-- exectx: 6,151 lists, 3,558 contexts (avg 0 per list) --30038-- exectx: 23,516 searches, 24,006 full compares (1,020 per 1000) --30038-- exectx: 23,315 cmp2, 43 cmp4, 0 cmpAll --30038-- errormgr: 59 supplist searches, 3,810 comparisons during search --30038-- errormgr: 21 errlist searches, 87 comparisons during search root@enter:~#