From nobody Sat Jul 20 23:42:23 2024 X-Original-To: arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WRNPr0pNYz5QQDX for ; Sat, 20 Jul 2024 23:42:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WRNPq5VqNz40bY for ; Sat, 20 Jul 2024 23:42:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1721518957; bh=BCxBVn4jZM7BPnR+68Atrn2jy1cHR5uRG5QKXgOMqBY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=PGSudCDuG6gynSvnCi8384IDhYC0XXsLYQodWLJFDkk/CEaFejBWM9bUYYnVKOTXdwgDZ4OisZgzDWCR/tk+guga03vL4Mzxy0Jug5FhAf+OLOyIV3OaDB8uBiiRdGuKp0F45PEknz5KunBE/dJpMUyUbd8FHOTCXorxQWVZwcqA3bHioG8MyBQC4kO4P8YGJ3uHqzREr1Q2QunRCniVZHW8ak6GMTaTWbN0gBtx8YzNbH+j6kJk8oa5KKlYkDih/PHBzyFwq1XCKh0jPvMxBT1cuUe/+UnkfMzsan866ON84uKtzRUXvi5lsgjDgJLdLSmNEHwS04cUFoaknibLZg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1721518957; bh=fP0LM3hXVSug1P+RRpHgrnFIruqXQiM1BlXoqYh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4Gb3OV.7i1g1jQ8dzXBZzyfLN99wR.Gv2bEW2CfQZgTZBlTMU8jA QYHVpBtzOuzu4pBvYe.K1FJ1ySA9KPywmVRefjcXIR90e0.K2A9ZQCiUY3SOEFSFXjCwSCaDVDKa c4uyWiTCFxuQ_Cl_NAta5y6sxu7IalLPr89g1PDVhj9u9nkHMp86aLIpjk_HvT4Ga5oxGUpzE84k OwcKwN0AYgojAycaiFN1FFbDOngFZrxMlkf1Ws09JJaSggKAznXrA6TKgVVOfSzuI9pNKxQUJ5w1 9FAeCEtyIBlHQfx6O_732C4R1d5We3ZYWyJOdy42njb2tD7Uzy3sZoGaXiTDJ2Ed5TdwomiwM1kZ b2VVdtW6APSEFURuYw4y5ENrAYl_STMWNC6zfco7_liqhvz0R4lw0vY_F3OvfWekUGMG.XkdDOVF YmzJXyUkwr8rpyuN4z6p4e3uR0DuO7FjAdmdeXQEVYfY0mF5B61CEAW9SujG8f5FE8l1wyGLTUpp NbNC_4tmoBgZrmhYazU3Y6.lycgE4B6W9T3kgeKoqpRYpj4AdEmLCGFWj7Covs8ptasv4HYQAvcQ ivg-- X-Sonic-MF: X-Sonic-ID: 62ca2856-28ad-4821-a6b3-e31ef3e5496a Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Sat, 20 Jul 2024 23:42:37 +0000 Received: by hermes--production-gq1-799bb7c8cf-l6wmw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b50223e1739288282ea47ac04469fa62; Sat, 20 Jul 2024 23:42:34 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: armv7-on-aarch64 stuck at urdlck: I got a replication of the "ampere2" bulk build hangup problem on a Windows DevKit 2023 From: Mark Millard In-Reply-To: Date: Sat, 20 Jul 2024 16:42:23 -0700 Cc: arm@freebsd.org, current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <8E9579B7-2ABF-4446-B65E-E993E7B67C5C@yahoo.com> References: <8214703E-AB28-4FB3-A3DD-03C87363D8C6@yahoo.com> To: Konstantin Belousov X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4WRNPq5VqNz40bY On Jul 20, 2024, at 01:57, Konstantin Belousov = wrote: > [Everything and everybody in Cc: are stripped for good]. >=20 > On Fri, Jul 19, 2024 at 10:38:36PM -0700, Mark Millard wrote: >> 0x201375c0 - 0x2014092c is .bss in /lib/libthr.so.3 >>=20 >> (gdb) bt >> #0 0x201aeec0 in __pthread_map_stacks_exec () from /lib/libc.so.7 >> #1 0x2005d1e4 in ?? () from /libexec/ld-elf.so.1 >> Backtrace stopped: previous frame identical to this frame (corrupt = stack?) >> (gdb) disass >> Dump of assembler code for function __pthread_map_stacks_exec: >> =3D> 0x201aeec0 <+0>: ldr r0, [pc, #8] @ 0x201aeed0 = <__pthread_map_stacks_exec+16> >> 0x201aeec4 <+4>: add r0, pc, r0 >> 0x201aeec8 <+8>: ldr r0, [r0, #156] @ 0x9c >> 0x201aeecc <+12>: bx r0 >> 0x201aeed0 <+16>: andseq r6, r7, r4, lsr #12 >> End of assembler dump. >>=20 >=20 > Do the following: > 1. Rebuild rtld/libc/libthr with the debugging info and no = optimization, > i.e. ensure that flags are "-O0 -g" or "-Og -g" and not -O2. See > the first comment in libexec/rtld-elf/Makefile for the hint how to > do it. I did a full buildworld with "-Og -g" via temporary use of: diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 44db9266784f..9c6c7ce575a4 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -145,7 +145,8 @@ CC ?=3D c89 CFLAGS ?=3D -O .else CC ?=3D cc -CFLAGS ?=3D -O2 -pipe +#CFLAGS ?=3D -O2 -pipe +CFLAGS ?=3D -Og -g -pipe .if defined(NO_STRICT_ALIASING) CFLAGS +=3D -fno-strict-aliasing .endif I installed the result armv7 world into a directory tree and installed pkg and cairo. > 2. Reproduce the issue The dlopen_test.c based case does not fail under the world built with "-Og -g": # cc -g -std=3Dc11 -pedantic -Wall -pthread dlopen_test.c ; ./a.out #=20 > under gdb (gdb) run Starting program: /root/a.out [Inferior 1 (process 36680) exited = normally] (gdb)=20 So it does not reproduce in gdb when buildworld was based on "-Og -g". > , and backtrace all threads from userspace. > I only need userspace backtrace, not either kernel-side stacks nor > the syscall history. >=20 > Are you sure that the issue is specific to armv7, might be it takes = more > efforts to reproduce on host native? =3D=3D=3D Mark Millard marklmi at yahoo.com