From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: p.stephani2@gmail.com, 27642@debbugs.gnu.org
Subject: bug#27642: 26.0.50; Assertion failure with nested load
Date: Thu, 13 Jul 2017 11:24:10 -0700 [thread overview]
Message-ID: <e7c57d46-7864-1959-7e7a-d59f9a1c769c@cs.ucla.edu> (raw)
In-Reply-To: <83lgnsgqg6.fsf@gnu.org>
On 07/13/2017 11:08 AM, Eli Zaretskii wrote:
> Doesn't that get in the
> way of the outer call, if it then tries to resume its readevalloop?
The outer call reassigns its own value to the 'infile' static variable
before resuming the loop. This reassignment was needed even before my
recent lread.c changes (the static variable was called 'instream' back
then). A reassignment is needed because the outer call cannot continue
to read from a closed FILE * value, as that would have undefined behavior.
Admittedly this structure is rickety. lread.c should be made reentrant.
But that would be a bigger project.
next prev parent reply other threads:[~2017-07-13 18:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-10 15:45 bug#27642: 26.0.50; Assertion failure with nested load Philipp Stephani
2017-07-12 14:52 ` Eli Zaretskii
2017-07-12 21:25 ` Paul Eggert
2017-07-13 18:08 ` Eli Zaretskii
2017-07-13 18:24 ` Paul Eggert [this message]
2017-07-13 19:06 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e7c57d46-7864-1959-7e7a-d59f9a1c769c@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=27642@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=p.stephani2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).