Thread

  1. ECPG memory leak detected

    Christof Petig <christof.petig@wtal.de> — 1999-12-03T08:58:42Z

    Hi,
    
    I observed a memory leak in one of my applications (grew about 20MB a
    day) and pinned it down to be
    ECPG related.
    
    The path is:
    ecpg_alloc
    quote_postgres
    ECPGexecute
    ECPGdo
    
    PostgreSQL Version 7.0 (about 24th November's CVS)
    This leak was at least present for two months.
    
    Christof
    
    If you have a direct idea on how to fix it, drop me a mail otherwise
    I'll (try to) fix it myself (about next week). It's not fatal, it's
    simply annoying.
    
    PS: Program used for this analysis: memprof (part of gnome) (Version
    0.3.0)
    
    
  2. Re: [BUGS] ECPG memory leak detected

    Bruce Momjian <pgman@candle.pha.pa.us> — 1999-12-14T22:02:03Z

    Attached is a patch that fixes some memory leaks in ecpg.  Maybe it will
    help your situation.  
    
    
    [Charset iso-8859-1 unsupported, filtering to ASCII...]
    > Hi,
    > 
    > I observed a memory leak in one of my applications (grew about 20MB a
    > day) and pinned it down to be
    > ECPG related.
    > 
    > The path is:
    > ecpg_alloc
    > quote_postgres
    > ECPGexecute
    > ECPGdo
    > 
    > PostgreSQL Version 7.0 (about 24th November's CVS)
    > This leak was at least present for two months.
    > 
    > Christof
    > 
    > If you have a direct idea on how to fix it, drop me a mail otherwise
    > I'll (try to) fix it myself (about next week). It's not fatal, it's
    > simply annoying.
    > 
    > PS: Program used for this analysis: memprof (part of gnome) (Version
    > 0.3.0)
    > 
    > ************
    > 
    > 
    
    
    -- 
      Bruce Momjian                        |  http://www.op.net/~candle
      maillist@candle.pha.pa.us            |  (610) 853-3000
      +  If your life is a hard drive,     |  830 Blythe Avenue
      +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
    
  3. Re: [BUGS] ECPG memory leak detected

    Christof Petig <christof.petig@wtal.de> — 1999-12-15T07:57:24Z

    Bruce Momjian wrote:
    > 
    > Attached is a patch that fixes some memory leaks in ecpg.  Maybe it will
    > help your situation.
    > 
    > [Charset iso-8859-1 unsupported, filtering to ASCII...]
    > > Hi,
    > >
    > > I observed a memory leak in one of my applications (grew about 20MB a
    > > day) and pinned it down to be
    > > ECPG related.
    > >
    > > The path is:
    > > ecpg_alloc
    > > quote_postgres
    > > ECPGexecute
    > > ECPGdo
    
    My problem had been fixed two weeks ago. In private communication with
    Michael.
    He sent me a (short) patch. I tested it. It still works like a charm. It
    has been committed to CVS already.
    
      So you can safely mark this problem as solved.
    
    Christof
    
    PS: I never observed any additional leaks. So it seems I didn't hit this
    part of the code.
    
    
  4. Re: [BUGS] ECPG memory leak detected

    Bruce Momjian <pgman@candle.pha.pa.us> — 1999-12-15T13:39:57Z

    > Bruce Momjian wrote:
    > > 
    > > Attached is a patch that fixes some memory leaks in ecpg.  Maybe it will
    > > help your situation.
    > > 
    > > [Charset iso-8859-1 unsupported, filtering to ASCII...]
    > > > Hi,
    > > >
    > > > I observed a memory leak in one of my applications (grew about 20MB a
    > > > day) and pinned it down to be
    > > > ECPG related.
    > > >
    > > > The path is:
    > > > ecpg_alloc
    > > > quote_postgres
    > > > ECPGexecute
    > > > ECPGdo
    > 
    > My problem had been fixed two weeks ago. In private communication with
    > Michael.
    > He sent me a (short) patch. I tested it. It still works like a charm. It
    > has been committed to CVS already.
    > 
    >   So you can safely mark this problem as solved.
    > 
    > Christof
    > 
    > PS: I never observed any additional leaks. So it seems I didn't hit this
    > part of the code.
    > 
    
    Man, no one tells me anything anymore.  :-)
    
    -- 
      Bruce Momjian                        |  http://www.op.net/~candle
      maillist@candle.pha.pa.us            |  (610) 853-3000
      +  If your life is a hard drive,     |  830 Blythe Avenue
      +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026