Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-07-15 Thread Markus Gschwendt
Hi! I have this issue with cron-apt: 8< /etc/cron.daily/apt-compat: Illegal instruction R: /etc/cron.daily/apt-compat: 44: arithmetic expression: expecting primary: " % 32767 " run-parts: /etc/cron.daily/apt-compat exited with return code 2 >8 A change in the config file of

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-13 Thread Axel Beckert
Hi, Pádraig Brady wrote: > At this stage it would be good to get the output from `cpuid -1` Ok, I've attached the output of "cpuid -1" from both affected DomUs (the outputs slightly differ) as well as of the unaffected hosting server (same CPU) for comparison. cpuid-domu1.txt and

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-13 Thread Pádraig Brady
On 13/06/2023 09:38, Axel Beckert wrote: Hi, especially to Pádraig, Pádraig Brady wrote: cksum since v9.0 checks at runtime whether pclmul is supported. It seems that check is not working appropriately on a Xen DomU. The routine in question is pclmul_supported() at:

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-13 Thread Axel Beckert
Hi, especially to Pádraig, I wrote: > Control: affects -1 aptitude-robot JFYI: The fix for /etc/cron.daily/aptitude-robot, which triggers the issue in its non-bash compatibility mode, is to change its shebang line from "#!/bin/sh" to "#!/bin/bash". (dpkg-reconfigure dash or bash to switch

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-12 Thread Axel Beckert
Hi Kristoffer, Kristoffer Brånemyr wrote: > But I think it's a bit suspicious that it only crashes sometimes.If > there was some instruction which causes this, should it not happen > everytime? Good point. > Can you reproduce the problem running cksum in gdb? Yes: # dd if=/dev/urandom count=1

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-12 Thread Kristoffer Brånemyr
I guess it doesn't hurt to try to also check for SSE variants in the function trying to see if pclmul is supported. But I think it's a bit suspicious that it only crashes sometimes.If there was some instruction which causes this, should it not happen everytime? Could it be something else, like

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-12 Thread Philip Rowlands
On Sat, 10 Jun 2023, at 11:09, Pádraig Brady wrote: > cksum since v9.0 checks at runtime whether pclmul is supported. > It seems that check is not working appropriately on a Xen DomU. Hypervisors routinely lie about CPUID feature flags, in order to maintain compatibility between a fleet of

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-10 Thread Pádraig Brady
On 09/06/2023 18:40, Axel Beckert wrote: Package: coreutils Version: 9.1-1 Severity: important X-Debbugs-Cc: a...@debian.org Control: affects -1 aptitude-robot On a Xen DomU running Debian 12, cksum intermittently crashes as follows: # while :; do dd if=/dev/urandom count=1 2> /dev/null |

Bug#1037264: cksum crashes intermittently with "Illegal instruction" on some Xen DomU

2023-06-09 Thread Axel Beckert
Package: coreutils Version: 9.1-1 Severity: important X-Debbugs-Cc: a...@debian.org Control: affects -1 aptitude-robot On a Xen DomU running Debian 12, cksum intermittently crashes as follows: # while :; do dd if=/dev/urandom count=1 2> /dev/null | cksum ; done 1758277878 512 2101634611 512