Re: [PATCH v2] [DEBUG] Use va_copy when reusing a va_list

2011-03-15 Thread Herbert Xu
On Mon, Mar 14, 2011 at 06:29:27AM +, Jonathan Nieder wrote: > When tracing (with the DEBUG compile-time option set to 1 or 2), > exverror calls TRACEV to print its arguments before passing them on. > So the arguments are consumed by the time exvwarning looks for them, > resulting in a segfault

[PATCH v2] [DEBUG] Use va_copy when reusing a va_list

2011-03-13 Thread Jonathan Nieder
When tracing (with the DEBUG compile-time option set to 1 or 2), exverror calls TRACEV to print its arguments before passing them on. So the arguments are consumed by the time exvwarning looks for them, resulting in a segfault: $ sh -c '"' sh: Syntax error: Unterminated quoted string $ sh -o de