Re: libdl usage count wrapping

2008-10-28 Thread Phil Estes
On Fri, 2008-09-26 at 19:03 -0500, Kevin Day wrote: > On Thu, Sep 25, 2008 at 4:17 PM, Vallevand, Mark K > <[EMAIL PROTECTED]> 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() d

Re: libdl usage count wrapping

2008-09-26 Thread Kevin Day
On Thu, Sep 25, 2008 at 4:17 PM, Vallevand, Mark K <[EMAIL PROTECTED]> 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

RE: libdl usage count wrapping

2008-09-25 Thread Vallevand, Mark K
attachments from all computers. -Original Message- From: Kevin Day [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 4:11 PM To: Vallevand, Mark K Cc: uclibc@uclibc.org Subject: Re: libdl usage count wrapping On Wed, Sep 24, 2008 at 10:15 AM, Vallevand, Mark K <[EMAIL PROTEC

Re: libdl usage count wrapping

2008-09-25 Thread Kevin Day
On Wed, Sep 24, 2008 at 10:15 AM, Vallevand, Mark K <[EMAIL PROTECTED]> wrote: > And, here's the patch I used to fix the memory leak. > > --- old/ldso/libdl/libdl.c 2008-09-17 08:42:34.0 -0500 > +++ uClibc/ldso/libdl/libdl.c 2008-09-16 15:14:44.0 -0500 > @@ -632,6 +632,13 @@

RE: libdl usage count wrapping

2008-09-24 Thread Vallevand, Mark K
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vallevand, Mark K Sent: Wednesday, September 24, 2008 9:53 AM To: uclibc@uclibc.org Subject: RE: libdl usage count wrapping I'd be interested to see if you see memory leaking as this program runs. I saw a

RE: libdl usage count wrapping

2008-09-24 Thread Vallevand, Mark K
-mail and its attachments from all computers. -Original Message- From: Kevin Day [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 5:05 PM To: [EMAIL PROTECTED] Cc: Vallevand, Mark K; uclibc@uclibc.org Subject: Re: libdl usage count wrapping On Tue, Sep 23, 2008 at 3:06 PM, Ca

Re: libdl usage count wrapping

2008-09-23 Thread Phil Estes
On Tue, 2008-09-23 at 17:04 -0500, Kevin Day wrote: > > I felt the need to test this on my uClibc 0.9.28.3 > and got the following segfault: > > Call ... 32766/5 > File not found > opened 1 > closed 0 > > Call ... 32767/5 > File not found > opened 1 > Segmentation fault (core dumped) >

Re: libdl usage count wrapping

2008-09-23 Thread Kevin Day
er and delete the e-mail >> and its attachments from all computers. >> >> >> -----Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >> Behalf Of Phil Estes >> Sent: Monday, September 22, 2008 9:45 PM >> To: uclibc@uclibc.o

Re: libdl usage count wrapping

2008-09-23 Thread Carmelo Amoroso
ATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Beha

RE: libdl usage count wrapping

2008-09-23 Thread Vallevand, Mark K
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Estes Sent: Monday, September 22, 2008 9:45 PM To: uclibc@uclibc.org Subject: libdl usage count wrapping Recently I was looking into an issue where someone was claiming pam was segfaulting after a lot of usa

libdl usage count wrapping

2008-09-22 Thread Phil Estes
Recently I was looking into an issue where someone was claiming pam was segfaulting after a lot of usage (lots of calls to authenticate users--usually around 5K calls). My investigation led me to the point where I realized that the dlopen() and dlclose() management of ref. counting is not balanced