[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [valgrind] [Bug 351536] New: Valgrind should track map areas of unloaded libraries
From:       Thiago Macieira <thiago () kde ! org>
Date:       2015-08-20 21:32:02
Message-ID: bug-351536-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=351536

            Bug ID: 351536
           Summary: Valgrind should track map areas of unloaded libraries
           Product: valgrind
           Version: 3.10.0
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: memcheck
          Assignee: jseward@acm.org
          Reporter: thiago@kde.org

Sometimes, an invalid memory access is caused by a library that has got
unloaded, as in the following example:

==7557== Invalid read of size 4
==7557==    at 0xA8EBFE4: load<int> (qgenericatomic.h:83)
==7557==    by 0xA8EBFE4: QBasicAtomicInteger<int>::load() const
(qbasicatomic.h:118)
[...]
==7557==  Address 0x17a73f80 is not stack'd, malloc'd or (recently) free'd

The report is correct, but it would have been more useful if the last line
said:

==7557==  Address 0x17a73f80 is 0x73f80 bytes into unloaded library
libQt5XcbQpa.so

Further wishes:
 1) display the backtrace of the dlclose(), which would be equivalent to free()
for the regular memcheck functionality
 2) display the closest symbol in the library

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic