Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-15 Thread Jim Meyering
Jim Meyering <[EMAIL PROTECTED]> wrote: ... > If it turns out just to be a bug in the implementation of MALLOC_PERTURB_, > then it's not worth the effort to make gnulib work around it. > > However, if it's a real error in glibc's snprintf (as I suspect) -- > i.e., the MALLOC_PERTURB_=N (N!=0) setti

Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-14 Thread Jim Meyering
Paolo Bonzini <[EMAIL PROTECTED]> wrote: > Bruno Haible wrote: >> Jim Meyering wrote: >>> The RHEL bugzilla I mentioned initially is filed against glibc. >>> Or perhaps you meant glibc's own bugzilla? >> >> Yes, that's what I meant: I'm not sure that Ulrich Drepper or Jakub Jelinek >> get informed

Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-14 Thread Paolo Bonzini
Bruno Haible wrote: > Jim Meyering wrote: >> The RHEL bugzilla I mentioned initially is filed against glibc. >> Or perhaps you meant glibc's own bugzilla? > > Yes, that's what I meant: I'm not sure that Ulrich Drepper or Jakub Jelinek > get informed about Debian or RHEL bugs. Jakub surely gets Fe

Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-14 Thread Bruno Haible
Jim Meyering wrote: > The RHEL bugzilla I mentioned initially is filed against glibc. > Or perhaps you meant glibc's own bugzilla? Yes, that's what I meant: I'm not sure that Ulrich Drepper or Jakub Jelinek get informed about Debian or RHEL bugs. Bruno

Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-14 Thread Jim Meyering
Bruno Haible <[EMAIL PROTECTED]> wrote: >> > Is the MALLOC_PERTURB_ essential for the failure or not? >> >> It appears to be essential, to ensure that the internal failure >> is manifested. > > Given that > - without MALLOC_PERTURB_, no SIGSEGV occurs, > - early implementations of MALLOC_PERTUR

Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-14 Thread Bruno Haible
Hi Jim, > > Is the MALLOC_PERTURB_ essential for the failure or not? > > It appears to be essential, to ensure that the internal failure > is manifested. Given that - without MALLOC_PERTURB_, no SIGSEGV occurs, - early implementations of MALLOC_PERTURB_ were buggy [1], we don't really know

Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-14 Thread Jim Meyering
Bruno Haible <[EMAIL PROTECTED]> wrote: > Jim Meyering wrote: >> It would be good for gnulib to detect the bug and to use >> the replacement snprintf on losing systems. > > Does the "checking whether printf survives out-of-memory conditions" test > from gnulib (part of any of the *print-posix modul

Re: glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-11 Thread Bruno Haible
Jim Meyering wrote: > It would be good for gnulib to detect the bug and to use > the replacement snprintf on losing systems. Does the "checking whether printf survives out-of-memory conditions" test from gnulib (part of any of the *print-posix modules) print "yes" or "no" on the two machines you u

glibc's snprintf bug causes printf(1) failure with MALLOC_PERTURB_ != 0

2008-11-11 Thread Jim Meyering
Using printf from GNU coreutils newer than 6.9, I get this on rawhide (glibc-2.8.90-16) which looks wrong, but isn't serious: (it shouldn't allocate a 30MB buffer just to fill it with '0's and print it) $ (ulimit -v 2; env MALLOC_PERTURB_=1 printf '%.3000f' 0) printf: write err