[solved]Einige Tests mit valgrind...
Verfasst: 09.06.2010 22:10
Ich hab grade mal mit Valgrind rumgespielt, weil ich schaun wollte ob ich in meinen Librarys Memoryleaks habe, dabei ist mir folgendes aufgefallen:
Folgendes Program:
hat folgenden Valgrind Output
Wenn man Threadsafe einschaltet sind es 28 bytes in 2 blocks...
Daher jetzt die frage meinerseits ist das ein Bug, vernachlässigbar oder sonst irgendwas?
Hoffe ich bin dafür jetzt im richtigen Subforum, ansonsten bitte schieben.
Getestet unter aktuellem Ubuntu mit aktuellem PB 4.50
MFG
Blackskyliner
Folgendes Program:
Code: Alles auswählen
Print("Test")
Code: Alles auswählen
blackskyliner@blackskylap:~$ valgrind ./test.run --leak-check=full -v
==2506== Memcheck, a memory error detector
==2506== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==2506== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==2506== Command: ./test.run --leak-check=full -v
==2506==
TestTestTestTestTestTestTestTestTestTest==2506==
==2506== HEAP SUMMARY:
==2506== in use at exit: 16 bytes in 1 blocks
==2506== total heap usage: 1 allocs, 0 frees, 16 bytes allocated
==2506==
==2506== LEAK SUMMARY:
==2506== definitely lost: 0 bytes in 0 blocks
==2506== indirectly lost: 0 bytes in 0 blocks
==2506== possibly lost: 0 bytes in 0 blocks
==2506== still reachable: 16 bytes in 1 blocks
==2506== suppressed: 0 bytes in 0 blocks
==2506== Rerun with --leak-check=full to see details of leaked memory
==2506==
==2506== For counts of detected and suppressed errors, rerun with: -v
==2506== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 8)
Daher jetzt die frage meinerseits ist das ein Bug, vernachlässigbar oder sonst irgendwas?
Hoffe ich bin dafür jetzt im richtigen Subforum, ansonsten bitte schieben.
Getestet unter aktuellem Ubuntu mit aktuellem PB 4.50
MFG
Blackskyliner