From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id E154A2026D for ; Fri, 5 Apr 2024 02:32:53 +0200 (CEST) Received: (qmail 5403 invoked by uid 550); 5 Apr 2024 00:32:46 -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 5362 invoked from network); 5 Apr 2024 00:32:46 -0000 Date: Fri, 5 Apr 2024 00:26:57 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: musl@lists.openwall.com cc: 1068350@bugs.debian.org, debian-glibc@lists.debian.org, doko@debian.org In-Reply-To: Message-ID: References: <171218457890.157989.17235252523998125898.reportbug@zelenka.debian.org> <20240404104428.GA3766212@port70.net> <20240404105408.GB3766212@port70.net> <20240404202641.GS4163@brightrain.aerifal.cx> Content-Language: de-Zsym-DE-1901-u-em-text-rg-denw-tz-utc, en-Zsym-GB-u-cu-eur-em-text-fw-mon-hc-h23-ms-metric-mu-celsius-rg-denw-tz-utc-va-posix MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: [musl] =?utf-8?Q?Re=3A_Bug#1068350=3A_musl=3A_miscompiles_=28runtime_p?= =?utf-8?Q?roblems=29_on_riscv64_and_s390x_with_static-pie_?= =?utf-8?Q?=E2=86=92_seems_to_be_a_toolchain_bug_after_all?= =?utf-8?Q?=2C_it_does_too_hit_glibc?= Dixi quod=E2=80=A6 >Now I (or someone) is going to have to reduce that to a testcase, so No success with that, unfortunately. >But this does seem to be a toolchain bug: adding -static-pie to the >glibc dynamic-pie link command and=E2=80=A6 > >(gdb) print initcoms >$1 =3D {0xda494 "typeset", 0x0, 0x0, 0x0, 0xda494 "typeset", 0x0, 0xd942c = "HOME", 0xda7d8 "PATH", Wait, what? (gdb) b main Breakpoint 1 at 0xd820: file ../../main.c, line 785. (gdb) print initcoms $1 =3D {0xda494 "typeset", 0x0, 0x0, 0x0, 0xda494 "typeset", 0x0, 0xd942c "= HOME", 0xda7d8 "PATH", [=E2=80=A6] (gdb) r Starting program: /home/tg/mksh-59c/builddir/full/mksh Breakpoint 1, main (argc=3D1, argv=3D0x3ffffffa4d8) at ../../main.c:785 785 { (gdb) print initcoms $2 =3D {0x3fff7eda494 "typeset", 0x3fff7ee4548 "-r", 0x3fff7ee4ae0 "KSH_VERSION=3D@(#)MIRBSD KSH R59 2024/02/01 +Deb= ian", 0x0, 0x3fff7eda494 "typeset", [=E2=80=A6] While in musl: (gdb) print initcoms $1 =3D {0x414a4 "typeset", 0x0, 0x0, 0x0, 0x414a4 "typeset", 0x0, 0x40478 "= HOME", 0x41d42 "PATH", [=E2=80=A6] (gdb) r Starting program: /home/tg/mksh-59c/builddir/static-musl/mksh Breakpoint 1, main (argc=3D1, argv=3D0x3ffffffa498) at ../../main.c:785 785 { (gdb) print initcoms $2 =3D {0x3fff7fc14a4 "typeset", 0x0, 0x0, 0x0, 0x3fff7fc14a4 "typeset", 0x= 0, 0x3fff7fc0478 "HOME", [=E2=80=A6] So the existing ones did get relocated, but the nullptrs stayed thusly. Apparently, it *is* supported on glibc on s390x, mjt (qemu maintainer) also said so in 2023. bye, //mirabilos --=20 22:20=E2=8E=9C The crazy that persists in his craziness becomes a m= aster 22:21=E2=8E=9C And the distance between the craziness and geniality= is only measured by the success 18:35=E2=8E=9C "Psychotics are consist= ently inconsistent. The essence of sanity is to be inconsistently inconsistent