[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
%<.prec>d formatting
From: |
John H. DuBois III |
Subject: |
%<.prec>d formatting |
Date: |
Wed, 11 Jan 2006 14:03:11 -0800 |
User-agent: |
Mutt/1.5.10i |
gawk-printf's memory use seems to go exponential with large values of
.precision in the %d formatter.
Observed in gawk 3.1.5 under OpenServer and 3.1.4 under Linux, both on x86
platforms.
$ gawk 'BEGIN {printf "%.48d\n",1}'
gawk: fatal: format_tree: obuf: can't allocate 1073741824 bytes of memory (Not
enough space)
$ gawk 'BEGIN {printf "%.51d\n",1}'
gawk: fatal error: internal error
Abort
John
--
John DuBois address@hidden KC6QKZ/AE http://www.armory.com/~spcecdt/
- %<.prec>d formatting,
John H. DuBois III <=