Summary: | Fedora 15/x64: err read debug info with --read-var-info=yes flag | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Dmitry Djachenko <dimhen> |
Component: | general | Assignee: | Julian Seward <jseward> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bart.vanassche+kde |
Priority: | NOR | ||
Version: | 3.7 SVN | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
full output from V
Proposed fix |
Description
Dmitry Djachenko
2011-07-23 08:54:16 UTC
Same problem on openSUSE 12.1 (amd64) after having installed the glibc-debuginfo and libstdc++46-debuginfo packages: $ ./vg-in-place --tool=none --read-var-info=yes drd/tests/annotate_smart_pointer ==788== Nulgrind, the minimal Valgrind tool ==788== Copyright (C) 2002-2011, and GNU GPL'd, by Nicholas Nethercote. ==788== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info ==788== Command: drd/tests/annotate_smart_pointer ==788== chase_cuOff: no entry for 0x010d4 chase_cuOff: no entry for 0x20701 [ ... ] Created attachment 67881 [details]
Proposed fix
Does the attached patch help ?
Committed the attached patch as r12338 on the trunk. Feedback is still welcome though. sorry for delay and thank You for fix! 1) with r12337 i can reproduce "./vg-in-place --tool=none --read-var-info=yes drd/tests/annotate_smart_pointer" 2) with r12340 there are no errs problem return :) 1. Fedora 16/x64 updated yesterday 2. install glibc-debuginfo and libstdc++-debuginfo 3. gcc-4.6.2 4. latest valgrind from trunk [dimhen@dim valgrind]$ ./vg-in-place --tool=none --read-var-info=yes drd/tests/annotate_smart_pointer ==13379== Nulgrind, the minimal Valgrind tool ==13379== Copyright (C) 2002-2011, and GNU GPL'd, by Nicholas Nethercote. ==13379== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info ==13379== Command: drd/tests/annotate_smart_pointer ==13379== chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 chase_cuOff: no entry for 0x1a5e70 chase_cuOff: no entry for 0x1e7658 : Invalid cuOff = 0x0100c --13379-- WARNING: Serious error when reading debug info --13379-- When reading debug info from /usr/lib64/libstdc++.so.6.0.16: --13379-- resolve_variable_types: cuOff does not refer to a known type (In reply to comment #5) > : Invalid cuOff = 0x0100c > --13379-- WARNING: Serious error when reading debug info > --13379-- When reading debug info from /usr/lib64/libstdc++.so.6.0.16: > --13379-- resolve_variable_types: cuOff does not refer to a known type Actually this is another issue than the issue mentioned in #1, namely that debug information for rvalue references wasn't understood yet by Valgrind. Support for that kind of debug information has been added in r12362. Note: there is still an issue that remains on Fedora 16 (see below). Not sure yet what's causing this. $ ./vg-in-place --read-var-info=yes drd/tests/annotate_smart_pointer ==1861== Memcheck, a memory error detector ==1861== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==1861== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info ==1861== Command: drd/tests/annotate_smart_pointer ==1861== --1861-- WARNING: Serious error when reading debug info --1861-- When reading debug info from /lib/ld-2.14.90.so: --1861-- negative range in .debug_loc section Done. ==1861== ==1861== HEAP SUMMARY: ==1861== in use at exit: 0 bytes in 0 blocks ==1861== total heap usage: 4 allocs, 4 frees, 184 bytes allocated ==1861== ==1861== All heap blocks were freed -- no leaks are possible ==1861== ==1861== For counts of detected and suppressed errors, rerun with: -v ==1861== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) You see this with x86? x64 has no such messages $ ./vg-in-place --read-var-info=yes drd/tests/annotate_smart_pointer ==23002== Memcheck, a memory error detector ==23002== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==23002== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info ==23002== Command: drd/tests/annotate_smart_pointer ==23002== Done. ==23002== ==23002== HEAP SUMMARY: ==23002== in use at exit: 0 bytes in 0 blocks ==23002== total heap usage: 4 allocs, 4 frees, 356 bytes allocated ==23002== ==23002== All heap blocks were freed -- no leaks are possible ==23002== ==23002== For counts of detected and suppressed errors, rerun with: -v ==23002== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) (In reply to comment #7) > You see this with x86? Yes, that message was observed on a 32-bit system. (In reply to comment #5) > problem return :) Dmitry, can you try the svn trunk and let us know if this bug is still present ? Julian, there are no errs :) Thank You! Fedora 17/x86_64 gcc-4.7.0 with & w/o glibc/libstdc++ debuginfo original test PASS, test from #c1 PASS |