|
From: Beorn J. <beo...@ya...> - 2005-05-15 19:06:46
|
[ Sigh -- by habit, I signed up for the digests, so I can't form a proper follow-up ] > You are presumably dlclosing those same files, which causes valgrind > to discard the name to address mapping so it can't then translate > stack traces involving those addresses. Good guess. However, I never call 'dlclose( )'. [I guess another hint on writing bug reports is to include information on obvious points that you are not doing]. Perhaps some other standard library might do this for me on shutdown, or perhaps an errant 'munmap( )'. But, this would not eliminate the "Reading syms ..." messages would it? Which is generated on 'dlopen( )', no? Output from a test program suggests this is true: ==15536== Reading syms from /lib/tls/libc-2.3.2.so (0x1B9FC000) ==15536== object doesn't have any debug info ==15536== TRANSLATE: 0x1B8E4C30 redirected to 0x52BFF020 before dlopen() >>> ==15536== TRANSLATE: 0x1BA6CA80 redirected to 0x1B9034E0 ==15536== TRANSLATE: 0x1BA6D140 redirected to 0x1B903E1C ==15536== Reading syms from /home/beorn/test/val/shlib2.so (0x1B90A000) before dlclose() >>> ==15536== discard syms at 0x1B90A000-0x1B90C000 in /home/beorn/test/val/shlib2.so due to munmap() ==15536== TRANSLATE: 0x1BA6CC00 redirected to 0x1B9039FC after dlclose() >>> ABCDEFG ==15536== ==15536== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 25 from 1) I omitted some details in the original post: I have set VG_N_THREADS to 1000, and VG_N_THREAD_KEYS to 500. Also, when setting one of the debug variables (mem_debug, at file scope), the debugging output ends with: unmap: addr=0x1C1EF000-0x1C1FB000 s=0xB00B4C88 ->addr=0x1C1FA000-0x1C1FB000 len=4096 ==22462== discard syms at 0x1C1EF000-0x1C1FB000 in /lib/libnss_files-2.3.2.so due to munmap() case 3: s==0xB00B4C88 deleted ==22462== ==22462== ERROR SUMMARY: 11 errors from 4 contexts (suppressed: 205 from 1) Only normal 'valgrind' output follows from there (note, this was a different run from the one I originally quoted, so the PIDs don't match). (Either way, the 'dlclose()' point is a good FAQ item). Any further hints? Thanks, - Beorn Johnson __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail |