> From [EMAIL PROTECTED] Thu Jun 29 07:03:17 2000
> Date: Thu, 29 Jun 2000 10:24:38 -0230
> From: A Earle <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: lpr as filter - temporary files stay - 3.6.19
>
> Well, looks like i got it all into the subject line!
>
> lpr as filter - temporary files stay - 3.6.19
>
> I'm accumulating a litter of files /tmp/temp00??????
>
> -- 
> Deep down in every one of us there is a certain stagnant something
> that is dormant.                      -- Anna Russell

Ummm... uh... the following says it all:

Release LPRng 3.6.20 - Sun Jun 25 16:34:15 PDT 2000
  One of the silly memory leaks that has been reported, tested for,
   analyzed, etc., finally was found.  The problem was in the
   child.c file,  where I keep track of children processes
   by dynamically allocating a list.  While I carefully cleaned
   up the list in children of the main LPD process,
   I never cleaned up the list in the main LPD process.  Thus,
   if you created a large number of children the list would grow
   a small amount (4 bytes) for each child.
   This problem was found by brutally using the 'DMALLOC' debugging
   package,  finding every 'malloc' call in the main LPD process
   and then looking for a matching free call in the main line loop.
   When one was not found for the case where I had 0 processes
   I knew that I had found the problem.  Sigh.
   (Stumbled over after staring at the code for a week by:
      Patrick Powell <[EMAIL PROTECTED]>)
  The call to 'Remove_tempfile()' routine was removed from
   the 'cleanup()' when trying to find the above mentioned memory
   leak and was not put back.  Bad Coder! Bad!  
   (Found by: A Earle <[EMAIL PROTECTED]>)

Patrick ("No cookie? No donut? Whaaa...") Powell

-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to