Segfault on oversized script
Bug #23494 reported by
Timothy Brownawell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mawk (Debian) |
Fix Released
|
Unknown
|
|||
mawk (Ubuntu) |
Fix Released
|
Medium
|
Ian Jackson |
Bug Description
In the following script (from autotest), "$at_groups_
numbers up to 284 (ie, 1|2|3|...|283|284 ) . This makes mawk segfault. I realize
that this is probably due to the "compile-time limits" mentioned in the package
description (it works fine with gawk), but it should fail in some way that's more
informative than a segfault.
awk 'BEGIN { FS = ";" }
{ if ($1 !~ /^('"$at_
{ if ($1) printf " %3d: %-18s %s\n", $1, $2, $3
if ($4) printf " %s\n", $4 } '
Changed in mawk: | |
status: | Unknown → Unconfirmed |
Changed in mawk (Debian): | |
status: | New → Confirmed |
Changed in mawk (Debian): | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Confirmed. My copy of mawk 1.3.3-11ubuntu1 on Dapper exhibits this bug. Running the attached script as 'awk-test.sh gawk' works; running it as 'awk-test mawk' causes the crash.