https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68737
--- Comment #11 from dave.anglin at bell dot net --- On 2018-09-04 7:58 AM, dave.anglin at bell dot net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68737 > > --- Comment #10 from dave.anglin at bell dot net --- > On 2018-09-04 4:51 AM, redi at gcc dot gnu.org wrote: >> The code assumes __convert_from_v always returns a valid length, but it seems >> to be failing and returning -1. > vsnprintf/snprintf can return a negative value if an error occurs. I think we are hitting one of these problems: JAGaf80770: vsnprintf and snprintf return doesn't conform to C99 JAGaf47646: with small buffer vsnprintf always returns -1 Probably, we should use libiberty version unless we can work around the buffer size issue.