Description of problem: When the --non-decimal-data option is used and a variable gets assigned at the command line a non-decimal value, gawk crashes. Version-Release number of selected component (if applicable): gawk-3.1.4-5 How reproducible: always Steps to Reproduce: 1.run gawk --non-decimal-data -v a=0x1 'BEGIN { print a+0 }' 2. 3. Actual results: gawk: fatal error: internal error Aborted (since gawk catches SIGSEGV) Expected results: 1 Additional info: I'll attach a patch. The localeconv() call must in any case be moved before the loop initializing the variables. If the setlocale() call, which also is moved, must really come as late as it did, the patch must be changed to switch back after the localeconv() call.
Created attachment 115448 [details] Patch to fix the bug
The patch with small changes sent to upstream and applied to FC4. The update gawk-3.1.4-5.1 will be available ASAP. Thanks.
Created attachment 115502 [details] alternative patch by Arnold The gawk maintainer proposed the following patch.