| Summary: | awk (gawk) version 5.2.0 breaks pcb-rnd due to internal error | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Barry Jackson <zen25000> |
| Component: | RPM Packages | Assignee: | Base system maintainers <basesystem> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | fri, marja11, pterjan, shlomif |
| Version: | Cauldron | Keywords: | UPSTREAM |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | gawk-5.2.0-2.mga9.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Barry Jackson
2022-09-07 13:35:54 CEST
I see shlomi fixed 5.0.1 CC:
(none) =>
fri, shlomif (In reply to Morgan Leijström from comment #1) > I see shlomi fixed 5.0.1 I thought you meant to say we've had this issue before and that Shlomi fixed it, but I can't find that. 3 Years ago Shlomi updated gawk to 5.0.1 and he later rebuilt the same version, I don't see any mention of a similar bug to this one. Anyway, assigning to the Base System maintainers. CC:
(none) =>
marja11 I could be more clear, sorry. I intended to just indicate who maybe knows how to fix the current issue, based on who earlier touched the package. (In reply to Morgan Leijström from comment #3) > I could be more clear, sorry. I intended to just indicate who maybe knows > how to fix the current issue, based on who earlier touched the package. Thanks for the clarification, Morgan. Unfortunately, Shlomi has left us. I hope he'll return like he did several times before. (In reply to Marja Van Waes from comment #4) > (In reply to Morgan Leijström from comment #3) > > I could be more clear, sorry. I intended to just indicate who maybe knows > > how to fix the current issue, based on who earlier touched the package. > > Thanks for the clarification, Morgan. Unfortunately, Shlomi has left us. I > hope he'll return like he did several times before. Yes I also searched the commit messages looking for a similar issue fixed by Shlomi ;) This is almost certainly an upstream issue. I have replaced the instances of awk (gawk) with mawk in the scripts affected and the problem is not there, however pcb-rnd upstream do not want our package patched to add a dependency on mawk as gawk, quite rightly should be fixed. It's unclear what was changed in gawk since the previous version as apparently they made too many changes to include them all in the changelog! Keywords:
(none) =>
UPSTREAM As a point of interest the lead pcb-rnd developer is the author of libmawk http://repo.hu/projects/libmawk/ so I am happy to accept his opinion that this is a gawk bug :) This needs to be reported upstream, the code failing is:
function foo(x)
{
if (x == int(x))
return (int(x) != 0)
}
BEGIN {
foo(P["bar"])
}CC:
(none) =>
pterjan Thanks, is that an adequate example to send upstream? I know nothing of awk. I am happy to report it, but don't feel qualified to explain it. What would you suggest as a summary? This seems similar to https://lists.gnu.org/archive/html/bug-gawk/2022-09/msg00032.html I reported it at https://lists.gnu.org/archive/html/bug-gawk/2022-09/msg00055.html Upstream provided a patch and after verifying it fixes the problem 5.2.0-3 is now building Status:
NEW =>
RESOLVED It was not in cauldron so I guess it did not build? I pushed it again. |