[Bug 276483] lang/mawk important type-related bug (fixed upstream)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jan 2024 04:25:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276483 Bug ID: 276483 Summary: lang/mawk important type-related bug (fixed upstream) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: wen@FreeBSD.org Reporter: daniel@belltech.it Flags: maintainer-feedback?(wen@FreeBSD.org) Assignee: wen@FreeBSD.org I'm pretty sure this bug was fixed in mawk 20230725, "improve scanner to some type-checks of arrays versus scalars by deferring this into the runtime execution (report by Rajeev V Pillai)." Here's a test for the bug: % echo|mawk 'function f(a){length(a)}{a[0]++;f(a)}' mawk: line 1: type error in arg(1) in call to f The problem is definitely upstream. This issue also occurs in the Debian and Ubuntu stock repos for mawk and is fixed on all OSes by compiling/installing more recent versions of mawk. (The test above works fine in newer mawk, awk, gawk, ports nawk, goawk, etc.) -- You are receiving this mail because: You are the assignee for the bug.