bash 5.2 regression too-aggressive optimizing of forks in an `eval' command inside a (command) subshell

Bug #1997093 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Fix Released
Undecided
Unassigned
ovn (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

OVN makes use of GNU autotest for its testsuite. This in turn is a heavy user of bash.

For some reason, when the 'ovn-controller incremental processing' test is executed using bash 5.2 on Debian experimental or Ubuntu Kinetic/Lunar, the `eval` [0] in the `counter_delta_` function misinterprets successful execution of commands [1], leading to a false negative for the 'ovn-controller incremental processing' test [2].

Backporting the bash 5.1 package from Jammy, or compiling bash 5.1 from upstream sources and rerunning the test makes it succeed.

This does come across as a regression in bash.

0: https://github.com/ovn-org/ovn/blob/a042aa23e79a0d36f1ce7b0ccfcf0a5995b045cd/tests/ovn-performance.at#L116
1: https://github.com/ovn-org/ovn/blob/a042aa23e79a0d36f1ce7b0ccfcf0a5995b045cd/tests/ovn-performance.at#L479
2: https://github.com/ovn-org/ovn/blob/a042aa23e79a0d36f1ce7b0ccfcf0a5995b045cd/tests/ovn-performance.at#L227

Frode Nordahl (fnordahl)
description: updated
description: updated
Frode Nordahl (fnordahl)
summary: - The `ovn-controller incremental processing` test fails when bash 5.2 is
- installed
+ bash 5.2 regression in optimize_connection_fork
Revision history for this message
Frode Nordahl (fnordahl) wrote : Re: bash 5.2 regression in optimize_connection_fork
Revision history for this message
Frode Nordahl (fnordahl) wrote :
summary: - bash 5.2 regression in optimize_connection_fork
+ bash 5.2 regression too-aggressive optimizing of forks in an `eval'
+ command inside a (command) subshell
Revision history for this message
Frode Nordahl (fnordahl) wrote :
Revision history for this message
Frode Nordahl (fnordahl) wrote :
Changed in bash (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ovn - 22.12.0-4

---------------
ovn (22.12.0-4) unstable; urgency=medium

  * Extend list of tests to skip (LP: #2002475, LP: #2002476, LP:
    #2002477).

 -- Frode Nordahl <email address hidden> Wed, 11 Jan 2023 09:23:01 +0100

Changed in ovn (Ubuntu):
status: New → Fix Released
Frode Nordahl (fnordahl)
Changed in bash (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.