libdl usage count wrapping

Phil Estes estesp at linux.vnet.ibm.com
Tue Oct 28 17:33:10 UTC 2008


On Fri, 2008-09-26 at 19:03 -0500, Kevin Day wrote:

> On Thu, Sep 25, 2008 at 4:17 PM, Vallevand, Mark K
> <Mark.Vallevand at unisys.com> wrote:
> > This patch was intended to fix a memory leak, not the count overflow.
> > We still have some problem in that area.  We resolved it by not calling
> > dlopen() dlclose() but rather calling dlopen() just once and reusing the
> > handle.
> >
> > Regards.
> > Mark K Vallevand
> 
> Allright, thanks for clearing up my misunderstandings
> 
> Now, my testing has yielded that the segfault occurs on the function
> call: _dl_munmap((void*)tpnt->loadaddr, end);
> 


Just FYI in case anyone is still looking at this issue, I did open a bug
so it can be tracked:
http://busybox.net/bugs/view.php?id=5784

Kevin--you are getting closer :)  The segfault occurs on the next libc
function call after the _dl_munmap .. the reason should be fairly clear
given you are unmapping the code segment of the C runtime.. more detail
is in the bug.

Thanks,
Phil Estes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20081028/d1cdea6f/attachment-0001.htm 


More information about the uClibc mailing list