From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aFC1GV/yQmM7PgEAbAwnHQ (envelope-from ) for ; Sun, 09 Oct 2022 18:10:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WF7BGV/yQmOLPgEA9RJhRA (envelope-from ) for ; Sun, 09 Oct 2022 18:10:07 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D83882B01F for ; Sun, 9 Oct 2022 18:10:06 +0200 (CEST) Received: from localhost ([::1]:33916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohYsP-0005LD-5F for larch@yhetil.org; Sun, 09 Oct 2022 12:10:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohYsM-0005L5-OF for bug-guix@gnu.org; Sun, 09 Oct 2022 12:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohYsM-0000rQ-Fz for bug-guix@gnu.org; Sun, 09 Oct 2022 12:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohYsM-0002ty-5W for bug-guix@gnu.org; Sun, 09 Oct 2022 12:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58320: Hurd VM fails to boot on AMD EPYC (kvm-amd) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 09 Oct 2022 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58320 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58320@debbugs.gnu.org Cc: bug-hurd@gnu.org Received: via spool by 58320-submit@debbugs.gnu.org id=B58320.166533176011090 (code B ref 58320); Sun, 09 Oct 2022 16:10:02 +0000 Received: (at 58320) by debbugs.gnu.org; 9 Oct 2022 16:09:20 +0000 Received: from localhost ([127.0.0.1]:44789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohYrf-0002so-FN for submit@debbugs.gnu.org; Sun, 09 Oct 2022 12:09:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohYrc-0002sZ-7p for 58320@debbugs.gnu.org; Sun, 09 Oct 2022 12:09:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohYrW-0000lk-UD; Sun, 09 Oct 2022 12:09:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=cKeEyRypRNhax9v6g3NG+Stj7qNY+pdOG+9zmygYvaA=; b=CBwrAcGYw6A5VzahyDJW gC2sELro+LSjnZhqSxse31vSRocMWYOtmZU3aohucmnpc8/Qa8QdOWJjZUk3rQCDZ9Dvl5E0xO0jZ 7+lzf/LgSA1jnL5vKVZG1nyqCYPCnlahkyJf90DbnF9F4MUtgupP6u5Z5IhOtad4vlwmdurfK/9qm yT3UEoPwAZubjCiwOPWeAE2eDLI5OSbO5iYZGnZhxfuCO8OcHFi9gtI3mnu0D6Ev764Fi3Olpkh8V CdCPV/Zfo8Wg47roh1+45VZrAEHeTPNho41AB2hFtsjlQgJ83Rvpiy4T2XOazdRYqHzyW0sAbCQDm CMRHz4SYgTtpCg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:59568 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohYrW-00037L-BE; Sun, 09 Oct 2022 12:09:10 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87k05eouh8.fsf@inria.fr> <8735c1nlga.fsf@gnu.org> <20221006135316.ijevz5ddnet4aqkr@begin> <87r0zkfvso.fsf@gnu.org> <20221006224219.mn7zp7lhzxwlyrpx@begin> <8735c0f3d5.fsf@gnu.org> <20221007211643.bma6b5yfaj7a2d4i@begin> <87zge671p0.fsf@gnu.org> Date: Sun, 09 Oct 2022 18:09:07 +0200 In-Reply-To: <87zge671p0.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 08 Oct 2022 17:52:11 +0200") Message-ID: <8735bx6kt8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665331807; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cKeEyRypRNhax9v6g3NG+Stj7qNY+pdOG+9zmygYvaA=; b=AXPpwXmJ3HfkJZ0W81X+EvcShC7LgWQXqE9BnUlzufKZtz1SgvTDm2k1Yo67tOh9b4yWP9 JB+yEszPfNFgOSw/GcPZWnJWtSi/uonWyWcQ4OndKlPgNmRyWOltryS080CmEhqXtuFqzJ va6/s1VQrV7bgOcdSjFB751RJV0QnJNsV/T/AbNdoViG+coIM2n5k+SBZLlDvjDtmYQslR e+EuiEY62K1ultXRtrGuE1Tl2xA2Sr4r9SrZJ1jJs5Bwm7eUjgNven1X7OxYE5GQaBHL/h X8PZaGr6f4W5B3VD47Qy/JvZBbOx5dFBEQs+q90DUlJAyGiL3xGCVPIoURc1Gw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665331807; a=rsa-sha256; cv=none; b=MH/hJh46O49g9l3R7VVPKxtKFFBK4T3XUA297xjB3bdc96/wzHB33djQwwqPb5rttlogWm Ygae8mDR2/254ME4TtCxy4nQgXYZdUVS6mqpxV+EPhnUDZGpZA+9fohrKPVaA5mxOK/iAq Y0/o3ar4TH2cmB2GbsmgqxiFxhtkuwHKuADxbLVacfvfuJlYsFc5cUVbtVMW6I14tOXqR8 Xtyq9ISUwRhnt6V5hmO3Q7z4pZhlSHF+6AqjlAubS7ZUyafzDGieqL3XxL9Qnn85FsFSWc WI8cuQNRDHXcwyXCryqL4gvAzpi0wczq57XQfvYEJjSzIp121I+CwBj7ztqLmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=CBwrAcGY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=CBwrAcGY; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D83882B01F X-Spam-Score: -3.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: TVJUhMpVK5BO Hi! Ludovic Court=C3=A8s skribis: > $ addr2line -e /gnu/store/m8afvcgwmrfhvjpd7b0xllk8vv5isd6j-glibc-cross-i= 586-pc-gnu-2.33/lib/ld.so.1 0x1000 0x11627 0x11bb > ??:0 > /tmp/guix-build-glibc-cross-i586-pc-gnu-2.33.drv-0/glibc-2.33/elf/dl-misc= .c:333 > :? > > > That=E2=80=99s =E2=80=98_dl_fatal_printf=E2=80=99 calling =E2=80=98_exit= =E2=80=99; it=E2=80=99s trying to tell us > something. > > I=E2=80=99ll try and rebuild the system with the debugging patches at > , to > get early ld.so output, for lack of a better solution=E2=80=A6 I tried adapted the patches above and tried them, but it seems that =E2=80=98_dl_sysdep_start=E2=80=99 isn=E2=80=99t even reached. For example= , I set a breakpoint on =E2=80=98mach_task_self=E2=80=99 (called from =E2=80=98__mach_init=E2=80= =99, called from =E2=80=98_dl_sysdep_start=E2=80=99), but that=E2=80=99s never reached (I=E2= =80=99m assuming =E2=80=98break/tu=E2=80=99 is reliable, is it?). The user-space backtrace upon trap remains unhelpful: --8<---------------cut here---------------start------------->8--- start ext2fs: Hurd server bootstrap: ext2fs[device:hd0s1]Kernel Breakpoint = trap,=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 eip 0xc1030d5b=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 Breakpoint at task_resume: pushl %ebp=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 db> debug traps /on=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 db> b task_terminate=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 set breakpoint #2=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 db> c=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 Kernel Debug trap trap, eip 0xc1030d5b=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 execkernel: Page fault (14), code=3D6=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 Stopped at 0x1000: pushl 0x4(%ebx)=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 >>>>> user space <<<<<=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0x1000(bfffff24,0,0,1160b,0)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0x11627(bfffff9c,0,0,0,2)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0x11bb()=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 --8<---------------cut here---------------end--------------->8--- =E2=80=A6 where: --8<---------------cut here---------------start------------->8--- $ addr2line -e /gnu/store/4p1kab1c4h7h3kvgcm1hbjja4y5k9x4p-glibc-cross-i586= -pc-gnu-2.33/lib/ld.so.1 0x11627 0x11bb /tmp/guix-build-glibc-cross-i586-pc-gnu-2.33.drv-0/glibc-2.33/elf/dl-misc.c= :333 :? $ objdump -S /gnu/store/4p1kab1c4h7h3kvgcm1hbjja4y5k9x4p-glibc-cross-i586-p= c-gnu-2.33/lib/ld.so.1 --start-address=3D0x000011b0 |head -40 /gnu/store/4p1kab1c4h7h3kvgcm1hbjja4y5k9x4p-glibc-cross-i586-pc-gnu-2.33/li= b/ld.so.1: file format elf32-i386 Disassembly of section .text: 000011b0 <_start>: 11b0: 89 e0 mov %esp,%eax 11b2: 83 ec 0c sub $0xc,%esp 11b5: 50 push %eax 11b6: e8 b5 0a 00 00 call 1c70 <_dl_start> 11bb: 83 c4 10 add $0x10,%esp --8<---------------cut here---------------end--------------->8--- So it would seem that =E2=80=98_dl_start=E2=80=99 is called and somehow the= n a tail-call to =E2=80=98_dl_fatal_printf=E2=80=99 is made. Through a dichotomy I tried to see how far it goes. The info I have so far is that ld.so errors out from elf/rtld.c:563 (line 565 is not reached): --8<---------------cut here---------------start------------->8--- 558: if (bootstrap_map.l_addr || ! bootstrap_map.l_info[VALIDX(DT_GNU_PREL= INKED)]) 559: { 560: /* Relocate ourselves so we can do normal function calls and 561: data access using the global offset table. */ 562: 563: ELF_DYNAMIC_RELOCATE (&bootstrap_map, 0, 0, 0); 564: } 565: bootstrap_map.l_relocated =3D 1; ... 578: __rtld_malloc_init_stubs (); --8<---------------cut here---------------end--------------->8--- It=E2=80=99s hard to be more precise because ELF_DYNAMIC_RELOCATE is a macro that expands to quite a lot of code. I don=E2=80=99t see the code path that would lead to a =E2=80=98_dl_fatal_p= rintf=E2=80=99 call though. Ideas? :-) Ludo=E2=80=99.