* Random bus error
@ 2015-01-09 7:41 blacknwhite77
2015-01-09 13:50 ` Doug Lewan
[not found] ` <mailman.17524.1420811425.1147.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: blacknwhite77 @ 2015-01-09 7:41 UTC (permalink / raw)
To: help-gnu-emacs
Every couple of days, unexpectedly and without any specific trigger emacs crashes with bus error message in terminal. I have an elaborate "non optimized" .emacs file.
How should I go about debugging the issue?
I am using GNU Emacs 24.3.1, on Solaris operating system. GNU Emacs 24.3.1 (sparc-sun-solaris2.10, GTK+ Version 2.10.13)
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Random bus error
2015-01-09 7:41 Random bus error blacknwhite77
@ 2015-01-09 13:50 ` Doug Lewan
[not found] ` <mailman.17524.1420811425.1147.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Doug Lewan @ 2015-01-09 13:50 UTC (permalink / raw)
To: blacknwhite77@gmail.com, help-gnu-emacs@gnu.org
A few things come to mind right away.
1. Run emacs -Q to get a pure, minimal emacs.
If that crashes, then it is indeed an issue restricted to emacs. (And see point 2.)
You probably still want your customizations, so
2. Run emacs under a debugger.
When there's a crash grab whatever stack information you can.
In gdb(1GNU) the magic incantation is `thread apply all bt'.
Your debugger may be different.
3. (setq debug-on-error t) will show you certain extreme errors in your non-optimized .emacs.
They may not be the immediate source of the crash,
but fixing them will eliminate distracting failures.
Hope this helps.
--
,Doug
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224 or ext 4335
"This is a slow pup," he said continuing his ascent.
> -----Original Message-----
> On
> Behalf Of blacknwhite77
> Subject: Random bus error
>
> Every couple of days, unexpectedly and without any specific trigger
> emacs crashes with bus error message in terminal. I have an elaborate
> "non optimized" .emacs file.
> How should I go about debugging the issue?
>
> I am using GNU Emacs 24.3.1, on Solaris operating system. GNU Emacs
> 24.3.1 (sparc-sun-solaris2.10, GTK+ Version 2.10.13)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Random bus error
[not found] ` <mailman.17524.1420811425.1147.help-gnu-emacs@gnu.org>
@ 2015-01-09 18:14 ` blacknwhite77
2015-01-10 6:10 ` Alexis
0 siblings, 1 reply; 4+ messages in thread
From: blacknwhite77 @ 2015-01-09 18:14 UTC (permalink / raw)
To: help-gnu-emacs
Thank you for your response.
1. I have other emacs sessions open for a while with no issue. It seems a recent change in .emacs triggered the problem.
2. I have very little knowledge of emacs debugger. Is there documentation somewhere on how to run emacs under a debugger?
Also, as I mentioned earlier, this crash is very random and nothing in specific triggers it, so I am not sure how running under a debugger might help.
3. This seems to be the closest to what might help.
I did set the debug-on-error value in my .emacs, but my question is once the app crashes where do I find the crash log?
Thanks again.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Random bus error
2015-01-09 18:14 ` blacknwhite77
@ 2015-01-10 6:10 ` Alexis
0 siblings, 0 replies; 4+ messages in thread
From: Alexis @ 2015-01-10 6:10 UTC (permalink / raw)
To: help-gnu-emacs
blacknwhite77@gmail.com writes:
> 2. I have very little knowledge of emacs debugger. Is there
> documentation somewhere on how to run emacs under a debugger?
See the file etc/DEBUG.
> Also, as I mentioned earlier, this crash is very random and nothing in
> specific triggers it, so I am not sure how running under a debugger
> might help.
Running Emacs under e.g. gdb can allow one to query for information
about the call stack, values of various variables etc. immediately after
the crash has happened, and before such information is irretrievably
lost.
> 3. This seems to be the closest to what might help. I did set the
> debug-on-error value in my .emacs, but my question is once the app
> crashes where do I find the crash log?
`debug-on-error` is more for debugging Emacs Lisp, presenting
debugging-related information in a new buffer whilst Emacs is still
running. App crashes are probably more likely to be occurring at the C
level, hence the need to run Emacs under a C debugger such as gdb - as
distinct from using the ELisp debugging facilities built-in to Emacs
(e.g. EDebug), which one uses from within Emacs itself.
Alexis.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-10 6:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 7:41 Random bus error blacknwhite77
2015-01-09 13:50 ` Doug Lewan
[not found] ` <mailman.17524.1420811425.1147.help-gnu-emacs@gnu.org>
2015-01-09 18:14 ` blacknwhite77
2015-01-10 6:10 ` Alexis
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).