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 cP5GImY6VmPV9wAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 09:10:30 +0200 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 oAuIIWY6VmP/1AAAG6o9tA (envelope-from ) for ; Mon, 24 Oct 2022 09:10:30 +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 47FD72D702 for ; Mon, 24 Oct 2022 09:10:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omlSO-0004ao-Ut for larch@yhetil.org; Sun, 23 Oct 2022 20:36:44 -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 1omWxe-0007X1-Gx for bug-guix@gnu.org; Sun, 23 Oct 2022 05:08: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 1omWxe-0002Bm-8O for bug-guix@gnu.org; Sun, 23 Oct 2022 05:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omWxd-0001Xs-Td for bug-guix@gnu.org; Sun, 23 Oct 2022 05:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58732: installer: finalizers & device destroy segfault Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 23 Oct 2022 09:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58732 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58732@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16665160565897 (code B ref -1); Sun, 23 Oct 2022 09:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2022 09:07:36 +0000 Received: from localhost ([127.0.0.1]:42849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omWxE-0001X3-6V for submit@debbugs.gnu.org; Sun, 23 Oct 2022 05:07:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:47374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omWxC-0001Wv-98 for submit@debbugs.gnu.org; Sun, 23 Oct 2022 05:07:34 -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 1omWxC-0007Pp-1i for bug-guix@gnu.org; Sun, 23 Oct 2022 05:07:34 -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 1omWxB-000284-OV for bug-guix@gnu.org; Sun, 23 Oct 2022 05:07:33 -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=rRjDJWNCR7zljL3ZjtxmL7Nr1IhlLrkDlXyn3Hdzego=; b=KmH/z/ThRkVkd5 0YIAyTaE81u/6mUoXwxKxjK3DZ/4cYT3qQai4DLDM4BZ7djROBz861FHYPG1RhRKZwee8phawAtUE mGNS3nelGQXNA+Qsoqof7e/h9CF7CYMPUDnZZKjYwMS+9HRLzQ9vi7bFOKC5YuDbk1mYcBL9vBoqO OWtMAJ5ZKem5bOuRWpeeuo+wsKqjw9PuwOSPNod7n31bOK0P5DKKPIQbeDOrMhy9/2p1rV1hk8R7f ccxwx6D95jAIkGs9Mh1fV2prbGWJT+aUK0tXfoD0ouZrRMAF0HTB9fvxup36ThWY/u0CjmQGweosl Xpx2ZdZeJvRCFCHjXElg==; 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 1omWxB-0004ZH-7i for bug-guix@gnu.org; Sun, 23 Oct 2022 05:07:33 -0400 From: Mathieu Othacehe Date: Sun, 23 Oct 2022 11:07:31 +0200 Message-ID: <87v8oa29ik.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: , 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=1666595430; 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=rRjDJWNCR7zljL3ZjtxmL7Nr1IhlLrkDlXyn3Hdzego=; b=GLzXJC4LPdFM7f1pAvKTKa38LPv+mNi5vne1ZDlORlz4cGpTpgz3sVW7GjQiEnG1fBxH+M kec5kriHHYa2/fbiL6Duc6tt3KEp42r6uuF/e9CfObe6pTyLW92yGfKS5zy+EtnJvaEPZS zlfTpSDBzjT7/UK9wPkd+OZ3rniGcjIKno7sEZz+14jIYbVa9J3WTYRzuhSi4jvFo7pVKz KHt2uctCyHsDts6ARUvVTqrqkxMmbGxmlXgx65Ag6otV4DA5jsSIzhHDTOZ7SmAWCw1it4 JYq0iDkQcKeuPNeU67Pm/Fbmx5qYyghbsEt9lc7xrtPELhE9PKjinr6PgHXTQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666595430; a=rsa-sha256; cv=none; b=g2nQtMA0x3csKVP41wS70efXSzry+KQTWSryEwb84UEESJNcLOVQOgPeXoIK4BFbu3v9p6 tYKjdpRUQecc51BBYZ5PZnid1oDKC0i50H7iu/+YfUJMPDwkdu9pMulhTKGzCHIXRVl7/6 0cKB6oG37l6tFC76CwSO5TU0K3KJPKPwDBxEN2nZ748THnmLWstbL6F2Jmz4q4Rj0fjRRX nksxqWFRId9BQ3oheY7tgDYAKGz4fUrhGdwShB+yA+QbZcyOlkqPkHuL2N92INhzsEwW3f UBLmvvPYTbucNZmncz/0777FocPIadjYeBpYE1mw1PMeT8NZRzJy5kfLmm8cag== 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="KmH/z/Th"; 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.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="KmH/z/Th"; 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: 47FD72D702 X-Spam-Score: -2.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: THE+5jnFBwy9 Hello, I found a segfault in the installer by running those steps: - Run an automatic partitioning with separate home and no encryption - In the final configuration page, come back to partitioning - Remove all partitions but the ESP one, create a new btrfs root - partition - Repeat until the crash occurs Using Josselin's instructions here: https://issues.guix.gnu.org/57513, I was able to get the following backtrace: --8<---------------cut here---------------start------------->8--- Reading symbols from /gnu/store/b0ymz7vjfkcvhbci49q5yk1fi0l9lq49-parted-3.5/lib/libparted.so... (gdb) bt #0 linux_destroy (dev=0x1dc89e0) at arch/linux.c:1615 #1 0x00007f8941aecd37 in ?? () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #2 0x00007f8941a45e3f in GC_invoke_finalizers () from /gnu/store/2lczkxbdbzh4gk7wh91bzrqrk7h5g1dl-libgc-8.0.4/lib/libgc.so.1 #3 0x00007f8941aed429 in scm_run_finalizers () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #4 0x00007f8941af4482 in ?? () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #5 0x00007f8941ae085a in ?? () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #6 0x00007f8941b6d336 in ?? () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #7 0x00007f8941b7a5e9 in scm_call_n () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #8 0x00007f8941ae209a in scm_call_2 () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #9 0x00007f8941b98752 in ?? () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #10 0x00007f8941b6a88f in scm_c_catch () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #11 0x00007f8941ae2e66 in scm_c_with_continuation_barrier () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #12 0x00007f8941b69b39 in ?? () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #13 0x00007f8941a400ba in GC_call_with_stack_base () from /gnu/store/2lczkxbdbzh4gk7wh91bzrqrk7h5g1dl-libgc-8.0.4/lib/libgc.so.1 #14 0x00007f8941b628b8 in scm_with_guile () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguile-3.0.so.1 #15 0x00007f8941a16d7e in ?? () from /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libpthread.so.0 #16 0x00007f8941614eff in clone () from /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6 --8<---------------cut here---------------end--------------->8--- linux_destroy is the PedDevice destruction function. The crash occurs when dereferencing the arch_specific pointer which is ... --8<---------------cut here---------------start------------->8--- (gdb) p dev $1 = (PedDevice *) 0x1dc89e0 (gdb) p *dev $2 = {next = 0x1, model = 0x1645d50 "", path = 0x0, type = PED_DEVICE_UNKNOWN, sector_size = 0, phys_sector_size = 1, length = 23272720, open_count = 0, read_only = 1, external_mode = 0, dirty = 0, boot_dirty = 0, hw_geom = { cylinders = 0, heads = 2, sectors = 0}, bios_geom = {cylinders = 23259184, heads = 0, sectors = 0}, host = 1, did = 0, arch_specific = 0x0} (gdb) p dev->arch_specific $3 = (void *) 0x0 --8<---------------cut here---------------end--------------->8--- null! I guess this has to deal with device pointer finalizers. I'm a bit disappointed because I thought we had overcome those mistakes. Thanks, Mathieu