From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28857 invoked from network); 11 Feb 2023 12:52:04 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 11 Feb 2023 12:52:04 -0000 Received: (qmail 13347 invoked by uid 550); 11 Feb 2023 12:52:00 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 13315 invoked from network); 11 Feb 2023 12:52:00 -0000 Date: Sat, 11 Feb 2023 12:51:47 +0000 From: Bastian Bittorf To: musl@lists.openwall.com Cc: mailinglist Message-ID: <20230211125147.7ud3rx2ozflm7zsb@email> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20210205 X-Provags-ID: V03:K1:kll37gbZ6WUNDJf/eCkJIsR/+hRCurd+3SBF7YcFnKxgnw911DY wI/Ik0zZ+Wd01dbZ6lQootFZHVb5OSGBwMvXHvz7Xc3ng632OcE8mQ1kyWBcUsW2TOdPauv QfLZbp8Y59stAshsEhgmuOIvDuK6Ibi6rf+I9CNDJSJ8U18UNjDeRy/hxw1cniDG5ByXGc6 XWfku3KuYm3WHraunLgYQ== UI-OutboundReport: notjunk:1;M01:P0:ozSNDTQsK44=;8jQ44r2sZrG1cVJlFlrDNF1SB/r 3Qix2mkXjWTWIzoND9QmjoG/Prb0nc3hi7QsHFk5xzw/C6HbMgm9a4v3FnnTcT1LU3bqB87qo LmfTvgg1BaS5CuR2CjHCOMz5mtdh0+kx8J/h/PuWqS79aTYsAqpUaCZ79r4FdoMTKDcC4+Gvj zoqLoc881Pc9bP3pjr86zOdfjEpKU09q2mWWBSIkzULC5K/EM1b7ozHa8x4lMhKh44YcdyWEz XvqFiwr7ep3O6tsMgbyXpzoIAccs8Owyi+h+HLxRyWMwN6NhtLMDFNDla3akgeO+Fw0BB6mKW ZSMimVqC7QyZpsIce67N2liG60+teyCWsZ876HFCgnmnkF68126QDxzEVd8/ZffmKI+sRpUhH gwe2QMhW7MI5d7I3o9xdt6lD2XUhy0QOCw3FqNkhkrfgbiIrWSvO9nWP19kO6HFH/Sb2rco2o P/7IWjB1R8UIKow+2KhZl51Zz5174hqgSU/rTRXTnSu4lrEwhpvOqYjOIZkc/LD7My0NCIB1v N4q/LAejfa/eIvwzqJ6+p5N+xJO4PRcmQWYjyUoBLmYCTPO75Ks4r9s5UAg1q39sqcPQQ8PId ds/w+BoGMVfkZMQFS31oW4rHZT/7PlHE0xqMR7ZDsq35W0tsZEk2fjeRZm3g7HQmVA3qnwtWN 7iVRI3Jhwjk4DhCtH6xo8ntg0f/1yx+g9E7UQeA0sQ== Subject: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1) With OpenWRT i recognized a strange behavior of ash-shell scripts. It happens only on target PowerPC, e.g. m68k, arm, mips, x86 are unaffected. The visible strange behavior in 'ash' is: $ test A -gt 5 && echo OK ash: A: out of range OK Ofcourse this wrong returncode leads to all sorts of things... I tested several busybox releases (1.33.2, 1.35.0, 1.36.0) and crosscompiled with musl-git-b76f37f (from musl.cc) and crosscompiled with glibc: powerpc-linux-gnu-gcc (Debian-12.2.0) (it's the same for all versions) The resulting linux + busybox images ready for QEMU are here: http://intercity-vpn.de/mpc85xx/ If needed i can provide build instructions. Maybe somebody with more powerpc assembly knowledge can help here. The underlying code is here: https://git.busybox.net/busybox/tree/coreutils/test.c#n488 But i can not spot the error: static number_t getn(const char *s) { char *p; errno = 0; r = strtol(s, &p, 10); if (errno != 0) syntax(s, "out of range"); return r; } Best Greetings, Bastian Bittorf