From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Gerry Agbobada" Newsgroups: gmane.emacs.devel Subject: =?UTF-8?Q?[feature/native-comp]_Segfaulting_in_push_or_nreverse=C2=A0=3F?= Date: Mon, 30 Nov 2020 17:47:10 +0100 Message-ID: <457a0d97-fdaa-473e-9f7a-257d5792d70c@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=9ea6fc53d1c54e0cadc577e90d74daad Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2792"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.3.0-622-g4a97c0b-fm-20201115.001-g4a97c0b3 To: "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 30 19:05:34 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kjnYL-0000cp-MK for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 19:05:33 +0100 Original-Received: from localhost ([::1]:52410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnYK-0002tq-OV for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Nov 2020 13:05:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjmMv-00043y-95 for emacs-devel@gnu.org; Mon, 30 Nov 2020 11:49:41 -0500 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:59729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjmMs-0004Mh-Ni for emacs-devel@gnu.org; Mon, 30 Nov 2020 11:49:41 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 81E79FA7 for ; Mon, 30 Nov 2020 11:49:35 -0500 (EST) Original-Received: from imap9 ([10.202.2.59]) by compute1.internal (MEProxy); Mon, 30 Nov 2020 11:49:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gagbo.net; h= mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=8c5QCeGh9bs2Bn6l0Bqe7g1y5jASVtPhvyQBzwHoPpQ=; b=ptrnmYGx qbC9ehbCupJvNHvGcaD0k3gbF7/PQfIOE5ZjlSS7Yq1X3ESW9nLfS0DBto1uuCMi TS93M0p2yAfhWXVGd4dIttmpgD/6IwnWGKUNm3HCVUs+mrXgXAzjCU+j+Swe3a+v 0PVAOX04qRs0Fcxwjf7IahZyDgEvtY97AmbGhPFZtg3CliAT2VgDtGmH/kBmMW+k ICYlSkJskV5Phsb8t3L0GUu291TvGhL8aVh7Uimeeff/DYMApEEfC+iQOk4Siren kJkUaDdY2xUlCczRmpwNSu/xlFAgr8F9ecjdyJnD/WocmyxzJPtNFuMuyanOVdlk xAKBZ63SrNs95g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=8c5QCeGh9bs2Bn6l0Bqe7g1y5jASV tPhvyQBzwHoPpQ=; b=ojf4wXleh6iGBZF5oVEPZLHZZUT+CjNVyekYxCApMxrv0 13xOwtFSaKXWlTDfObejBAAmTACrNMmGT2H+oMMHaRd1ObSMJxciO/hcTUj4uBRC VZOLUyQ1Km1TptKrJaiJ51donLfeH3HVHfPQx5ESTNoNWf2tKyjQVJ1zRhsYjghm rFKXnz5jpmNQl7lWkRuuNoI6HUi3blShYlebiLpLIYk/m9HnBNKeqnva2mWmMlpl lddmjjMIjAfWuk7aJY5UPIwcNwukjq9V7yBZ2A2N6ZxQImUnWsQci64CjN0kcNvC MDwVJ8Xj8zNonRhp3/IxakhREkQDjyat8JhtZhhnw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeitddgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkfffhvffutgesmhdtreerreerjeenucfhrhhomhepfdfivghrrhih ucetghgsohgsrggurgdfuceoghgvrhhrhiesghgrghgsohdrnhgvtheqnecuggftrfgrth htvghrnhepteehkeekteeuueehiedtffehveetgfefffdtkefhveetgeeggfevhfeuiefg feefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepgh gvrhhrhiesghgrghgsohdrnhgvth X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9407E1C006D; Mon, 30 Nov 2020 11:49:34 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=64.147.123.25; envelope-from=gerry@gagbo.net; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 30 Nov 2020 13:03:13 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260084 Archived-At: --9ea6fc53d1c54e0cadc577e90d74daad Content-Type: multipart/alternative; boundary=ac9433bda8554081b55218ad97c00096 --ac9433bda8554081b55218ad97c00096 Content-Type: text/plain Hello, I've been using native-comp for a while and thanks for that. I think I found an issue with a seemingly simple function that only uses basic elisp procedures. * Issue When I run a specific rustic.el function while native-compiled, emacs segfaults; whereas if I delete the .eln file (rustic-flycheck.eln) and use the byte-compiled file instead, the function works as advertised. I've included the basic code to trigger the segfault and the source of the function for easier inspection * Reproduction 1) Install rustic.el 2) Native compile rustic.el 3) Run emacs -l rustic-segfault.el Regards, Gerry --ac9433bda8554081b55218ad97c00096 Content-Type: text/html
Hello,

I've been using native-comp for a while and thanks for that. I think I found an issue with a seemingly simple function that only uses basic elisp procedures.

* Issue

When I run a specific rustic.el function while native-compiled, emacs segfaults; whereas if I delete the .eln file (rustic-flycheck.eln) and use the byte-compiled file instead, the function works as advertised.

I've included the basic code to trigger the segfault and the source of the function for easier inspection

* Reproduction

1) Install rustic.el
2) Native compile rustic.el
3) Run emacs -l rustic-segfault.el

Regards,
Gerry

--ac9433bda8554081b55218ad97c00096-- --9ea6fc53d1c54e0cadc577e90d74daad Content-Disposition: attachment;filename="rustic-segfault.el" Content-Type: text/x-emacs-lisp; name="rustic-segfault.el" Content-Transfer-Encoding: BASE64 KHJlcXVpcmUgJ3J1c3RpYy1mbHljaGVjaykKOzsgQWRkcyAoL3RtcC90ZXN0L2ZvbyAvdG1w L3Rlc3QpIHVubGVzcyBuYXRpdmUtY29tcGlsZWQKOzsgU2VnZmF1bHRzIHdoZW4gbmF0aXZl LWNvbXBpbGVkCihtZXNzYWdlICIlcyIgKHJ1c3RpYy1mbHlj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