From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#27779: 26.0.50: read -- Re-entering top level after C stack overflow Date: Sun, 23 Jul 2017 15:28:40 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Sun_Jul_23_15:28:40_2017-1" X-Trace: blaine.gmane.org 1500848958 31595 195.159.176.226 (23 Jul 2017 22:29:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Jul 2017 22:29:18 +0000 (UTC) Cc: 27779@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 24 00:29:14 2017 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 1dZPN8-0007bJ-PL for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jul 2017 00:29:11 +0200 Original-Received: from localhost ([::1]:51759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZPN9-0000UN-9N for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jul 2017 18:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZPN4-0000UI-Am for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 18:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZPN0-0004YC-B1 for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 18:29:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZPN0-0004Y2-1l for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 18:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dZPMz-0007fl-OW for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2017 18:29:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jul 2017 22:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27779 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 27779-submit@debbugs.gnu.org id=B27779.150084892529471 (code B ref 27779); Sun, 23 Jul 2017 22:29:01 +0000 Original-Received: (at 27779) by debbugs.gnu.org; 23 Jul 2017 22:28:45 +0000 Original-Received: from localhost ([127.0.0.1]:53692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZPMj-0007fG-Ey for submit@debbugs.gnu.org; Sun, 23 Jul 2017 18:28:45 -0400 Original-Received: from gateway22.websitewelcome.com ([192.185.47.65]:45346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZPMh-0007f8-HI for 27779@debbugs.gnu.org; Sun, 23 Jul 2017 18:28:44 -0400 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway22.websitewelcome.com (Postfix) with ESMTP id CE85973EC5 for <27779@debbugs.gnu.org>; Sun, 23 Jul 2017 17:28:41 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id ZPLydmxd87GnJZPLydYEKX; Sun, 23 Jul 2017 17:27:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2bui22gQMdvjxV+h04MDKFbQZ3z/g611mmz3RgVQEqc=; b=KBUVztGHrhPQ0vVZp0WOWI1zFO +T6W/fAfpaeCE274WeL0BpmYD/MjuwA//yLe3j1x90B9s1qk9oHU/1VkVfuOaN7VyT4KGIG6mJLcP M9Gd3YmYq/r7Ijn7Oi3xQuDi02nwUfNBcE1SZ7xwGZPuwQvw0o1oJmtWzVFqiutMJTvcKAFWSWpxH 3mWiCOnbtqzsfP2hXpVkBlRW65SPYxde534n8S5/em7H0Xhkd2CWyij8hl+G9JDzTHcXIHQhHLGhf pR6/RX9d2zMpDpHRqaYrAeie3MMjrlgLpQViBgUwrhCxbqBD6JodLRe5DFjCVUNnZsK/BhouB87bl raUlVnUA==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:54695 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1dZPMf-000WEL-0N; Sun, 23 Jul 2017 17:28:41 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Exim-ID: 1dZPMf-000WEL-0N X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:54695 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes 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:134898 Archived-At: --Multipart_Sun_Jul_23_15:28:40_2017-1 Content-Type: text/plain; charset=US-ASCII This is a work in progress, but here is a partial: The first time I see a break in the prior expected behavior was on 11/19/2017 (c61ee94959ba96b2a327df0684593f7e569e30be) when portions of Emacs 25 were merged with the master branch and `emacs.c` was modified. Here is a partial reversal of the code that broke the ability to avoid a stack overflow by setting `ulimit -S -s unlimited`. The patch applies to the above-mentioned head -- i.e., the patch will apply following a hard reset. I have not yet been able to follow the subsequent breaks to avoid a stack overflow with the current master branch. --Multipart_Sun_Jul_23_15:28:40_2017-1 Content-Type: application/diff; type=patch Content-Disposition: attachment; filename="patch_5e2ae74df54d4090c591c79ab13e7713c6654b9c.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9lbWFjcy5jIGIvc3JjL2VtYWNzLmMKaW5kZXggMGZlYzcxNi4uMGNl YzAyZiAxMDA2NDQKLS0tIGEvc3JjL2VtYWNzLmMKKysrIGIvc3JjL2VtYWNzLmMKQEAgLTY3Niw3 ICs2NzYsMTAgQEAgbWFpbiAoaW50IGFyZ2MsIGNoYXIgKiphcmd2KQogICBib29sIGRvX2luaXRp YWxfc2V0bG9jYWxlOwogICBib29sIGR1bXBpbmc7CiAgIGludCBza2lwX2FyZ3MgPSAwOwotICBi b29sIG5vX2xvYWR1cCA9IGZhbHNlOworI2lmZGVmIEhBVkV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Q1lHV0lOICovCiAK --Multipart_Sun_Jul_23_15:28:40_2017-1--