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 AE45HqDPbGOmfwAAbAwnHQ (envelope-from ) for ; Thu, 10 Nov 2022 11:17:04 +0100 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 qKdkHqDPbGOsEAEA9RJhRA (envelope-from ) for ; Thu, 10 Nov 2022 11:17:04 +0100 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 2461E2996B for ; Thu, 10 Nov 2022 11:17:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot4bP-000465-Ig; Thu, 10 Nov 2022 05:16:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot4bO-00041G-5T for bug-guix@gnu.org; Thu, 10 Nov 2022 05:16:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ot4bK-0003tA-NL for bug-guix@gnu.org; Thu, 10 Nov 2022 05:16:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ot4bK-0007Xd-Ik for bug-guix@gnu.org; Thu, 10 Nov 2022 05:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#58923: Malformed core dumps on Guix System Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 10 Nov 2022 10:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58923 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 58923@debbugs.gnu.org Received: via spool by 58923-submit@debbugs.gnu.org id=B58923.166807530828902 (code B ref 58923); Thu, 10 Nov 2022 10:16:02 +0000 Received: (at 58923) by debbugs.gnu.org; 10 Nov 2022 10:15:08 +0000 Received: from localhost ([127.0.0.1]:41977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4aR-0007W6-BX for submit@debbugs.gnu.org; Thu, 10 Nov 2022 05:15:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4aP-0007Uq-4i for 58923@debbugs.gnu.org; Thu, 10 Nov 2022 05:15:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot4aG-0003WI-SP for 58923@debbugs.gnu.org; Thu, 10 Nov 2022 05:14:59 -0500 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=bI9k11OaQ9998I+gd92GnmPrvD30MmNedXg5ADSQlQc=; b=ZHh4j+Othx+dnJWikuXP k8jTfQq50uCVPcFSHoopNe2UzkFBrdogiGqVI08zJYSrZaRvSAWEBXd0+xcKXEujYnwpm/cBbk2c3 RQ29uAcqlV1lz+N4ZaOHs2Xub731ICL3aQCS3MnniICyyDd/s296y7u5msugO8HGAFpzEuM6nzT/u 2pyrzhUC0zqWwJjtleCee5HL1axNr1ZtQ5SK+46fb3IQP9yhZQCg60lVp0FaZ7nUYgxpJ7U9p/1+5 d0vMiBE0QFTDXOkllW88q9AYvUDu8W5UCXxlbcK5Lf4rOVvx8b1Q0rq7YWHuFQs1a2GbFaZ/kXK71 IZOf9FFSjnZl8g==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot4aC-0006Sl-3y; Thu, 10 Nov 2022 05:14:52 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87fsf4gukr.fsf@gnu.org> <87iljxwsu9.fsf@gnu.org> <87edulmwd7.fsf@gnu.org> Date: Thu, 10 Nov 2022 11:14:49 +0100 In-Reply-To: <87edulmwd7.fsf@gnu.org> (Mathieu Othacehe's message of "Wed, 02 Nov 2022 12:25:24 +0100") Message-ID: <87r0ybjeue.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (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-bounces+larch=yhetil.org@gnu.org 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=1668075420; 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=bI9k11OaQ9998I+gd92GnmPrvD30MmNedXg5ADSQlQc=; b=HmmPoARBBMTUzrtciOmLyE7Pz+DxIYIvL7aSzZ2MlFeafUKOzDhE9dlpFE6OaDHcwr2gqt n70HMcIxGw8v9hC9WKujDYPuFBB4itHJUkYYeoV1RDSjPEUpmJRLacSl3mldYEW8GMtSTe K5R8hKppA0NYDhVmuoYUYgRfA7meOx8FSBPXP3GEbJ0uWLDtsrY2/wcao/TE32s/X+y3T+ /2AH+XUxRkNpiS+DA0DKHFlQI8mfjUV+AakkMls+6NVhw9MihJUq2FtfNKMK0q4BJ/4iRi NTSQ0ShKjCrGOqKSK57Jojr09aqM9AVKkr3vzXtOBSCHagd4HCbqC2cjHElm4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668075420; a=rsa-sha256; cv=none; b=NjawlHppmbZOnDvcBIt0rZ5TCiBeSzxVI4w+emx7Ve4I8uZNa5PfzNasy63FDS/vdlSs13 hxnJ8xUEmrYOvm67Voo6NpMMP+Ia9qShF2APB9IQeM9lX3JRxYD5IsmmHn7Qg2yMm+ytpq bOTNTPdaYvnM3zuvFD0SP2UMVdqGUyw8nfbnVEcpzk7ZxEkmKmDL6GuaVtBwjfSc1ot3Kh Ri1ECoDmTXfdorqZ7mSslLwVhqIB3YFvSgueKVEt5xF/gqxBs492Yyi76VdNc+M/cdYF96 F/maL54mo2tG4YB7r1H2ocgdL+HKwkqGu+q94rLMy9Fc4VRQVgNIBLblIBHCvg== 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=ZHh4j+Ot; 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: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ZHh4j+Ot; 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: 2461E2996B X-Spam-Score: -2.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: VX3ZiQFOqRh3 Hi, Mathieu Othacehe skribis: > I suspected that at first, but I then reproduced it on Berlin so I would > rather bet on a recent regression. I'll see if this can be reproduced on > a foreign distribution. I checked in a Guix System VM and cannot reproduce it either: --8<---------------cut here---------------start------------->8--- $ guix describe Generation 234 Nov 07 2022 00:27:58 (current) guix 4a34da8 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 4a34da845ed91821d38ba8a9b65ad650dd7488d1 $ $(guix system vm --no-graphic gnu/system/examples/bare-bones.tmpl) -m 1024 [=E2=80=A6] komputilo login: root root This is the GNU operating system, welcome! root@komputilo ~# ulimit -c unlimited ulimit -c unlimited root@komputilo ~# guile -c '(use-modules (system foreign)) (dereference-poi= nter (make-pointer 1234))' guile -c '(use-modules (system foreign)) (dereference-pointer (make-pointer= 1234))' [ 17.580329] guile[188]: segfault at 4d2 ip 00007f53893ff97f sp 00007ffed= e6ab190 error 4 in libguile-3.0.so.1.5.0[7f53893dc000+c8000] [ 17.582412] Code: 66 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 08 40 f6 c7 = 06 75 26 48 8b 07 83 e0 7f 48 83 f8 1f 75 1a 48 8b 47 08 48 85 c0 74 31 <48= > 8b 38 31 f6 48 83 c4 08 e9 33 d1 fd ff 0f 1f 00 48 89 fa 48 8d Segmentation fault (core dumped) root@komputilo ~# uname -a uname -a Linux komputilo 6.0.7-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux root@komputilo ~# echo "set debug-file-directory /gnu/store/9snhi90f2nivxqr= vqgjgixdch5zkps88-guile-3.0.8-debug/lib/debug" >> ~/.gdbinit echo "set debug-file-directory /gnu/store/9snhi90f2nivxqrvqgjgixdch5zkps88-= guile-3.0.8-debug/lib/debug" >> ~/.gdbinit root@komputilo ~# /gnu/store/8fg0nk7c0xylmb6vpz1hc2mx7k3nqw47-gdb-12.1/bin/= gdb $(type -P guile) core /gnu/store/8fg0nk7c0xylmb6vpz1hc2mx7k3nqw47-gdb-12.1/bin/gdb $(type -P guil= e) core GNU gdb (GDB) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /run/current-system/profile/bin/guile... Reading symbols from /gnu/store/9snhi90f2nivxqrvqgjgixdch5zkps88-guile-3.0.= 8-debug/lib/debug//gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/b= in/guile.debug... [New LWP 188] warning: Unable to find libthread_db matching inferior's thread library, th= read debugging will not be available. Core was generated by `guile -c (use-modules (system foreign)) (dereference= -pointer (make-pointer 1234'. Program terminated with signal SIGSEGV, Segmentation fault. --Type for more, q to quit, c to continue without paging-- #0 scm_dereference_pointer (pointer=3D0x7f5388a3d4f0) at foreign.c:375 375 foreign.c: No such file or directory. ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/lib/l= ibguile-3.0.so.1.5.0-gdb.scm WARNING: (guile-user): imported module (gdb) overrides core binding `symbol= ?' ;;; /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/lib/libguile-3.= 0.so.1.5.0-gdb.scm:293:21: warning: possibly unbound variable `program-debu= g-info-name' ;;; /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/lib/libguile-3.= 0.so.1.5.0-gdb.scm:326:10: warning: possibly unbound variable `find-source-= for-addr' ;;; /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/lib/libguile-3.= 0.so.1.5.0-gdb.scm:326:32: warning: possibly unbound variable `program-debu= g-info-addr' ;;; /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/lib/libguile-3.= 0.so.1.5.0-gdb.scm:327:32: warning: possibly unbound variable `program-debu= g-info-context' ;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.5/gnu/store/qlmpcy5zi84m6= dikq3fnx5dz38qpczlc-guile-3.0.8/lib/libguile-3.0.so.1.5.0-gdb.scm.go ;;; compiling /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/share= /guile/3.0/system/base/types.scm ;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.5/gnu/store/qlmpcy5zi84m6= dikq3fnx5dz38qpczlc-guile-3.0.8/share/guile/3.0/system/base/types.scm.go (gdb) bt bt #0 scm_dereference_pointer (pointer=3D#) at foreign.c:375 #1 0x00007f5389478326 in vm_regular_engine (thread=3D0x7f5388913d80) at vm-engine.c:972 #2 0x00007f53894855d9 in scm_call_n (proc=3D,=20 argv=3D, nargs=3D1) at vm.c:1610 #3 0x00007f53893ed457 in scm_primitive_eval (exp=3D,=20 exp@entry=3D(dereference-pointer (make-pointer 1234))) at eval.c:671 #4 0x00007f53893f34b6 in scm_eval ( exp=3D(dereference-pointer (make-pointer 1234)),=20 module_or_state=3D"#" =3D {...}) at eval.c:705 #5 0x00007f5389478326 in vm_regular_engine (thread=3D0x7f5388913d80) at vm-engine.c:972 #6 0x00007f53894855d9 in scm_call_n (proc=3D,=20 argv=3D, nargs=3D1) at vm.c:1610 #7 0x00007f53893ed457 in scm_primitive_eval (exp=3D,=20 exp@entry=3D((@ (ice-9 control) %) (begin ((@@ (ice-9 command-line) eva= l-string/lang) "(use-modules (system foreign)) (dereference-pointer (make-p= ointer 1234))") (quit)))) at eval.c:671 #8 0x00007f53893f34b6 in scm_eval ( exp=3D((@ (ice-9 control) %) (begin ((@@ (ice-9 command-line) eval-stri= ng/lang) "(use-modules (system foreign)) (dereference-pointer (make-pointer= 1234))") (quit))), module_or_state=3D"#" =3D {...}) at eval= .c:705 #9 0x00007f53894573b6 in scm_shell (argc=3D3, argv=3D0x7ffede6abb48) --Type for more, q to quit, c to continue without paging-- at script.c:357 #10 0x00007f538940249c in invoke_main_func (body_data=3D0x7ffede6aba00) at init.c:312 #11 0x00007f53893eb85a in c_body (d=3D0x7ffede6ab920) at continuations.c:430 #12 0x00007f5389478326 in vm_regular_engine (thread=3D0x7f5388913d80) at vm-engine.c:972 #13 0x00007f53894855d9 in scm_call_n (proc=3D,=20 argv=3D, nargs=3D2) at vm.c:1610 #14 0x00007f53893ed09a in scm_call_2 (proc=3D,=20 arg1=3D, arg2=3D) at eval.c:503 #15 0x00007f53894a3742 in scm_c_with_exception_handler.constprop.0 (type=3D= #t,=20 handler_data=3Dhandler_data@entry=3D0x7ffede6ab8b0,=20 thunk_data=3Dthunk_data@entry=3D0x7ffede6ab8b0, thunk=3D= ,=20 handler=3D) at exceptions.c:170 #16 0x00007f538947588f in scm_c_catch (tag=3D,=20 body=3D, body_data=3D, handler=3D,=20 handler_data=3D, pre_unwind_handler=3D,=20 pre_unwind_handler_data=3D0x7f5388991040) at throw.c:168 #17 0x00007f53893ede66 in scm_i_with_continuation_barrier ( pre_unwind_handler=3D0x7f53893edb80 ,=20 pre_unwind_handler_data=3D0x7f5388991040, handler_data=3D0x7ffede6ab920= ,=20 handler=3D0x7f53893f48b0 , body_data=3D0x7ffede6ab920,=20 body=3D0x7f53893eb850 ) at continuations.c:368 --Type for more, q to quit, c to continue without paging-- #18 scm_c_with_continuation_barrier (func=3D,=20 data=3D) at continuations.c:464 #19 0x00007f5389474b39 in with_guile (base=3D0x7ffede6ab9a8, data=3D0x7ffed= e6ab9d0) at threads.c:645 #20 0x00007f538934b0ba in GC_call_with_stack_base () from /gnu/store/2lczkxbdbzh4gk7wh91bzrqrk7h5g1dl-libgc-8.0.4/lib/libgc.s= o.1 #21 0x00007f538946d8b8 in scm_i_with_guile (dynamic_state=3D= ,=20 data=3D, func=3D) at threads.c:688 #22 scm_with_guile (func=3D, data=3D) at threads.c:694 #23 0x00007f538940b025 in scm_boot_guile (argc=3Dargc@entry=3D3,=20 argv=3Dargv@entry=3D0x7ffede6abb48,=20 main_func=3Dmain_func@entry=3D0x401230 , closure=3Dclosure@= entry=3D0x0) at init.c:295 #24 0x00000000004010f7 in main (argc=3D3, argv=3D0x7ffede6abb48) at guile.c= :94 (gdb)=20 --8<---------------cut here---------------end--------------->8--- Would be good to isolate the circumstances that can cause the problem. Ludo=E2=80=99.