From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#31238: Dynamic Module Crash Date: Fri, 21 Sep 2018 19:16:44 +0200 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006aa885057664ceee" X-Trace: blaine.gmane.org 1537550209 20524 195.159.176.226 (21 Sep 2018 17:16:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2018 17:16:49 +0000 (UTC) Cc: 31238@debbugs.gnu.org To: =?UTF-8?Q?Tu=E1=BA=A5n?= Anh =?UTF-8?Q?Nguy=E1=BB=85n?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 19:16:45 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3P2m-0005Aq-9z for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2018 19:16:40 +0200 Original-Received: from localhost ([::1]:56677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3P4s-0005W1-Ut for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2018 13:18:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3P49-0005Cm-RQ for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 13:18:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3P47-0006up-2v for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 13:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3P46-0006uI-Sb for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 13:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g3P46-0006Nd-Hd for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Sep 2018 17:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31238 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31238-submit@debbugs.gnu.org id=B31238.153755022424432 (code B ref 31238); Fri, 21 Sep 2018 17:18:02 +0000 Original-Received: (at 31238) by debbugs.gnu.org; 21 Sep 2018 17:17:04 +0000 Original-Received: from localhost ([127.0.0.1]:48427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3P38-0006Lx-W2 for submit@debbugs.gnu.org; Fri, 21 Sep 2018 13:17:03 -0400 Original-Received: from mail-ot1-f54.google.com ([209.85.210.54]:33724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3P37-0006LK-6e for 31238@debbugs.gnu.org; Fri, 21 Sep 2018 13:17:01 -0400 Original-Received: by mail-ot1-f54.google.com with SMTP id i10-v6so13755330oth.0 for <31238@debbugs.gnu.org>; Fri, 21 Sep 2018 10:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LomAXdtworMbt97PSIPV/5vNTXDxkfYtXY/EUTO9mUU=; b=ri86Xi7ERv6H041JvAMgLMCi2b5R1qYoiFlQ7wnv4rKHAuch00BzdoNjPEJxzJVRdJ uGCJDgIy69f64sjUdLJEaCkJp8XGphhs6yN6iQ+eoi90HJm+u1ozxOZaMj5VPQoFEBQg 159h7mPXYfnvLuzwl5pnIL5P+N+pfiVe1ynLgAbwdJ9ygCx3ZtbfJ+b4SgpNPx6G30Rb +r7Aiplfs4oDbEbRw6uT6dDyS862A3dvPASScolUX9bHiCNQDhDgkOAhIjmxN0iPcwGZ /prLNDjaiViO5cb7iRR/vFRgTJXz119oha2Kn/KhbdTq+D14gBNYeTG6CBz3eskQrXiI VemQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LomAXdtworMbt97PSIPV/5vNTXDxkfYtXY/EUTO9mUU=; b=MDeTckMlCfj1KRGCFhQNMgo8Q8uE1HjTC3V6SF7aAhQ3wxaM+YqCquZMiR6Os0kFIQ hja58mq4OLcgjFgxZCzTOFjiAl3hHFv15sPfP/caW/JUWQaYHuteLTKOHU1qbSL2hZJp 5kr2KUOwHTlHZCYlo+TOxrnxlJj7DUP5GVMmlQ5jk+24gG98uLJbiFpsIoHDp/8gpyNJ zeSz3hA5lN7xdxYFXYt6gPZvIwgdUnTwIsO3mlBKfmYZdtylr+AkGJObviKe/0Owyd6m oMB6WmDPF+ygOdbyIEf7AIe9eGzWb94R8s6/P7CuQ3YRElun9A3EI89XdwFS3hH62RaC wnSQ== X-Gm-Message-State: APzg51Dl20WKke9MrQV829BuOzZS3yUC3AV2nrNOuig0tRBUquPZ2ZOD Evnz4e6CjTaxt+46EFaSIe7wxseN9BjE8M8dH4Q= X-Google-Smtp-Source: ANB0VdZCBo5rxKYPTYHknh2jjrLGuktoHBQ9xCxdzbL0C09Ikd0pTIW2NHDAWU1aRUa6J5R9TtFWoY1VMMoLuFzP0+Y= X-Received: by 2002:a9d:2868:: with SMTP id h37-v6mr14707759otd.42.1537550215455; Fri, 21 Sep 2018 10:16:55 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150531 Archived-At: --0000000000006aa885057664ceee Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Philipp Stephani schrieb am Di., 24. Apr. 2018 um 16:08 Uhr: > Tu=E1=BA=A5n Anh Nguy=E1=BB=85n schrieb am So., 22.= Apr. 2018 um > 18:32 Uhr: > >> Emacs 25.3.1 crashes with a segfault when trying to print a value >> constructed (in certain ways) by a dynamic module. >> >> Reproduction: https://github.com/ubolonton/emacs-module-crash >> >> Context: https://github.com/ubolonton/emacs-module-rs/issues/2 >> >> > This might be caused by commit 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a, > which removed GC protection for module-allocated values. > Unless anybody complains, I'll revert that commit. Modules can store/use emacs_value objects in arbitrary ways; there's no way we can rely on stack scanning to reliably find them. --0000000000006aa885057664ceee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Philip= p Stephani <p.stephani2@gmail.c= om> schrieb am Di., 24. Apr. 2018 um 16:08=C2=A0Uhr:
Tu=E1=BA=A5n Anh Nguy=E1=BB=85n <ubolonton@gmail.com> schrieb am So., 22= . Apr. 2018 um 18:32=C2=A0Uhr:
Emacs 25.3.1 crashes with a segfault when trying to = print a value constructed (in certain ways) by a dynamic module.

Reproduction: https://github.com/ubolonton/emacs-module-crash
=
Context: https://github.com/ubolonton/emacs-module-rs/is= sues/2


=
This might be = caused by commit=C2=A03eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a, which remov= ed GC protection for module-allocated values.=C2=A0

Unless anybody complains, I'll revert that c= ommit. Modules can store/use emacs_value objects in arbitrary ways; there&#= 39;s no way we can rely on stack scanning to reliably find them.=C2=A0
--0000000000006aa885057664ceee--