Did some more digging and found that I was able to reproduce on
questing-proposed by using the current cloudimg in lxd (attached
buildlog). lxc launch ubuntu-daily:questing

I also found that manually running the command fails the same way
root@peaceful-earwig:~/openvswitch-3.5.1/tests# cat 
../_debian/tests/testsuite.dir/0521/actions.txt | sed 's/^/actions:/' | 
./test-dpparse.py
cat: ../_debian/tests/testsuite.dir/0521/actions.txt: EPIPE: Broken pipe

However, the following commands worked
$ cat ../_debian/tests/testsuite.dir/0521/actions.txt | sed 's/^/actions:/'
This means ./test-dpparse.py is closing the pipe

$ echo "test" | sed 's/^/actions:/' | ./test-dpparse.py
Not fundamentally a problem with the script itself

// Replaced the contents of actions.txt with "test" and reran the previous 
comand without errors
$ cat ../_debian/tests/testsuite.dir/0521/actions.txt | sed 's/^/actions:/' | 
./test-dpparse.py
Not a permissions/apparmor error

actions.txt was ~524kB.

I did a "bisect" on the file size and found that the pipe breaks when
the file size of actions.txt exceeds 80kB (81920B).

For example:

$ yes a | head -c 81920 > actions.txt
$ ll actions.txt 
-rw-r--r-- 1 root root 81920 Jul 23 22:36 actions.txt
$ cat actions.txt | sed 's/^/actions:/' | ./test-dpparse.py

$ yes a | head -c 81921 > actions.txt
$ ll actions.txt 
-rw-r--r-- 1 root root 81921 Jul 23 22:37 actions.txt
$ cat ../_debian/tests/testsuite.dir/0521/actions.txt | sed 's/^/actions:/' | 
./test-dpparse.py 
cat: ../_debian/tests/testsuite.dir/0521/actions.txt: EPIPE: Broken pipe

For some reason the python script breaks when the file is larger than
80kB on ubuntu-daily:questing but not ubuntu-daily:plucky

Questing is using python3.13.5 and Plucky is using python3.13.3, maybe
this has something to do with it. I'll continue investigating tomorrow
but at eod now


** Attachment added: "openvswitch_3.5.1-0ubuntu1_amd64_cloudimg.build"
   
https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/2109823/+attachment/5892636/+files/openvswitch_3.5.1-0ubuntu1_amd64_cloudimg.build

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109823

Title:
  [SRU] openvswitch 3.3.4 (noble) 3.5.1 (plucky/questing) point release

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/caracal/+bug/2109823/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to