bug-m4
[Top][All Lists]
Advanced

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

Re: possible infinite loop in m4


From: Eric Blake
Subject: Re: possible infinite loop in m4
Date: Tue, 6 Jul 2010 00:13:55 -0400 (EDT)

----- "Mike Frysinger" <address@hidden> wrote:

> i believe a recent autoconf update triggered a bug in m4 while
> processing 
> crappy m4 code.  the project in question is "rezound":
> http://rezound.sf.net/ (version 0.12.3_beta to be exact)
> 
> the reduced test case is:
> $ cat configure.ac
> AC_INIT
> ajv_CXX_FLAG(-g)
> AC_OUTPUT
> $ cat aclocal.m4
> AC_DEFUN(ajv_CXX_FLAG,
>       [AC_MSG_CHECKING(if $CXX accepts $1 )]
>       AC_MSG_RESULT(yes)
> )
> $ autoconf
> <hang here in m4>

That's a bug in the user's configure.ac script for not quoting things
correctly in the first place.  Autoconf can't work around every
piece of bad code thrown at it, and my recommendation would
be to fix rezound rather than trying to throw more workarounds in
autoconf to avoid this bad code at the expense of penalizing
performance on good code.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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