From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Volf <~@wolfsden.cz> Newsgroups: gmane.lisp.guile.bugs Subject: bug#69730: Segfault in (spawn) when passed wrong port Date: Mon, 11 Mar 2024 12:10:31 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5cweB0RI3pMLbAFq" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15525"; mail-complaints-to="usenet@ciao.gmane.io" To: 69730@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Mar 11 12:12:03 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 1rjdZb-0003mT-0Q for guile-bugs@m.gmane-mx.org; Mon, 11 Mar 2024 12:12:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjdZ4-00075U-Ci; Mon, 11 Mar 2024 07:11:30 -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 1rjdZ2-00073O-PJ for bug-guile@gnu.org; Mon, 11 Mar 2024 07:11:28 -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 1rjdZ2-00026T-HK for bug-guile@gnu.org; Mon, 11 Mar 2024 07:11:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rjdZa-0002nq-9p for bug-guile@gnu.org; Mon, 11 Mar 2024 07:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 11 Mar 2024 11:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69730 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171015550110739 (code B ref -1); Mon, 11 Mar 2024 11:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Mar 2024 11:11:41 +0000 Original-Received: from localhost ([127.0.0.1]:39119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjdZE-0002n9-LU for submit@debbugs.gnu.org; Mon, 11 Mar 2024 07:11:40 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1rjdZC-0002n0-LM for submit@debbugs.gnu.org; Mon, 11 Mar 2024 07:11:39 -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 <~@wolfsden.cz>) id 1rjdYJ-0006Ok-M0 for bug-guile@gnu.org; Mon, 11 Mar 2024 07:10:49 -0400 Original-Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rjdYF-0001jg-ID for bug-guile@gnu.org; Mon, 11 Mar 2024 07:10:43 -0400 Original-Received: by wolfsden.cz (Postfix, from userid 104) id A67A228A846; Mon, 11 Mar 2024 11:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1710155432; bh=dERpVmUbRWXKeYQb1co1U8n7JRaZlPa9vhSHVRso50E=; h=Date:From:To:Subject; b=Qq7rJ6K2450P/Fm+qVHuFhrFporcYfwKeZmCn/GgChmcK9Li9T1wyEzCZmxVujLRR iFBqsh64pWY+25vcHdLaIPON49PG0IvaouxXJwvsVp0gC7YY+Z2lpbUJJ4ELFnaqoo iruc/4t2/1e1arZm4VmSj5Q2NtDLiUZnv5R6gTKrWgoQEPXaIMw05bwuoG2gwNlJ86 xMPSZojxiOTZfNgpFyXLZugB1MdfS9s4qE8g7n7pZ3pFO25gNkMPhixuTshg33UljE 4PbjygC/Hvr9QvfvSaTTrbucZenAxjAM7ldkJzUaGuqsmeFs/NLQbu1R3HyIviEp2L KFsE50YPmLIVd6EXBcHtO+xF4u/+xUptBVUZeay/D+hbYTYf2fCnXPZU+KgaSevxwD gXs+lIkpddX+E1ZJ6p3ZNgW41YKMzlJN5IvBJi9r4an3D97a0JAYLw9Csnln8BQ/7M LWUZIiO5NnoIUCBebAl0tixaIkbAFpxGwmW4l9jw8SGh3jxH0J7qljoO1CJWd5nKr5 hpSe0Mg68Gl3uVM4jCPQwwlkZih/CutA+ljmy/X75YFTVi2peVoe/ErFwoPRMVZGAA lTURCn0wycoTeU7lKwMajQvDhsubbu1yghMY7Ffpgzta/21+kUkSz8ysbNpwb9yNrb qMDVRMvSEhw+u6uFqaNfDFJE= Original-Received: from localhost (unknown [193.32.127.157]) by wolfsden.cz (Postfix) with ESMTPSA id C6B16289BB9 for ; Mon, 11 Mar 2024 11:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1710155431; bh=dERpVmUbRWXKeYQb1co1U8n7JRaZlPa9vhSHVRso50E=; h=Date:From:To:Subject; b=PDmzvzSlNqCPsOdrCK1f7eMYAg1XE/9AZO5KPKYxGr1d4U9yd5az1MSEnPQCVhQUr u47zeUzb16hg9BmeYdJoRuJ0lVM/Zb5lSfVWp3S6qJ2+cX1ysATGCZEKFzGFolp03n YMc+49utfZ81SzMz3ukuNwZ4TK/hY8RYB/rggSEEDBLOYe8m0PgTuS6TTF+b7+iy45 h3NsNUz7VxWKl2FDl4Rhdh+xguaHxpP23oDU+mGDZ5ud2P8PVMbFML2zrusBpU8Px7 XGf7314H5eqnqiiB/79P/okH2ajUyec/cckO8gAq+k316DJdYvvwAscjXY4T6qUTjg 2VB0sxnfON4MFQOJfgpcQRVg0RTVREk59hq7T7+oGEJjVbRXYm3sExBsrWSXuRYjPq Q07RT4qnMOUZgUIIoh4/CmZaruh6GoXHCGvrKHrbgKjCfmoGHv5Ah6R51w0GjhpRfe gQ8nRTWZsdqtFq/27OK9Tlsv3a0IEjCDGY1gSj+yVUv6ByyeeQFJwQw079B+3ZeDft dnRTVyFO5sZPU7FJ6B350rnvaPSwgCKLax4ZEsME7LlFz6F1PtqAJplklAAwRQXUqX cyGIJIqUYmT3dIIVgqAGhZ88RUX8o4NhG/kAkEwizLk/Uf0vtRBpLC2M9NFqhP4NFk eI555lGAbRVoVzD53C4dFH/k= Content-Disposition: inline Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:10788 Archived-At: --5cweB0RI3pMLbAFq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, When I pass #f to spawn as a port, it just segfaults: $ guile -c '(spawn "true" (list "") #:error #f)' Segmentation fault Ignoring the fact whether #f should be an accepted value (I think it would be more elegant and portable then (open-output-file "/dev/null")), I would not expect invalid value in an interpreted language to cause a segfault. If the value is indeed invalid, it should throw an error. Original report: https://emacs.ch/@kakafarm/112075808549752692 Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --5cweB0RI3pMLbAFq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXu5qcACgkQL7/ufbZ/ walFHxAArBTV2XgGC4/BYuYIdHuCS3J/0TpfICiD97rNfq1/EhYKpes+1k8wtfUq UOf35dKeuDIhGY8kXX6R9HKr2WeSmnjYBoAba12ObQGkkhoruXfCtSaG/VuY7h2x 5MYa5+ATHUBwEwIp7+HaKt1dLPVB8mbh+zNzUqNR9F3LIJjvIccX6tGnIl/9KEKf RxjgIGJGQ4FkZxnM81ljbOTWWSF/Ot0dxTozPlp22kzy04yfpnV/tTKNx0Prs8h+ Rz3Z2J2xFZsntbnGAuMux7hfjS8EcX10AuYfY8YfkSPz0koVoi7ex9dNRwGtsIvw V8fLg6/n5hVsm58Uot44lHU2gPeNtURBNTAqiBlrZVDiv7y61v5FsPInW5ZSExsh juWQxAJx8VNM7CQn7D/21ibiP7y5OifzkcyB/ymtkicfjIsoQEoaoI48Y1ghW96s E4TOK3od75NHlpUIZlCdWJLag67Y1yaf5GQuvrgOAiRdeOH4PrJIoPdHLPfp4gCn zChq8L6124eKbQzhf5tE1OGXksSdV5Q5kiHd2zUcHYUgBbzb1lcYxMJDJFFSZTzu V47Vfd7k4U9/jU9xOc8Uhe/uTtPZevu/3kS7FZ6ytmgq1wsQtGzSBjDtURkm74dx 4K6libDhYfGTGWqA4taPIpGas5WaKbtmTiDlzTiTZWy+Ux7M4nU= =F6g2 -----END PGP SIGNATURE----- --5cweB0RI3pMLbAFq--