From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wOYmI1eiX2MlCAAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 11:24:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id N2ERIleiX2OoMQEAG6o9tA (envelope-from ) for ; Mon, 31 Oct 2022 11:24:23 +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 564DF28E91 for ; Mon, 31 Oct 2022 11:24:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opRxb-0001oU-SG; Mon, 31 Oct 2022 06:24:03 -0400 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 1opRxa-0001oM-IV for bug-guix@gnu.org; Mon, 31 Oct 2022 06:24:02 -0400 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 1opRxa-0007ZG-B8 for bug-guix@gnu.org; Mon, 31 Oct 2022 06:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opRxa-0005D8-0K for bug-guix@gnu.org; Mon, 31 Oct 2022 06:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58923: Malformed core dumps on Guix System Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 31 Oct 2022 10:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58923 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58923@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166721183520016 (code B ref -1); Mon, 31 Oct 2022 10:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Oct 2022 10:23:55 +0000 Received: from localhost ([127.0.0.1]:39606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opRxS-0005Cl-K6 for submit@debbugs.gnu.org; Mon, 31 Oct 2022 06:23:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:42364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opRxR-0005Cd-2u for submit@debbugs.gnu.org; Mon, 31 Oct 2022 06:23:53 -0400 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 1opRxQ-0001o1-SZ for bug-guix@gnu.org; Mon, 31 Oct 2022 06:23:52 -0400 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 1opRxQ-0007Sb-LX for bug-guix@gnu.org; Mon, 31 Oct 2022 06:23:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=pSQV9xbQfwP+KIGBFd8J7ZwFGy2i/cid+WsPG9lleu8=; b=X4kujdJW6qMiA9 KlbtFU4cVxoAT6fUjv7XAucpCkcJcC1Rk9VGOquBPc18B18lFuAtZnbWZXP602BQyplT0xBvURv85 YXGXAunCJ0+QVU2vW+2wQKFEUpLrG5OmzoFiGpmItRDIQVaVAynnyVJpw4XD/fLipKZhPkmYTiU8u J9LQvdiGnWN2/J8EkReHY4ZhDSe00NpviuA2/QQKU87JY9Bb1ks9Ll79QztKwZdMRdWeLPVmtYv7F //yvisD+oD0uNB2s6qDG2PMuKdCC/Zcpl5H/2TVb9oaQLmDYfvZ+h0AHo+oI1gmsIsWGf2dUCpuOz WMcQZgtLUj5N/qDAOkLA==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opRxQ-00083o-7l for bug-guix@gnu.org; Mon, 31 Oct 2022 06:23:52 -0400 From: Mathieu Othacehe Date: Mon, 31 Oct 2022 11:23:48 +0100 Message-ID: <87fsf4gukr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Sender: "bug-Guix" Errors-To: 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=1667211863; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=pSQV9xbQfwP+KIGBFd8J7ZwFGy2i/cid+WsPG9lleu8=; b=mKc17d5/IKwX655Wy1Rs6Mo0x0luju/9BTAzc1hHGLZri/dIZV2J410/TN287dAyecbVI1 rWXMplVLesFPriZCtvrzx0p3gy4YFcpIKu1kHN7+EvByefNJGR9yS2mtCrwDQMWNbP/uAH Hzsi/utcg6fYnvni3aJ4HwWZ8m0HiKupN3drDnbeiByQshpAhLMn5xPpLwFIGTJdCLQ6ii ZsDCknBX0xckAAQ20TDaTTvW8fSuWnuG/UknnXpIi/9iAVft0/SBI7sRfC7wj1h3XPawo8 Kuljo23dTOP0PJ9CjZnEMtx767Oa7s6Oxe/pst1QDxotr+NViH0aQQVc2/JK7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667211863; a=rsa-sha256; cv=none; b=FAz9P/MIDKL4naCrnZ00JW9BdJus0+xPxxp/fzjE7Jr8QdAZevxKFaPnm0jUY49TC0sAWo 26GxQNMh/wCFI+GnD8LQC+vVEBvfgsWgxK3wNdZSpq24vjL4old/SLFD0jCEIwiAwkTHJF yMRNbZApi4NWDVpStHt7zTy2EC8Y8les9gtE3K+zQlmJFtaV1cCSkPWr97i8SEPpYwsTd0 QNl12cKTFBg1SkLt9NywadBs0iukgyM9uc2jArDhgc2dJL1pTL5luWdNHmO7I+q7zHCycs PaOmve0O/ZPee7IRRdp+XUvMmHY+5i6ebm+OjmahnaxrnXtZm7xKnh8+8toZAQ== 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=X4kujdJW; 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.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=X4kujdJW; 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: 564DF28E91 X-Spam-Score: -3.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: ot2Qn+CrgHBO Hello, Working on https://issues.guix.gnu.org/58733, I noticed that there is something wrong with the core dumps we are generating on Guix System. --8<---------------cut here---------------start------------->8--- mathieu@meije ~/tmp [env]$ cat test.c #include int main() { int *t = NULL; return *t; } mathieu@meije ~/tmp [env]$ gcc test.c mathieu@meije ~/tmp [env]$ ulimit -c unlimited mathieu@meije ~/tmp [env]$ ulimit -a real-time non-blocking time (microseconds, -R) unlimited core file size (blocks, -c) unlimited mathieu@meije ~/tmp [env]$ echo "/tmp/my-core-%p" | sudo tee /proc/sys/kernel/core_pattern /tmp/my-core-%p mathieu@meije ~/tmp [env]$ ./a.out Segmentation fault (core dumped) mathieu@meije ~/tmp [env]$ gdb ./a.out /tmp/my-core-5622 ... BFD: warning: /tmp/my-core-5622 has a segment extending past end of file ... Failed to read a valid object file image from memory. Core was generated by `./a.out'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000000401102 in main () (gdb) bt #0 0x0000000000401102 in main () Backtrace stopped: Cannot access memory at address 0x7fff14e14168 --8<---------------cut here---------------end--------------->8--- The "has a segment extending past end of file" warning appears to be problematic and the "bt" command does not work which makes core dump generation a bit useless. Thanks, Mathieu