GNU bug report logs - #26982
25.2; emacs crashes after lisp started

Previous Next

Package: emacs;

Reported by: Pete Bonasso <bonasso <at> traclabs.com>

Date: Thu, 18 May 2017 15:16:01 UTC

Severity: normal

Tags: moreinfo, wontfix

Found in version 25.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26982 in the body.
You can then email your comments to 26982 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Thu, 18 May 2017 15:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pete Bonasso <bonasso <at> traclabs.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 18 May 2017 15:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pete Bonasso <bonasso <at> traclabs.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; emacs crashes after lisp started
Date: Thu, 18 May 2017 09:46:55 -0500
From: Pete Bonasso <bonasso <at> MacBook-Pro.local>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; emacs crashes after lisp started
--text follows this line--

1) start emacs.
2) ctrl-x l to start lisp in a *common-lisp* buffer (I use ACL 10.1)
3) click on any menu (e.g., edit, options, tools)
4) emacs will crash with the single line of output on the cmd line:
"objc[17271]: Invalid or prematurely-freed autorelease pool 0x104002140."


In GNU Emacs 25.2.1 (x86_64-apple-darwin16.6.0, NS appkit-1504.83 
Version 10.12.5 (Build 16F73))
 of 2017-05-16 built on MacBook-Pro.local
Windowing system distributor 'Apple', version 10.3.1504
Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/usr/local/share/emacs/site-lisp
 --infodir=/usr/local/Cellar/emacs/25.2/share/info/emacs
 --prefix=/usr/local/Cellar/emacs/25.2 --without-x --with-xml2
 --without-dbus --without-gnutls --without-imagemagick --with-ns
 --disable-ns-self-contained'

Configured features:
NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Common Lisp

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Loading 
/Applications/AllegroCL64.app/Contents/Resources/eli/fi-manual.elc...
Loading 
/Applications/AllegroCL64.app/Contents/Resources/eli/fi-manual-data.elc...done
Loading 
/Applications/AllegroCL64.app/Contents/Resources/eli/fi-manual.elc...done
Loading 
/Applications/AllegroCL64.app/Contents/Resources/eli/fi-emacs21.elc...done
Loading 
/Applications/AllegroCL64.app/Contents/Resources/eli/fi-site-init.el 
(source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
package specification is ‘cl-user’
Please type y, n, or !: y
package specification is ‘cl-user’

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
vc-dispatcher vc-svn slime-autoloads fi-site-init fi-manual
allegro-manual-data thingatpt browse-url sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils add-log advice etags
xref cl-seq project eieio byte-opt bytecomp byte-compile cl-extra
help-mode easymenu cconv eieio-core ring cl-macs cl gv cl-loaddefs pcase
cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote kqueue cocoa ns
multi-tty make-network-process emacs)

Memory information:
((conses 16 230381 7322)
 (symbols 48 26669 0)
 (miscs 40 89 266)
 (strings 32 33654 7204)
 (string-bytes 1 1163082)
 (vectors 16 37697)
 (vector-slots 8 704228 4552)
 (floats 8 234 36)
 (intervals 56 332 7)
 (buffers 976 20))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Thu, 18 May 2017 20:34:02 GMT) Full text and rfc822 format available.

Message #8 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Pete Bonasso <bonasso <at> traclabs.com>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Thu, 18 May 2017 21:33:33 +0100
On Thu, May 18, 2017 at 09:46:55AM -0500, Pete Bonasso wrote:
> 1) start emacs.
> 2) ctrl-x l to start lisp in a *common-lisp* buffer (I use ACL 10.1)
> 3) click on any menu (e.g., edit, options, tools)
> 4) emacs will crash with the single line of output on the cmd line:
> "objc[17271]: Invalid or prematurely-freed autorelease pool 0x104002140."

Hi Pete, thanks for reporting this.

Is there any chance you could try the master branch or a nightly
build? There have been a few crash fixes made in it.

-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Thu, 18 May 2017 20:49:01 GMT) Full text and rfc822 format available.

Message #11 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Pete Bonasso <bonasso <at> traclabs.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Thu, 18 May 2017 15:38:31 -0500
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Thu, 18 May 2017 21:07:02 GMT) Full text and rfc822 format available.

Message #14 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Pete Bonasso <bonasso <at> traclabs.com>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Thu, 18 May 2017 22:05:54 +0100
On Thu, May 18, 2017 at 03:38:31PM -0500, Pete Bonasso wrote:
> > Is there any chance you could try the master branch or a nightly
> > build? There have been a few crash fixes made in it.
> 
>     Yes I can, but how do I do that?  Right now I use:  <br>
>     <br>
>     brew install emacs --with-cocoa<br>
>     <br>
>     which I thought gets the latest version.<br>
>     <br>
>     FYI, the universal binary for the Mac, Emacs-25.2-universal.dmg,
>     does NOT have this problem.<br>
>     Pete<br>

Hmmmm, stranger and stranger. I would expect the binary to be
essentially identical to the homebrew version.

I believe you can build the master branch in homebrew using:

    brew install emacs --HEAD --with-cocoa
-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Thu, 18 May 2017 21:11:02 GMT) Full text and rfc822 format available.

Message #17 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Pete Bonasso <bonasso <at> traclabs.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Thu, 18 May 2017 16:10:11 -0500
Alan Third wrote:
> On Thu, May 18, 2017 at 03:38:31PM -0500, Pete Bonasso wrote:
>>> Is there any chance you could try the master branch or a nightly
>>> build? There have been a few crash fixes made in it.
>>      Yes I can, but how do I do that?  Right now I use:  <br>
>>      <br>
>>      brew install emacs --with-cocoa<br>
>>      <br>
>>      which I thought gets the latest version.<br>
>>      <br>
>>      FYI, the universal binary for the Mac, Emacs-25.2-universal.dmg,
>>      does NOT have this problem.<br>
>>      Pete<br>
> Hmmmm, stranger and stranger. I would expect the binary to be
> essentially identical to the homebrew version.
Exactly...
>
> I believe you can build the master branch in homebrew using:
>
>      brew install emacs --HEAD --with-cocoa
I'll give it a shot and get back to you.
Pete





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Thu, 18 May 2017 22:14:01 GMT) Full text and rfc822 format available.

Message #20 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Pete Bonasso <bonasso <at> traclabs.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Thu, 18 May 2017 17:13:51 -0500
Alan,

Okay, I made emacs from HEAD, but the same problem occurs, and there are 
other things that are flakey (the Lisp version doesn't show and the 
menus don't have all the options (before I start lisp)), so I went back 
to the stable version.

But here's an interesting observation: on my macbook-pro I can do fn-10 
and the menus show up as a drop down in my emacs window -- and they all 
work!

So I guess that means the problem is related to the interface with the 
mac, maybe with xcode?

Pete

> Alan Third wrote:
>> On Thu, May 18, 2017 at 03:38:31PM -0500, Pete Bonasso wrote:
>>>> Is there any chance you could try the master branch or a nightly
>>>> build? There have been a few crash fixes made in it.
>>>      Yes I can, but how do I do that?  Right now I use: <br>
>>>      <br>
>>>      brew install emacs --with-cocoa<br>
>>>      <br>
>>>      which I thought gets the latest version.<br>
>>>      <br>
>>>      FYI, the universal binary for the Mac, Emacs-25.2-universal.dmg,
>>>      does NOT have this problem.<br>
>>>      Pete<br>
>> Hmmmm, stranger and stranger. I would expect the binary to be
>> essentially identical to the homebrew version.
> Exactly...
>>
>> I believe you can build the master branch in homebrew using:
>>
>>      brew install emacs --HEAD --with-cocoa
> I'll give it a shot and get back to you.
> Pete
>





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Fri, 19 May 2017 22:58:01 GMT) Full text and rfc822 format available.

Message #23 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Pete Bonasso <bonasso <at> traclabs.com>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Fri, 19 May 2017 23:57:02 +0100
On Thu, May 18, 2017 at 05:13:51PM -0500, Pete Bonasso wrote:
> Alan,
> 
> Okay, I made emacs from HEAD, but the same problem occurs, and there are
> other things that are flakey (the Lisp version doesn't show and the menus
> don't have all the options (before I start lisp)), so I went back to the
> stable version.
> 
> But here's an interesting observation: on my macbook-pro I can do fn-10 and
> the menus show up as a drop down in my emacs window -- and they all work!
> 
> So I guess that means the problem is related to the interface with the mac,
> maybe with xcode?

It could be worth updating to the latest versions of everything. I
don’t know.

Are you able to run Emacs in a debugger and get a backtrace when it
crashes?

-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Mon, 22 May 2017 16:48:02 GMT) Full text and rfc822 format available.

Message #26 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Pete Bonasso <bonasso <at> traclabs.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Mon, 22 May 2017 11:47:44 -0500
I'm swamped right now, but will look for some time. Could you point me 
to the steps on how to do that?

> On Thu, May 18, 2017 at 05:13:51PM -0500, Pete Bonasso wrote:
>> Alan,
>>
>> Okay, I made emacs from HEAD, but the same problem occurs, and there are
>> other things that are flakey (the Lisp version doesn't show and the menus
>> don't have all the options (before I start lisp)), so I went back to the
>> stable version.
>>
>> But here's an interesting observation: on my macbook-pro I can do fn-10 and
>> the menus show up as a drop down in my emacs window -- and they all work!
>>
>> So I guess that means the problem is related to the interface with the mac,
>> maybe with xcode?
> It could be worth updating to the latest versions of everything. I
> don’t know.
>
> Are you able to run Emacs in a debugger and get a backtrace when it
> crashes?
>





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26982; Package emacs. (Sat, 27 May 2017 10:39:02 GMT) Full text and rfc822 format available.

Message #29 received at 26982 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Pete Bonasso <bonasso <at> traclabs.com>
Cc: 26982 <at> debbugs.gnu.org
Subject: Re: bug#26982: 25.2; emacs crashes after lisp started
Date: Sat, 27 May 2017 11:38:27 +0100
On Mon, May 22, 2017 at 11:47:44AM -0500, Pete Bonasso wrote:
> > On Thu, May 18, 2017 at 05:13:51PM -0500, Pete Bonasso wrote:
> > Are you able to run Emacs in a debugger and get a backtrace when it
> > crashes?
> > 
> I'm swamped right now, but will look for some time. Could you point me to
> the steps on how to do that?

On macOS the easiest way is probably to use lldb. You’d do something
like

    $ lldb /path/to/Emacs
    > run

and once it crashes:

    > bt all

for the backtrace.

It would be best if you could build with debug info. The instructions
for that are in etc/DEBUG.

http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/DEBUG
-- 
Alan Third




Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 08 Jan 2019 20:50:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 26982 <at> debbugs.gnu.org and Pete Bonasso <bonasso <at> traclabs.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 08 Jan 2019 20:50:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Feb 2019 12:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.