unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: npostavs@users.sourceforge.net
Cc: 27571@debbugs.gnu.org
Subject: bug#27571: Crashing when printing a lisp object.
Date: Mon, 03 Jul 2017 19:32:52 -0700	[thread overview]
Message-ID: <m24lutvsmj.wl%esq@lawlist.com> (raw)
In-Reply-To: <m260f9vuyz.wl%esq@lawlist.com>

Thank you, @npostavs, for taking a look at this issue.  The 26-count example (which does *not* crash) is a mini-version of the 6651-count example that I am using to replicate the crash.  It may not possible to create a copy of the 6652-count example that crashes, because Emacs crashes before `prin1` can finish.  The 6651-count example does *not* crash.  I'll continue reading about how to increase the ulimit on OSX and try to find out whether this is a system-wide setting, or whether it can be done inside Emacs without modifying the system settings.

Last login: Mon Jul  3 17:31:55 on ttys000
server:~ HOME$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1250
virtual memory          (kbytes, -v) unlimited
server:~ HOME$ 

I load the 6651-count example using `read`, then I type a character, then I transfer the most recent entry from the buffer-undo-list to the undo tree history (in this case just one character breaks the camel's back) and then Emacs will crash if I call `prin1` on the history variable with `print-circle` set to `t`.

I will work on trying to come up with a way to create the 6652-count example that doesn't involve using the custom version of undo-tree to go from a count of 6651 to a count of 6652.

In terms of the reference to line 1350, I'm not sure what that refers to.  The undo-tree history variable is buffer local, and I call `(prin1 my-history-variable (current-buffer))` and the current buffer is just a temp buffer that never gets populated because Emacs crashes.  Or, at least, I never get to see the temporary buffer before Emacs crashes.

Keith





  parent reply	other threads:[~2017-07-04  2:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-04  1:42 bug#27571: Crashing when printing a lisp object Keith David Bershatsky
2017-07-04  2:05 ` npostavs
2017-07-04  2:32 ` Keith David Bershatsky [this message]
2017-07-04  3:32   ` npostavs
2020-08-24 14:11     ` Lars Ingebrigtsen
2020-10-01  1:59       ` Lars Ingebrigtsen
2017-07-04  3:49 ` Keith David Bershatsky
2017-07-07  2:46   ` npostavs
2017-07-26  1:14 ` Keith David Bershatsky
2018-01-09  1:38 ` bug#27571: #27571; C stack overflow from `prin1' on deeply nested " Keith David Bershatsky
2018-01-09  7:53   ` Paul Eggert
2018-01-09 12:58   ` bug#27571: " Noam Postavsky
2018-01-09 16:33 ` bug#27571: #27571; " Keith David Bershatsky
2018-01-09 16:43 ` bug#27571: " Keith David Bershatsky
2018-01-28 21:45   ` Noam Postavsky
2018-01-28 23:23 ` Keith David Bershatsky
2018-01-28 23:43   ` Noam Postavsky
2018-01-28 23:49 ` Keith David Bershatsky
2018-01-29  0:13   ` Noam Postavsky
2018-01-29  4:26 ` Keith David Bershatsky

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=m24lutvsmj.wl%esq@lawlist.com \
    --to=esq@lawlist.com \
    --cc=27571@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    /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).