From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Paul Eggert <eggert@cs.ucla.edu>
Newsgroups: gmane.emacs.bugs
Subject: bug#27779: #27779;
	C stack overflow from `read' on deeply nested lisp object.
Date: Thu, 2 May 2019 00:26:45 -0700
Organization: UCLA Computer Science Department
Message-ID: <1cd930be-72d6-75ba-9c8b-bd5d55e421c5@cs.ucla.edu>
References: <m2h8ad1gkv.wl%esq@lawlist.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="42134"; mail-complaints-to="usenet@blaine.gmane.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
	Thunderbird/60.6.1
Cc: 27779@debbugs.gnu.org, mail@vasilij.de
To: Keith David Bershatsky <esq@lawlist.com>,
	Noam Postavsky <npostavs@gmail.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 02 09:27:34 2019
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256)
	(Exim 4.89)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hM67w-000AmJ-Sf
	for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2019 09:27:33 +0200
Original-Received: from localhost ([127.0.0.1]:46496 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hM67v-0003XR-TN
	for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 May 2019 03:27:31 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:59290)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hM67q-0003XL-7a
	for bug-gnu-emacs@gnu.org; Thu, 02 May 2019 03:27:27 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hM67Y-0000SD-Rj
	for bug-gnu-emacs@gnu.org; Thu, 02 May 2019 03:27:14 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:60191)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1hM67S-00008l-OQ
	for bug-gnu-emacs@gnu.org; Thu, 02 May 2019 03:27:05 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hM67S-0007ZD-Ip
	for bug-gnu-emacs@gnu.org; Thu, 02 May 2019 03:27:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Paul Eggert <eggert@cs.ucla.edu>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Thu, 02 May 2019 07:27:02 +0000
Resent-Message-ID: <handler.27779.B27779.155678201829064@debbugs.gnu.org>
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.155678201829064
	(code B ref 27779); Thu, 02 May 2019 07:27:02 +0000
Original-Received: (at 27779) by debbugs.gnu.org; 2 May 2019 07:26:58 +0000
Original-Received: from localhost ([127.0.0.1]:45502 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1hM67O-0007Yh-9B
	for submit@debbugs.gnu.org; Thu, 02 May 2019 03:26:58 -0400
Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40838)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <eggert@cs.ucla.edu>) id 1hM67M-0007YO-3N
	for 27779@debbugs.gnu.org; Thu, 02 May 2019 03:26:57 -0400
Original-Received: from localhost (localhost [127.0.0.1])
	by zimbra.cs.ucla.edu (Postfix) with ESMTP id C71281618B2;
	Thu,  2 May 2019 00:26:49 -0700 (PDT)
Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1])
	by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
	with ESMTP id 4PWqTWEhDzFj; Thu,  2 May 2019 00:26:49 -0700 (PDT)
Original-Received: from localhost (localhost [127.0.0.1])
	by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2160F1618DB;
	Thu,  2 May 2019 00:26:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1])
	by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id rjWOTVtEVg1M; Thu,  2 May 2019 00:26:49 -0700 (PDT)
Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com
	[23.242.74.103])
	by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EA53B1618AF;
	Thu,  2 May 2019 00:26:48 -0700 (PDT)
In-Reply-To: <m2h8ad1gkv.wl%esq@lawlist.com>
Content-Language: en-US
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: 209.51.188.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs/>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
	<bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:158620
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/158620>

Keith David Bershatsky wrote:
> CONFIGURE:  CFLAGS='-Wall -O0 -g3' ./configure \
>              --with-ns \
>              --enable-checking='yes,glyphs' \
>              --enable-check-lisp-object-type \
>              --without-compress-install \
>              --without-makeinfo \
>              --with-gnutls=no \
>              --with-mailutils \
>              --without-makeinfo

What happens if you try it with -O2 rather than -O0?

Also, what happens if you try it without --enable-checking='yes,glyphs'?

I have a suspicion that the debugging options are blowing the stack.