unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* debugging core dump
@ 2017-04-11 13:16 Phillip Lord
  2017-04-11 13:28 ` Eli Zaretskii
  2017-04-11 13:32 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Phillip Lord @ 2017-04-11 13:16 UTC (permalink / raw)
  To: emacs-devel



I'm trying to build emacs-25.1 from tagged version in repo. But I am
getting a core dump during generation of bootstrap-emacs. This seems
entirely repeatable.

I have both emacs-25 head and master building. I have also had
emacs-25.1 building on other machines. Not sure how to debug this;
advice welcome.

Phil



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: debugging core dump
  2017-04-11 13:16 debugging core dump Phillip Lord
@ 2017-04-11 13:28 ` Eli Zaretskii
  2017-04-11 13:32 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2017-04-11 13:28 UTC (permalink / raw)
  To: Phillip Lord; +Cc: emacs-devel

> From: phillip.lord@russet.org.uk (Phillip Lord)
> Date: Tue, 11 Apr 2017 14:16:54 +0100
> 
> I'm trying to build emacs-25.1 from tagged version in repo. But I am
> getting a core dump during generation of bootstrap-emacs. This seems
> entirely repeatable.
> 
> I have both emacs-25 head and master building. I have also had
> emacs-25.1 building on other machines. Not sure how to debug this;
> advice welcome.

Can you show the backtrace from the core dump?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: debugging core dump
  2017-04-11 13:16 debugging core dump Phillip Lord
  2017-04-11 13:28 ` Eli Zaretskii
@ 2017-04-11 13:32 ` Stefan Monnier
  2017-04-11 17:11   ` Phillip Lord
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2017-04-11 13:32 UTC (permalink / raw)
  To: emacs-devel

> I have both emacs-25 head and master building. I have also had
> emacs-25.1 building on other machines. Not sure how to debug this;
> advice welcome.

Here's what I do, in those cases:

   M-x cd .../emacs/src
   M-x gud-gdb RET gdb ... temacs RET
   b maybe_call_debugger
   r -batch  -l loadup dump
   [...crash...]
   bt

the `r` line may need to be adjusted depending on whether the crash
happens for the generation of src/bootstrap-emacs or src/emacs: I just
copy&paste it from the failed build.


        Stefan




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: debugging core dump
  2017-04-11 13:32 ` Stefan Monnier
@ 2017-04-11 17:11   ` Phillip Lord
  0 siblings, 0 replies; 4+ messages in thread
From: Phillip Lord @ 2017-04-11 17:11 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I have both emacs-25 head and master building. I have also had
>> emacs-25.1 building on other machines. Not sure how to debug this;
>> advice welcome.
>
> Here's what I do, in those cases:
>
>    M-x cd .../emacs/src
>    M-x gud-gdb RET gdb ... temacs RET
>    b maybe_call_debugger
>    r -batch  -l loadup dump
>    [...crash...]
>    bt
>
> the `r` line may need to be adjusted depending on whether the crash
> happens for the generation of src/bootstrap-emacs or src/emacs: I just
> copy&paste it from the failed build.


I bisected instead. It's the "-no-pie" problem that Paul fixed in
99892eeec. Guess this is the first time I've tried to compile other than
head on this version.

Phil




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-11 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 13:16 debugging core dump Phillip Lord
2017-04-11 13:28 ` Eli Zaretskii
2017-04-11 13:32 ` Stefan Monnier
2017-04-11 17:11   ` Phillip Lord

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).