From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eOtaHoP3sl8HXgAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 22:04:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mFovGoP3sl9eMgAA1q6Kng (envelope-from ) for ; Mon, 16 Nov 2020 22:04:51 +0000 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 4B3BC940118 for ; Mon, 16 Nov 2020 22:04:50 +0000 (UTC) Received: from localhost ([::1]:41514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kemcC-0002fd-Iz for larch@yhetil.org; Mon, 16 Nov 2020 17:04:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kemZW-0000M3-CC for bug-guix@gnu.org; Mon, 16 Nov 2020 17:02:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kemZV-0003tq-Py for bug-guix@gnu.org; Mon, 16 Nov 2020 17:02:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kemZV-0007L7-Ne for bug-guix@gnu.org; Mon, 16 Nov 2020 17:02:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44000: Guile-Git cross-compiled to i586-pc-gnu gets bytestructures wrong Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 16 Nov 2020 22:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44000 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 44000@debbugs.gnu.org Received: via spool by 44000-submit@debbugs.gnu.org id=B44000.160556408628168 (code B ref 44000); Mon, 16 Nov 2020 22:02:01 +0000 Received: (at 44000) by debbugs.gnu.org; 16 Nov 2020 22:01:26 +0000 Received: from localhost ([127.0.0.1]:57575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemYv-0007KF-Rj for submit@debbugs.gnu.org; Mon, 16 Nov 2020 17:01:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemYs-0007K1-Gg for 44000@debbugs.gnu.org; Mon, 16 Nov 2020 17:01:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43396) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kemYn-0003rb-7Z for 44000@debbugs.gnu.org; Mon, 16 Nov 2020 17:01:17 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49670 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kemYl-000115-Mu for 44000@debbugs.gnu.org; Mon, 16 Nov 2020 17:01:16 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87v9fccuml.fsf@inria.fr> <871ri0c4u8.fsf@gnu.org> <1325d1c4-e047-76e5-2180-672fef7238b9@gmail.com> <87mu0kn3wh.fsf@gmail.com> <87blgy39q7.fsf@gnu.org> <87ft66umhj.fsf@gmail.com> <87o8jxuvsy.fsf@gnu.org> Date: Mon, 16 Nov 2020 23:01:14 +0100 In-Reply-To: <87o8jxuvsy.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 16 Nov 2020 17:10:37 +0100") Message-ID: <875z65ufkl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: Ylaq6q6YAoCa Ludovic Court=C3=A8s skribis: > 1.0.9 seems to help my rather involved use case (Guix cross-compiled to > GNU/Hurd from x86_64-linux, then running =E2=80=98guix pull=E2=80=99, whi= ch depends on > Guile-Git, which uses Bytestructures) but it still eventually crashes: > > ludo@childhurd ~$ /gnu/store/mxi1za8gdq77438ywgzdzy2zywb9nk76-guix-1.2.0r= c1-1.3ba6ffd/bin/guix pull > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > receiving objects 25% [############# = ]Illegal instruction Most likely, this crash is due to the use of new progress report feature in (guix git). If I arrange to not use it, clone the whole repo proceeds without crashing. Unfortunately I=E2=80=99m unable to get a usable backtrace once SIGILL has = been raised, be it by attaching to it (using CRASHSERVER=3D/servers/crash-suspend), spawning it and crashing it from gdb, or inspecting its core file. At best I can see the backtrace of the msg thread, nothing more: --8<---------------cut here---------------start------------->8--- (gdb) thread 1 [Switching to thread 1 (process 310)] #0 0x080f08c0 in ?? () (gdb) bt #0 0x080f08c0 in ?? () #1 0x00000000 in ?? () (gdb) thread 2 [Switching to thread 2 (process 1)] #0 0x0159282c in mach_msg_trap () at /tmp/guix-build-glibc-cross-i586-pc-g= nu-2.31.drv-0/build/mach/mach_msg_trap.S:2 2 /tmp/guix-build-glibc-cross-i586-pc-gnu-2.31.drv-0/build/mach/mach_= msg_trap.S: No such file or directory. (gdb) bt #0 0x0159282c in mach_msg_trap () at /tmp/guix-build-glibc-cross-i586-pc-g= nu-2.31.drv-0/build/mach/mach_msg_trap.S:2 #1 0x01592f2a in __GI___mach_msg (msg=3D0x2802aa0, option=3D3, send_size= =3D96, rcv_size=3D32, rcv_name=3D109, timeout=3D0, notify=3D0) at msg.c:111 #2 0x017dc8ab in __crash_dump_task (crashserver=3D132, task=3D1, file=3D13= 3, signo=3D11, sigcode=3D2, sigerror=3D2, exc=3D1, code=3D2, subcode=3D2109= 86494, cttyid_port=3D102, cttyid_portPoly=3D19) at /tmp/guix-build-glibc-cross-i586-pc-gnu-2.31.drv-0/build/hurd/RPC_cr= ash_dump_task.c:254 #3 0x015b248c in write_corefile (detail=3D, signo=3D) at hurdsig.c:296 #4 post_signal (untraced=3D) at hurdsig.c:947 #5 0x015b274b in _hurd_internal_post_signal (ss=3D0x1800808, signo=3D11, d= etail=3D0x2802e5c, reply_port=3D0, reply_port_type=3D17, untraced=3D0) at h= urdsig.c:1235 #6 0x015b3fc1 in _S_catch_exception_raise (port=3D96, thread=3D39, task=3D= 1, exception=3D1, code=3D2, subcode=3D210986494) at catch-exc.c:88 #7 0x017c09b4 in _Xexception_raise (InHeadP=3D0x2802f20, OutHeadP=3D0x2803= f30) at /tmp/guix-build-glibc-cross-i586-pc-gnu-2.31.drv-0/build/mach/mach/= exc_server.c:155 #8 0x017c0a52 in _S_exc_server (InHeadP=3D0x2802f20, OutHeadP=3D0x2803f30)= at /tmp/guix-build-glibc-cross-i586-pc-gnu-2.31.drv-0/build/mach/mach/exc_= server.c:208 #9 0x015a7a09 in msgport_server (inp=3D0x2802f20, outp=3D0x2803f30) at msg= portdemux.c:49 #10 0x015934c3 in __mach_msg_server_timeout (demux=3D0x15a79b0 , max_size=3D4096, rcv_name=3D96, option=3D0, timeout=3D0) at msgserver= .c:108 #11 0x01593607 in __mach_msg_server (demux=3D0x15a79b0 , ma= x_size=3D4096, rcv_name=3D96) at msgserver.c:195 #12 0x015a7a86 in _hurd_msgport_receive () at msgportdemux.c:67 #13 0x011eda50 in entry_point (self=3D0x804ac20, start_routine=3D0x15a7a30 = <_hurd_msgport_receive>, arg=3D0x0) at pt-create.c:62 #14 0x00000000 in ?? () --8<---------------cut here---------------end--------------->8--- (Would be nice to fix this debugging issue. It looks like GDB fails to interpret the thread state of suspended threads or something.) Anyway, this crash could be due to a GC issue, in which case it would not be Hurd-specific. I could not reproduce it with i686-linux =E2=80=98gu= ix=E2=80=99 though, and obviously not with x86_64 binaries either. Ludo=E2=80=99.