bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: Core dump :(


From: Gary V. Vaughan
Subject: Re: FYI: Core dump :(
Date: Sun, 14 Oct 2001 10:05:13 +0100
User-agent: Mutt/1.3.16i

On Sat, Oct 13, 2001 at 11:08:22PM +0200, address@hidden wrote:
> On Sat, Oct 13, 2001 at 10:41:37PM +0200, address@hidden wrote:
> > I have a bad core dump in CVS M4 on the Automake test suite using 2.52e
> > and some of my local patches :( :( :( :( :(
> > 
> > Aaarg.  Bad night ahead.  It is related to --trace :(
> 
> Gary, ltdl is not OK with max dmalloc checking because of:
> 
> int
> try_dlopen (phandle, filename)
>      lt_dlhandle *phandle;
>      const char *filename;
> {
> ....
>   if (base_name)
>     {
> ...
>     }
>   else
>     LT_DLMEM_REASSIGN (base_name, canonical);
> 
> and LT_DLMEM_REASSIGN frees $1 without checking its != 0.  I hacked
> my copy to proceed, but I don't know if you want LT_DLMEM_REASSIGN be called
> in such cases, so I don't propose anything.

#define LT_DLMEM_REASSIGN(p, q)                 LT_STMT_START {         \
        if ((p) != (q)) { if (p) lt_dlfree (p); (p) = (q); (q) = 0; }   \
                                                } LT_STMT_END

P is only freed if it != 0 and != q....  I don't understand :-(

Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]