awk does not terminate when compiled with gcc-4.1.2

David Daney ddaney at avtrex.com
Mon Mar 19 17:20:30 PDT 2007


Alexander Kriegisch wrote:
> Hi Denis!
> 
> Could you give me a few hints on how and where I should hunt for bugs?
> It is still not proven that this is no BB bug, because
>   - you use a newer version and
>   - you tried on another platform.
> When using the same combination of compiler, BB and binutils on x86, I
> don't get errors either. So I could as well state it is not the
> compiler's fault which would be as unproven an argument as yours, IMHO.
> No offense, I just try to keep an open mind and not exlude any possible
> error sources. BB might be unlikely from your point of view, but it is
> not out beyond any doubts.
> 

Can you run it under gdb?  That would probably be the most fruitful path.

I can think of two possiblities:

1) BB depending on behavior that is undefined in C, and the behavior is 
different with your GCC and Denis'.

2) BB is fine and GCC is generating bad code.

In either case it would help to know where it is getting stuck.  gdb 
would be instrumental in determining that.

David Daney


More information about the busybox mailing list