Le sam. 15 mars 2025 à 04:24, Sam Hartman <hartm...@debian.org> a écrit :

> Package: ftp.debian.org
> Severity: normal
> X-Debbugs-Cc: debian-...@lists.debian.org,
> node-websoc...@packages.debian.org
> User: ftp.debian....@packages.debian.org
> Usertags: remove
> User: debian-...@lists.debian.org
> Usertags: armel
>
>
>
> node-websocket has fallen out of trixie because it bus errors on one of
> the tests.
>

A bundled addon, bufferutil, crashes on armel when built with -O2 (and
doesn't with -O1).

The relevant part
https://salsa.debian.org/js-team/node-websocket/-/blob/master/bufferutil/src/bufferutil.c?ref_type=heads#L67

62  uint64_t *pMask8 = (uint64_t *)maskAlignedArray;
63
64  while (loop--) {
65    uint64_t *pFrom8 = (uint64_t *)source;
66    uint64_t *pTo8 = (uint64_t *)destination;
*67     *pTo8 = *pFrom8 ^ *pMask8;*
68    source += 8;
69    destination += 8;
70  }

The fact that it fails only on armel makes it look like an optimization bug
in gcc.
Unless someone has an idea about how to not trigger that bug, I'll try to
fix the build conf to compile it with -O1 on armel.

Jérémy

Reply via email to