Contenu | Rechercher | Menus

Annonce

DVD, clés USB et t-shirts Ubuntu-fr disponibles sur la boutique En Vente Libre

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 21/07/2021, à 17:58

Nuliel

fuites mémoire des outils classiques?

Bonjour,
Ma question est un peu nulle, mais pourquoi valgrind trouve des fuites sur des programmes de base comme grep?

nuliel@nuliel-desktop:~$ valgrind --leak-check=full grep bidule test
==23338== Memcheck, a memory error detector
==23338== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==23338== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==23338== Command: grep bidule test
==23338== 
bidule
==23338== 
==23338== HEAP SUMMARY:
==23338==     in use at exit: 114,055 bytes in 38 blocks
==23338==   total heap usage: 170 allocs, 132 frees, 142,699 bytes allocated
==23338== 
==23338== 128 bytes in 1 blocks are possibly lost in loss record 18 of 26
==23338==    at 0x483AD7B: realloc (vg_replace_malloc.c:834)
==23338==    by 0x12A641: ??? (in /usr/bin/grep)
==23338==    by 0x10E5CF: ??? (in /usr/bin/grep)
==23338==    by 0x10D66F: ??? (in /usr/bin/grep)
==23338==    by 0x4908D09: (below main) (libc-start.c:308)
==23338== 
==23338== 856 (224 direct, 632 indirect) bytes in 1 blocks are definitely lost in loss record 21 of 26
==23338==    at 0x48386AF: malloc (vg_replace_malloc.c:306)
==23338==    by 0x483ADE7: realloc (vg_replace_malloc.c:834)
==23338==    by 0x49C4098: re_compile_internal (regcomp.c:750)
==23338==    by 0x49C42CA: re_compile_pattern (regcomp.c:230)
==23338==    by 0x10E31C: ??? (in /usr/bin/grep)
==23338==    by 0x10E61A: ??? (in /usr/bin/grep)
==23338==    by 0x10D66F: ??? (in /usr/bin/grep)
==23338==    by 0x4908D09: (below main) (libc-start.c:308)
==23338== 
==23338== LEAK SUMMARY:
==23338==    definitely lost: 224 bytes in 1 blocks
==23338==    indirectly lost: 632 bytes in 16 blocks
==23338==      possibly lost: 128 bytes in 1 blocks
==23338==    still reachable: 113,071 bytes in 20 blocks
==23338==         suppressed: 0 bytes in 0 blocks
==23338== Reachable blocks (those to which a pointer was found) are not shown.
==23338== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==23338== 
==23338== For lists of detected and suppressed errors, rerun with: -s
==23338== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
nuliel@nuliel-desktop:~$

C'est un oubli ou la mémoire est libérée plus tard?


[ poster un retour de commande ] [ poster une photo ]
Thinkpad x220, Dell latitude E7270 (i7 6600U, 16 Go de RAM, ...), Thinkstation E32 modifié: i5-4570, GTX 1060 6 Gb, 16 Gb de RAM, ...
Pour reprendre le contrôle des semences: https://kokopelli-semences.fr/fr/

Hors ligne