Bug#421555: coreutils: printf "%-1.25000000s" segfaults
Pierre Habouzit <madcoder@debian.org> wrote:
> Package: coreutils
> Version: 5.97-5.3
> Severity: important
>
> $ /usr/bin/printf '%-1.25000000s\n' 'Hello'
>
> Is a quite good testcase :)
>
> FWIW libc printf seems to work properly. Further poking shows that it
> may be locale-dependant as the following works:
Thanks for the report!
To reproduce it, I did this:
$ LC_ALL=fr_FR.utf8 ./printf %1.2500000000s x
zsh: bus error LC_CTYPE=fr_FR.utf8 ./printf %1.2500000000s x
[Exit 135 (BUS)]
Actually that's due to a bug in glibc that affects even the very
latest in CVS. I've dug a little and reported it upstream:
http://bugzilla.redhat.com/238406
Reply to: