Lmdbg.

Debugger di Maloc leggero
Scarica ora

Lmdbg. Classifica e riepilogo

Annuncio pubblicitario

  • Rating:
  • Licenza:
  • MIT/X Consortium Lic...
  • Prezzo:
  • FREE
  • Nome editore:
  • Aleksey Cheusov
  • Sito web dell'editore:

Lmdbg. Tag


Lmdbg. Descrizione

Debugger di malloc leggero. LMDBG è un'applicazione che consente di rilevare la memoria perdite e le doppie freni. Tuttavia, a differenza degli altri, LMDBG genera * Full * Stacktracesand separa la registrazione dall'analisi inossidabile per analizzare un'applicazione su base per modulo.- LMDBG-RUN è un'utilità principale LMDBG. Esegue un'applicazione e crea un file di registro (o FIFO) in cui tutte le chiamate MALOC / Cloloc / Realloc / Free / Memalign / Posix_Memalign Invocazioni sono registrate con il loro ingresso (conteggio dei byte, puntatore), output (puntatore) e (!!! Uniques Caratteristica !!!) Stacktrace completo (Puntatori). Esempio: $ Test Cat / Test2.c #include int Main () {void * p1 = null; void * p2 = null; P1 = malloc (555); P2 = Realloc (P2, 666); P2 = Realloc (P2, 777); P2 = Realloc (P2, 888); Ritorno 0; } $ GCC -O0 -G -G -O _TEST2 TEST / TEST2.C $ LMDBG-RUN -O _LOG ./_TEST2 $ Cat _LOG MALLOC (555) -> 0xBB9014000xBBE58E80xBBE5B030x80487380x80485840x80484e7 realloc (null, 666) -> 0xbb9018000xbbbe58e80xbbbe5a370x804874e 0x80485840x80484e7 realloc (0xbb901800, 777) -> 0xbb901c000xbbbe58e80xbbbe5a370x80487640x80485840x80484e7 realloc (0xbb901c00, 888) -> 0xbb9018000xbbbe58e80xbbbe5a370x804877a 0x80485840x80484e7 $ NOTA: stacktrace completa permette di analizzare la vostra applicazione, per esempio, si può rilevare quali blocchi / componenti richiedono più memoria di altri e perché. LMDBG-SYM è uno strumento molto importante per questo, vedi sotto.- LMDBG-Leaks analizza un file di registro generato da LMDBG-RUN e OUTPUT tutto trovato Memory MemorySexamplexample: $ LMDBG-perdes _log realloc (0xBb901c00, 888) -> 0xBB908000xBBE58E80xBBBE5A370x804877A 0x80485840x80485840x80485840x80484840x80484E7 MALLOC (555) -> 0xBB9014000xBBE58E80xBBBE58E80xBBBE5B030x80487380x80485840x80484e7 $ - LMDBG-Sym Convertes Indirizzi su Source.c: 999 se è possibile (GDB (1) è in azione): $ LMDBG-Sym ./ _test2 _log malloc (555) -> 0xbb9014000xbbbe58e80xbbbe5b030x8048738 test / test2.c: 8 principale 0x80485840x80484e7 realloc (NULL, 666) -> 0xbb9018000xbbbe58e80xbbbe5a370x804874e test / test2.c: 9 principale 0x80485840x80484e7 realloc (0xbb901800, 777) -> 0xbb901c000xbbbe58e80xbbbe5a370x8048764 test / test2.c: 10 principale 0x80485840x80484e7 realloc (0xbb901c00, 888) -> 0xbb9018000xbbbe58e80xbbbe5a37 test 0x804877a / test2.c: 11 principali 0x80485840x80484e7 $ Esempio (addr2line (1) opere Qui): $ lmdbg-sym -a ./_test2 _log malloc (555 ) -> 0xbb9014000xbbbe58e80xbbbe5b030x8048738 test / test2.c: 80x80485840x80484e7 realloc (NULL, 666) -> 0xbb9018000xbbbe58e80xbbbe5a370x804874e test / test2.c: 90x80485840x80484e7 realloc (0xbb901800, 777) -> 0xbb901c000xbbbe58e80xbbbe5a370x8048764 test / test2.c: 100x80485840x80484e7 realloc (0xbb901c00, 888) -> 0xbb9018000xbbbe58e80xbbbe5a37 test 0x804877a / test2.c: 110x80485840x80484e7 $ - lmdbg-sysleaks - greps o salta le perdite di memoria di sistema trovati in libc, libdl , C ++ Stl ecc. Vedere i test / file LMDBG * .conf. I file di configurazione predefiniti sono: ~ / .lmdbg.conf e /etcg.lmdbg.conf- lmdbg = lmdbg-run + lmdbg-perdite + lmdbg-sym + lmdbg-sysleaksthat è lmmdbg è uno strumento all-in-one livello superiore. : $ lmdbg -v -o _log ./_test2 Le perdite di memoria sono state rilevate e salvate in file '_log' $ cat _log realloc (0xbb901c00, 888) -> 0xbb9018000xbbe58e80xbbe5a370x804877A Test / test2.c: 11 Main 0x80485840x80484e7 malloc ( 555) -> 0xBB9014000xBBE58E80xBBBE5B030xBBBE5B030x8048738 Test / Test2.C: 8 Main 0x80485840x80484E7 $


Lmdbg. Software correlato