Package: mawk Version: 1.3.3-17 Severity: important I maintain a script called vimpager on github, and I started getting troubling bug reports of out of memory errors in crashes when I changed a regex in the script. For example:
https://github.com/rkitover/vimpager/issues/97 I tracked this down to the mawk in Debian. Here is a small script which demonstrates the issue: #!/bin/sh grep_q() { _pat="$1" shift mawk ' BEGIN { exit_val = 1 } $0 ~ /'"$_pat"'/ { exit_val = 0; exit(exit_val) } END { exit(exit_val) } ' "$@" } ps awo pid=,comm= | grep_q '(^([0-9]*[ \t]*)*|\/)(man|py(thon|doc|doc[0-9]))'; # end of script I've tested this script on many other awks, and it works correctly, only Debian mawk exhibits this problem. And it is especially troublesome since it is the default awk on Debian. I've also tested this script on the mawk in OpenBSD, which is mawk-1.3.4.20130803 which also works correctly. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.15.4-x86_64-linode45 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages mawk depends on: ii libc6 2.19-13 mawk recommends no packages. mawk suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

