rtcwake: valgrind reports mem leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list, 
I'm learning valgrind, ran it against rtcwake and got 1 leaked block. 
Attaching the output so you can have a look. As I say, I'm just learning so if 
it's a false positive, I'm sorry. 
Thanks, Marek

$ rtcwake -V
rtcwake from util-linux 2.19
Archlinux, i686
$ yaourt -Qs libc
core/glibc 2.13-4 [31.03 M] (base)
    GNU C Library


[marek@beruska ~]$ valgrind --tool=memcheck --leak-check=full -v rtcwake -m 
show
==18021== Memcheck, a memory error detector
==18021== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==18021== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==18021== Command: rtcwake -m show
==18021== 
--18021-- Valgrind options:
--18021--    --tool=memcheck
--18021--    --leak-check=full
--18021--    -v
--18021-- Contents of /proc/version:
--18021--   Linux version 2.6.37-ARCH (tobias@T-POWA-LX) (gcc version 4.5.2 
20110127 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Feb 25 09:07:57 UTC 2011
--18021-- Arch and hwcaps: X86, x86-sse1-sse2
--18021-- Page sizes: currently 4096, max supported 4096
--18021-- Valgrind library directory: /usr/lib/valgrind
--18021-- Reading syms from /lib/ld-2.13.so (0x4000000)
--18021-- Reading syms from /usr/sbin/rtcwake (0x8048000)
--18021--    object doesn't have a symbol table
--18021-- Reading syms from /usr/lib/valgrind/memcheck-x86-linux (0x38000000)
--18021--    object doesn't have a symbol table
--18021--    object doesn't have a dynamic symbol table
--18021-- Reading suppressions file: /usr/lib/valgrind/default.supp
--18021-- REDIR: 0x4016bb0 (index) redirected to 0x3803fa33 (???)
--18021-- Reading syms from /usr/lib/valgrind/vgpreload_core-x86-linux.so 
(0x401f000)
--18021--    object doesn't have a symbol table
--18021-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so 
(0x4021000)
--18021--    object doesn't have a symbol table
==18021== WARNING: new redirection conflicts with existing -- ignoring it
--18021--     new: 0x04016bb0 (index               ) R-> 0x040250e0 index
--18021-- REDIR: 0x4016d50 (strlen) redirected to 0x4025510 (strlen)
--18021-- Reading syms from /lib/libc-2.13.so (0x4050000)
--18021--    object doesn't have a symbol table
--18021-- REDIR: 0x40c3e10 (rindex) redirected to 0x4024f20 (rindex)
--18021-- REDIR: 0x40c3480 (strcmp) redirected to 0x4026030 (strcmp)
--18021-- REDIR: 0x40c3a00 (strlen) redirected to 0x40254d0 (strlen)
--18021-- REDIR: 0x40c3c20 (strncmp) redirected to 0x40259b0 (strncmp)
--18021-- REDIR: 0x40c3310 (index) redirected to 0x4025020 (index)
--18021-- REDIR: 0x40c8450 (strchrnul) redirected to 0x4027270 (strchrnul)
--18021-- REDIR: 0x40bfc60 (malloc) redirected to 0x4024bc0 (malloc)
--18021-- REDIR: 0x40c5530 (mempcpy) redirected to 0x40273b0 (mempcpy)
--18021-- REDIR: 0x40c59b0 (memcpy) redirected to 0x40261f0 (memcpy)
--18021-- REDIR: 0x40c0120 (free) redirected to 0x4023dc0 (free)
--18021-- REDIR: 0x40c5670 (stpcpy) redirected to 0x4026d80 (stpcpy)
--18021-- REDIR: 0x40c3ab0 (strnlen) redirected to 0x4025470 (strnlen)
--18021-- REDIR: 0x40c34f0 (strcpy) redirected to 0x4025550 (strcpy)
--18021-- REDIR: 0x40c4a00 (strstr) redirected to 0x4027670 (strstr)
--18021-- REDIR: 0x40c4fd0 (memchr) redirected to 0x40261b0 (memchr)
--18021-- REDIR: 0x40c0200 (realloc) redirected to 0x4024c90 (realloc)
--18021-- REDIR: 0x40c5760 (strcasecmp) redirected to 0x4025ab0 (strcasecmp)
--18021-- REDIR: 0x40c8380 (rawmemchr) redirected to 0x40272a0 (rawmemchr)
rtcwake: assuming RTC uses UTC ...
--18021-- REDIR: 0x407d9e0 (setenv) redirected to 0x40278e0 (setenv)
alarm: off
==18021== 
==18021== HEAP SUMMARY:
==18021==     in use at exit: 5 bytes in 1 blocks
==18021==   total heap usage: 76 allocs, 75 frees, 8,981 bytes allocated
==18021== 
==18021== Searching for pointers to 1 not-freed blocks
==18021== Checked 47,652 bytes
==18021== 
==18021== 5 bytes in 1 blocks are definitely lost in loss record 1 of 1
==18021==    at 0x4024C28: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
x86-linux.so)
==18021==    by 0x40C376F: strdup (in /lib/libc-2.13.so)
==18021==    by 0x80491CF: ??? (in /usr/sbin/rtcwake)
==18021==    by 0x4066DB5: (below main) (in /lib/libc-2.13.so)
==18021== 
==18021== LEAK SUMMARY:
==18021==    definitely lost: 5 bytes in 1 blocks
==18021==    indirectly lost: 0 bytes in 0 blocks
==18021==      possibly lost: 0 bytes in 0 blocks
==18021==    still reachable: 0 bytes in 0 blocks
==18021==         suppressed: 0 bytes in 0 blocks
==18021== 
==18021== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 13 from 8)
--18021-- 
--18021-- used_suppression:     13 U1004-ARM-_dl_relocate_object
==18021== 
==18021== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 13 from 8)

-- 

Marek Otahal :o)

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux