From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#69730: Segfault in (spawn) when passed wrong port Date: Mon, 06 May 2024 11:27:36 +0200 Message-ID: <87jzk7mgs7.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37629"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69730-done@debbugs.gnu.org To: Tomas Volf <~@wolfsden.cz> Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon May 06 11:29:05 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s3uef-0009aj-F3 for guile-bugs@m.gmane-mx.org; Mon, 06 May 2024 11:29:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3ueG-0006Xf-DG; Mon, 06 May 2024 05:28:40 -0400 Original-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 1s3ueF-0006X8-1t for bug-guile@gnu.org; Mon, 06 May 2024 05:28:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3ueE-0001iv-Oy for bug-guile@gnu.org; Mon, 06 May 2024 05:28:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3uec-00079g-Lf for bug-guile@gnu.org; Mon, 06 May 2024 05:29:02 -0400 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Mon, 06 May 2024 09:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 69730 X-GNU-PR-Package: guile Mail-Followup-To: 69730@debbugs.gnu.org, ludo@gnu.org, ~@wolfsden.cz Original-Received: via spool by 69730-done@debbugs.gnu.org id=D69730.171498769927483 (code D ref 69730); Mon, 06 May 2024 09:29:02 +0000 Original-Received: (at 69730-done) by debbugs.gnu.org; 6 May 2024 09:28:19 +0000 Original-Received: from localhost ([127.0.0.1]:36734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3udv-00079D-Bl for submit@debbugs.gnu.org; Mon, 06 May 2024 05:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3uds-000797-OG for 69730-done@debbugs.gnu.org; Mon, 06 May 2024 05:28:17 -0400 Original-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 1s3udO-0000oJ-9k; Mon, 06 May 2024 05:27:46 -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:References:In-Reply-To:Subject:To: From; bh=TCAkzqjbDSZ+b6kdT8SfRrtb4jWeBflkHJIwnByqaMI=; b=iLoqM7A6gymoog8DLWQG 8LPNtsoJarWr5PgfPxZU8FLB6U77HvwzEGHJ5/s79NIcfsxvnKkngp8JL9g+4IlpeJ5IYtjzR5HmN PRqN8TvQ+VEKVkI90tG5v3S67R8npLt4nagwnyU77+WCkwTLEISqGu8XT4VW2tE2giR6UiQ6KnCUh vbK+0L8y/bahuLKQogjgRjPQpqFOQAC5jGkNg25AhG53GxH7v7gWpRWXSbA5/glkYh3oPo9yhA03c PnXyVcZ23V7h5oSeGBSSMXTfWMzOuRJxCsZ1DxvPrU0a2n/8XFCOUY3u7iD6v7gG+OBQyuO61KP9k 7FZ62Z3rL4kY2g==; In-Reply-To: (Tomas Volf's message of "Mon, 11 Mar 2024 12:10:31 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10829 Archived-At: Hi, Tomas Volf <~@wolfsden.cz> skribis: > When I pass #f to spawn as a port, it just segfaults: > > $ guile -c '(spawn "true" (list "") #:error #f)' > Segmentation fault This was fixed a while back in the =E2=80=98main=E2=80=99 branch: --8<---------------cut here---------------start------------->8--- $ guile -c '(spawn "true" (list "") #:error #f)' Backtrace: In ice-9/boot-9.scm: 1755:12 6 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 5 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 4 (call-with-prompt ("prompt") # =E2=80=A6) In ice-9/eval.scm: 619:8 3 (_ #(#(#))) In ice-9/command-line.scm: 185:19 2 (_ #) In unknown file: 1 (eval (spawn "true" (list "") #:error #f) #) 0 (spawn "true" ("") #:error #f) ERROR: In procedure spawn: In procedure spawn: Wrong type argument in position 5 (expecting open file = port): #f $ guix describe Generation 301 May 05 2024 23:32:10 (current) shepherd 08dfcde repository URL: https://git.savannah.gnu.org/git/shepherd.git branch: devel commit: 08dfcde725e3b26f1e542a520c97a16aa9482802 guile 3b76a30 repository URL: https://git.savannah.gnu.org/git/guile.git branch: main commit: 3b76a30e3ca1f0b7ee7944836c2fc5660596b3bd guix d6c95d4 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: d6c95d4208a0cbc3ab742732865f9481c637660f --8<---------------cut here---------------end--------------->8--- We ought to cut a release! See and 5b42f8c154906584455a4989038406c88b723cb0. Thanks, Ludo=E2=80=99.