I did it again, may be the clean was not correct ! Are you agree with this result ? The function names are showed!
XMail is running now under valgrind in Telnet session. I juste stopped a few secs to copy these informations : XMail 1.17 (Linux/Ix86) server stopped ==31051== discard syms in /lib/libnss_files-2.3.2.so due to munmap() ==31051== discard syms in /lib/libnss_dns-2.3.2.so due to munmap() ==31051== discard syms in /lib/libresolv-2.3.2.so due to munmap() ==31051== ==31051== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from 1) --31051-- --31051-- supp: 7 __pthread_mutex_unlock/_IO_funlockfile ==31051== malloc/free: in use at exit: 3936 bytes in 45 blocks. ==31051== malloc/free: 131605 allocs, 131560 frees, 16986903 bytes allocated. ==31051== ==31051== searching for pointers to 45 not-freed blocks. ==31051== checked 4955408 bytes. ==31051== ==31051== 200 bytes in 1 blocks are definitely lost in loss record 1 of 4 ==31051== at 0x40218D6C: my_malloc (vg_libpthread.c:263) ==31051== by 0x4021A6FF: get_or_allocate_specifics_ptr (vg_libpthread.c:1405) ==31051== by 0x4021A818: __pthread_key_create (vg_libpthread.c:1442) ==31051== by 0x808B26B: SysCreateTlsKey(unsigned&, void (*)(void*)) (SysDepLinux.cpp:2121) ==31051== by 0x8055743: ErrOnceSetup() (Errors.cpp:319) ==31051== by 0x4021AB04: __pthread_once (vg_libpthread.c:1551) ==31051== by 0x808B327: SysThreadOnce(int*, void (*)()) (SysDepLinux.cpp:2171) ==31051== by 0x8055761: ErrSetupEnv() (Errors.cpp:328) ==31051== ==31051== ==31051== 224 bytes in 8 blocks are still reachable in loss record 2 of 4 ==31051== at 0x400218C6: malloc (vg_replace_malloc.c:153) ==31051== by 0x43310F4B: ??? ==31051== by 0x4330FC06: ??? ==31051== by 0x4331035A: ??? ==31051== by 0x4330FF21: ??? ==31051== by 0x4330605E: ??? ==31051== by 0x43306292: ??? ==31051== by 0x40414A77: gethostbyname_r@@GLIBC_2.1.2 (in /lib/libc-2.3.2.so) ==31051== ==31051== ==31051== 1208 bytes in 25 blocks are still reachable in loss record 3 of 4 ==31051== at 0x400218C6: malloc (vg_replace_malloc.c:153) ==31051== by 0x808B33E: SysAlloc(unsigned) (SysDepLinux.cpp:2180) ==31051== by 0x805578E: ErrSetupEnv() (Errors.cpp:335) ==31051== by 0x8055890: ErrSetErrorCode(int, char const*) (Errors.cpp:394) ==31051== by 0x806B0A9: RLckGetEntry(ResLocator const*, char const*) (ResLocks.cpp:242) ==31051== by 0x806B3B3: RLckTryLockSH(ResLocator const*, char const*) (ResLocks.cpp:384) ==31051== by 0x806B57E: RLckLock(char const*, int (*)(ResLocator const*, char const*)) (ResLocks.cpp:472) ==31051== by 0x806B733: RLckLockSH(char const*) (ResLocks.cpp:564) ==31051== ==31051== ==31051== 2304 bytes in 11 blocks are definitely lost in loss record 4 of 4 ==31051== at 0x400218C6: malloc (vg_replace_malloc.c:153) ==31051== by 0x808B33E: SysAlloc(unsigned) (SysDepLinux.cpp:2180) ==31051== by 0x8082399: ShbCreateBlock(unsigned) (ShBlocks.cpp:67) ==31051== by 0x8059CAE: SvrSetupSMAIL(int, char**) (MailSvr.cpp:730) ==31051== by 0x805AC71: SvrMain(int, char**) (MailSvr.cpp:1303) ==31051== by 0x8093726: MnDaemonStartup(int, char**) (MainLinux.cpp:301) ==31051== by 0x8093755: main (MainLinux.cpp:320) ==31051== by 0x40332916: __libc_start_main (in /lib/libc-2.3.2.so) ==31051== ==31051== LEAK SUMMARY: ==31051== definitely lost: 2504 bytes in 12 blocks. ==31051== possibly lost: 0 bytes in 0 blocks. ==31051== still reachable: 1432 bytes in 33 blocks. ==31051== suppressed: 0 bytes in 0 blocks. ==31051== --31051-- TT/TC: 0 tc sectors discarded. --31051-- 10040 chainings, 0 unchainings. --31051-- translate: new 11929 (202192 -> 1534905; ratio 75:10) --31051-- discard 713 (11322 -> 79824; ratio 70:10). --31051-- dispatch: 56450000 jumps (bb entries), of which 7747981 (13%) were unchained. --31051-- 92529/1295502 major/minor sched events. 43849 tt_fast misses. --31051-- reg-alloc: 23 t-req-spill, 290658+68 orig+spill uis, 29641 total-reg-r. --31051-- sanity: 76272 cheap, 3051 expensive checks. --31051-- ccalls: 58585 C calls, 59% saves+restores avoided (203944 bytes) --31051-- 58603 args, avg 0.59 setup instrs each (48010 bytes) --31051-- 0% clear the stack (175755 bytes) --31051-- 0 retvals, 100% of reg-reg movs avoided (0 bytes) dimanche 28 décembre 2003 at 19:58:12, you said : Davide> On Sun, 28 Dec 2003, Pascal de R. wrote: >> >> dimanche 28 décembre 2003 at 18:49:17, you said : >> >> Davide> On Sun, 28 Dec 2003, Pascal de R. wrote: >> >> >> This is the first test with valgrind (15 minutes running) ! >> >> Do you think my setup of it is correct and how many time I have to >> >> keep running before to read interesting result ? >> >> Davide> 1) Edit Makefile.lnx >> Davide> a) Replace "-O2" with "-g -O0" inside CFLAGS >> >> I did it >> >> Davide> b) Remove all the "strip" lines >> I did it >> >> Davide> 2) Rebuild XMail >> >> I did It >> >> Davide> $ make -f Makefile.lnx clean >> I did It >> >> Davide> $ make -f Makefile.lnx >> >> I did It >> >> Davide> 3) Run valgrind: >> >> I did It >> >> Davide> # export MAIL_ROOT=... >> Davide> # export MAIL_CMD_LINE=... >> Davide> # valgrind -v --skin=addrcheck --num-callers=8 >> Davide> --leak-check=yes --show-reachable=yes ./XMail -Md >> >> >> So everything seems ok for me. Davide> Valgrind showed numeric addresses not function names, so there seem to be Davide> something wrong in your process. Davide> - Davide Davide> - Davide> To unsubscribe from this list: send the line "unsubscribe xmail" in Davide> the body of a message to [EMAIL PROTECTED] Davide> For general help: send the line "help" in the body of a message to Davide> [EMAIL PROTECTED] Best regards, Pascal, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]