From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QLEtLG8COWA0WgAA0tVLHw (envelope-from ) for ; Fri, 26 Feb 2021 14:15:11 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qKn+J28COWCVaAAAB5/wlQ (envelope-from ) for ; Fri, 26 Feb 2021 14:15:11 +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 aspmx2.migadu.com (Postfix) with ESMTPS id D018F23D5A for ; Fri, 26 Feb 2021 15:15:10 +0100 (CET) Received: from localhost ([::1]:53878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFdtd-0003re-OS for larch@yhetil.org; Fri, 26 Feb 2021 09:15:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFdtW-0003rU-RG for bug-guix@gnu.org; Fri, 26 Feb 2021 09:15:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFdtW-0006C0-JM for bug-guix@gnu.org; Fri, 26 Feb 2021 09:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFdtW-0005xZ-Dy for bug-guix@gnu.org; Fri, 26 Feb 2021 09:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46796: Cuirass & pointer finalization. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Feb 2021 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46796 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46796@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161434887622846 (code B ref -1); Fri, 26 Feb 2021 14:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2021 14:14:36 +0000 Received: from localhost ([127.0.0.1]:40496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFdt5-0005wQ-OL for submit@debbugs.gnu.org; Fri, 26 Feb 2021 09:14:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:55484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFdt4-0005wJ-Oy for submit@debbugs.gnu.org; Fri, 26 Feb 2021 09:14:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFdt4-0003pd-Js for bug-guix@gnu.org; Fri, 26 Feb 2021 09:14:34 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33232) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFdt4-0005xy-DR for bug-guix@gnu.org; Fri, 26 Feb 2021 09:14:34 -0500 Received: from [2a01:e0a:19b:d9a0:98e:5d4:fa52:995a] (port=35758 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lFdt3-0007B1-Nl for bug-guix@gnu.org; Fri, 26 Feb 2021 09:14:34 -0500 From: Mathieu Othacehe Date: Fri, 26 Feb 2021 15:14:31 +0100 Message-ID: <8735xihq60.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614348911; 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; bh=Io8a3rMxK1dQqtj1F+iT0RJLiK+q5O9bvanz++21JOI=; b=Kql5bcR9UwSSQgS+m53Ieg0c8Si8Mwwyjrfivo/xf50u4ouNVAdkS62URQ8L+wN6bQokKl 5wc74KgthM0Y1ypnbEKnnkLur5r/2/6BRhSXNyNiTKxizTw0QV6LUg+DklyOkdDILNrVhY PJkCz1sQl58XamjVQwJH1V/znSkCq6CyWj4j6rN83ynzOv0Cn/13iHreQbGZ0LTZb8X2m5 H2iVbNQRYObJFvVuv1FMHFWOd07b8aYRC62Dnvg6diQpKDX644YiHMKALF+1mGhZfAvLGM M6Eij6bDs6PmDjXBsVKsG3jo5QZnvj8AuMIy3OfOaXx+5uSTwP+EuPKZiEj6cg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614348911; a=rsa-sha256; cv=none; b=P9u301dpNFcwdMuIYugej1zsqHwwInk5D9WVgH/v9Bp34wrhFYXvVQXIEUThsLzI9iNa0d 44x5ideBZTzsua71EqScHBjIW7rI4usAxSUAgBpYEeQWWZJcl9PRokMIxk83aBArpevw4o BVeV5TNVEs/XNIhzVXymiIakmLMqOoPEAbq/Nst1KK7jF326X5bUYMwVxprRLN2xOsUDBQ NephBt1n146KLbNAlJf1zMhnHqL1K6n73br/1Fd2V60Hl/8Gpzt6s2XQ4KliqVa05gmvzD oWy5pn6OdV163zGVmyFdSEXq6axGqWeUTYneheI7wpS6yvWDXTn9jCPBLi4U+A== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.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-Migadu-Spam-Score: -2.87 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.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-Migadu-Queue-Id: D018F23D5A X-Spam-Score: -2.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: B8D68EWD/+yW Hello, I'm trying to fix a memory corruption in the remote-server process of Cuirass since a few days. Even though I don't have a usable core dump file yet, I'm pretty sure the error comes from the "zmq-msg-init" procedure of Guile-Simple-ZMQ. This procedure creates a bytevector, call the C function zmq_msg_init to initialize it, adds zmq_msg_close as pointer finalizer and returns a wrapped pointer. My understanding is that the wrapped pointer that is passed around in Cuirass ensures that the underlying bytevector is not garbage collected until the pointer goes out of scope. However, some assertions failures such as this one: --8<---------------cut here---------------start------------->8--- Assertion failed: check () (src/msg.cpp:394) --8<---------------cut here---------------end--------------->8--- let me think that the bytevector is garbage collected, while ZMQ is still using it. Some help would be much appreciated here :). Thanks, Mathieu