Summary: | 32 byte leak reported when code uses dlopen and links against pthread | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | kdebugzilla |
Component: | memcheck | Assignee: | Julian Seward <jseward> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ivosh |
Priority: | NOR | ||
Version: | 3.11.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
kdebugzilla
2016-02-04 13:13:32 UTC
With your small example, I got much more interesting results on Ubuntu 16.10 with gcc 6.3.0 and glibc 2.24. ==24182== Invalid read of size 1 ==24182== at 0x4017251: _dl_close (dl-close.c:817) ==24182== by 0x40106C3: _dl_catch_error (dl-error.c:187) ==24182== by 0x4E3B580: _dlerror_run (dlerror.c:163) ==24182== by 0x4E3AFDE: dlclose (dlclose.c:46) ==24182== by 0x108748: main (dl.c:6) ==24182== Address 0x3d4 is not stack'd, malloc'd or (recently) free'd ==24182== ==24182== ==24182== Process terminating with default action of signal 11 (SIGSEGV) ==24182== Access not within mapped region at address 0x3D4 ==24182== at 0x4017251: _dl_close (dl-close.c:817) ==24182== by 0x40106C3: _dl_catch_error (dl-error.c:187) ==24182== by 0x4E3B580: _dlerror_run (dlerror.c:163) ==24182== by 0x4E3AFDE: dlclose (dlclose.c:46) ==24182== by 0x108748: main (dl.c:6) Segmentation fault (core dumped) Forgot to say, native program run crashes as well. |