From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 brDHMa2DYmM4ZgAAbAwnHQ (envelope-from ) for ; Wed, 02 Nov 2022 15:50:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aMtbL62DYmM7MAEAG6o9tA (envelope-from ) for ; Wed, 02 Nov 2022 15:50:21 +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 62BA73BDA2 for ; Wed, 2 Nov 2022 15:50:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqF47-0005WZ-US; Wed, 02 Nov 2022 10:50: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 1oqF47-0005Vr-72 for bug-guix@gnu.org; Wed, 02 Nov 2022 10:50:03 -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 1oqF46-0006u6-VK for bug-guix@gnu.org; Wed, 02 Nov 2022 10:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqF45-0006vg-Ou for bug-guix@gnu.org; Wed, 02 Nov 2022 10:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58923: Malformed core dumps on Guix System Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 02 Nov 2022 14:50:01 +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 , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 58923@debbugs.gnu.org Received: via spool by 58923-submit@debbugs.gnu.org id=B58923.166740054526424 (code B ref 58923); Wed, 02 Nov 2022 14:50:01 +0000 Received: (at 58923) by debbugs.gnu.org; 2 Nov 2022 14:49:05 +0000 Received: from localhost ([127.0.0.1]:46933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqF3B-0006s8-0P for submit@debbugs.gnu.org; Wed, 02 Nov 2022 10:49:05 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:37398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqF38-0006rd-TO for 58923@debbugs.gnu.org; Wed, 02 Nov 2022 10:49:03 -0400 Received: by mail-wm1-f46.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so1445528wmb.2 for <58923@debbugs.gnu.org>; Wed, 02 Nov 2022 07:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=vE2/PGTQ95vL5pAoYVNni3fopS0OgOj5zI3S6vDZTl4=; b=f7LGV08Vhu+Re6Ex8VwdUKuVi7woqc+5o6MKdAtkSFc9jeDXMQPras7wGH8uIOFiq4 bFTCHF35/pNU+ucwLAUnEgtUofVIS/eid21BWMJgmb3Bz0ag9KAFrmUMnMigQsorQnLl GU/CD0FRfDVFCPCQOMWDowOR3HKIxX6PzDyf3gyfC8GtEWB8LeGOGcHql9ynX+9x2h8U V2T0Tzr1qtgFoXhR5RFHBVH57jqPoDfIQr7P2SXkaE0n2A8r8HhKNrPGLTdUt+2J3aub 1Gvw7JmC2UKKC9KAN9M0EtKhoyCQlvoty48pFJOclW7VBmRjtICJxgtwvBVp4qVBgAWm Bx3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vE2/PGTQ95vL5pAoYVNni3fopS0OgOj5zI3S6vDZTl4=; b=cbQiBK872uynTeuSMWLlXz+w9DMdB3dSdtP+6AybI39XfT8czQRSIFmqT5XfM/EjBH hERpNDEyJ0r8vjJ0Uo34BECyV4wKNanysRH3+JTF7ib7FJh183MY7e49vkim0OhdAgLI ACTMOjaSHvnFZn+QLbCBKk9G6FhHE6OenhbtmCVTSTCWhknAZKC0NHaklaK7fT2DWQQa 3fJ2Gi4b231a+EbV3OPjZ71jP0mE1kBGeDBldad15IPQnuXloO50aBkxwrfq2UDDm6iT Aj6k8EId9mrQH0CtFHGi+E7+inthbanx8hrhcPuQGMna9YD/k5hiCiXXRcbaAHMbTpsV 4zSQ== X-Gm-Message-State: ACrzQf1Pfe4IPY9qQuYvUxHhe4aNWsIzXoGAAHdrrv1R9regaHW3CpMQ 6v6wrvbR8CuX2kq370Z8KNHdEL0PuXE= X-Google-Smtp-Source: AMsMyM7nbqp4RyfbcmT+aKIMoya4tr56upwGhvLV1lzHZyHw6W0oL5d5JlBAwUmtIfN6VORK3poSlg== X-Received: by 2002:a05:600c:6889:b0:3cd:d83b:7993 with SMTP id fn9-20020a05600c688900b003cdd83b7993mr25336920wmb.143.1667400536460; Wed, 02 Nov 2022 07:48:56 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id q9-20020a5d61c9000000b00236733f0f98sm12883576wrv.107.2022.11.02.07.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 07:48:55 -0700 (PDT) From: zimoun In-Reply-To: <87edulmwd7.fsf@gnu.org> References: <87fsf4gukr.fsf@gnu.org> <87iljxwsu9.fsf@gnu.org> <87edulmwd7.fsf@gnu.org> Date: Wed, 02 Nov 2022 15:18:13 +0100 Message-ID: <87k04de8yi.fsf@gmail.com> 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=1667400621; 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: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=vE2/PGTQ95vL5pAoYVNni3fopS0OgOj5zI3S6vDZTl4=; b=DzH1lp1BAU+FXxxWDqtSI4KZpABQc6j8PvBy6IZNOzTiEpFkEB3PtFfJk180YeAdXcESiH DcSqIs2hkbJivCVr32wt8o9HVR4nB0X5r8dNcfP4gRUlhmbDstZgr1XIcEq8GNpQ8qGsJH PEbeynBAMQQ3msgdaFGefU40hHmd1ZqOlb4j2cZVW6hXLAhRdtzc7szUBgr7zhmqMl5RoM Cc6SHSB46O7/hk6+Vp3Kg6RW8VeJq6BWF74uIN/VVUXEDU5CqgPeanVIn1YJqjA7x1OtP8 N/cD0fkrurCYI61V2eWzoos0JlYyhBM4q+VlMLFTbwLM0jhBMvOzMo2p//OyFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667400621; a=rsa-sha256; cv=none; b=s0l4pTabiYuahmPYVZmfCrhxeh10BWKA6uN2uCQloVvNJNxRMP1E/ypfhZN1RTHoA5FGP7 IYWERqUFqKuDzunxrWFmc+aPqpki9tSEAvQipsJwWjdddY0MeQCh9wKsKElJvJtj418s5P Uekf8kZuJ9eKS4g55+z+baSOnuzAdq8yHCb1R7jAEDgCCtHUPkuzfgmcCCruUatu+s/s/z /Sqkp2qmxWU7OygvU+GajHCwKhbNnXnLtDLGRPKnGsAVKOM1/yUVLgXDxjBK9Zd9wy9h1g AGURx/CRW8W6MrD5cPiIordPEOOTPKr/YFy5jwvOlXNSu3BSdTSvdho9V9W0lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=f7LGV08V; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 7.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=f7LGV08V; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 62BA73BDA2 X-Spam-Score: 7.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: RcqyPh5auQ2U Hi, On mer., 02 nov. 2022 at 12:25, Mathieu Othacehe wrote: > I'll see if this can be reproduced on > a foreign distribution. Using Guix 00ff6f7. --8<---------------cut here---------------start------------->8--- $ uname -a Linux pfiuh07 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux $ echo "/tmp/my-core-%p" | sudo tee /proc/sys/kernel/core_pattern /tmp/my-core-%p $ guix shell -C coreutils gcc-toolchain gdb /tmp/bug-58923 [env]$ cat test.c #include int main() { int *t = NULL; return *t; } /tmp/bug-58923 [env]$ gcc test.c /tmp/bug-58923 [env]$ ulimit -a real-time non-blocking time (microseconds, -R) unlimited core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 255927 max locked memory (kbytes, -l) 65536 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 9788 cpu time (seconds, -t) unlimited max user processes (-u) 255927 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited /tmp/bug-58923 [env]$ ulimit -c unlimited /tmp/bug-58923 [env]$ ulimit -a real-time non-blocking time (microseconds, -R) unlimited core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 255927 max locked memory (kbytes, -l) 65536 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 9788 cpu time (seconds, -t) unlimited max user processes (-u) 255927 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited /tmp/bug-58923 [env]$ ./a.out Segmentation fault (core dumped) /tmp/bug-58923 [env]$ ls /tmp/ bug-58923 my-core-23 /tmp/bug-58923 [env]$ gdb ./a.out /tmp/my-core-23 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 ./a.out... (No debugging symbols found in ./a.out) [New LWP 23] Core was generated by `./a.out'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000000401106 in main () (gdb) bt #0 0x0000000000401106 in main () (gdb) exit /tmp/bug-58923 [env]$ exit exit --8<---------------cut here---------------end--------------->8--- Cheers, simon