all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Segfault during emacs compile
@ 2014-11-21 14:29 Toke Høiland-Jørgensen
  0 siblings, 0 replies; only message in thread
From: Toke Høiland-Jørgensen @ 2014-11-21 14:29 UTC (permalink / raw)
  To: emacs-devel

When compiling emacs from git I get a segfault on the ./temacs command.
Running it from gdb and getting a backtrace yields (from the emacs/src dir):

$  gdb ./temacs 
GNU gdb (GDB) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./temacs...done.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
TERM = rxvt
Breakpoint 1 at 0x1114c0: file emacs.c, line 360.
Temporary breakpoint 2 at 0x12ce10: file sysdep.c, line 911.
(gdb) set args --batch --load loadup bootstrap
(gdb) run
Starting program: /home/alrua/git/emacs/src/temacs --batch --load loadup bootstrap
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
process 9093 is executing new program: /home/alrua/git/emacs/src/temacs
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Loading loadup.el (source)...
Using load-path (/home/alrua/git/emacs/lisp /home/alrua/git/emacs/lisp/emacs-lisp /home/alrua/git/emacs/lisp/language /home/alrua/git/emacs/lisp/international /home/alrua/git/emacs/lisp/textmodes /home/alrua/git/emacs/lisp/vc)
Loading emacs-lisp/byte-run (source)...
Loading emacs-lisp/backquote (source)...
Loading subr (source)...
Loading version (source)...
Loading widget (source)...
Loading custom (source)...
Loading emacs-lisp/map-ynp (source)...
Loading international/mule (source)...
Loading international/mule-conf (source)...
Loading env (source)...
Loading format (source)...
Loading bindings (source)...
Loading cus-start (source)...
Loading window (source)...
Loading /home/alrua/git/emacs/lisp/files.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/macroexp.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/pcase.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/macroexp.el (source)...
Loading /home/alrua/git/emacs/lisp/cus-face.el (source)...
Loading /home/alrua/git/emacs/lisp/faces.el (source)...
Loading /home/alrua/git/emacs/lisp/button.el (source)...
Loading /home/alrua/git/emacs/lisp/ldefs-boot.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/nadvice.el (source)...
Loading /home/alrua/git/emacs/lisp/minibuffer.el (source)...
../lisp/minibuffer.el: `with-wrapper-hook' is an obsolete macro (as of 24.4); use a <foo>-function variable modified by `add-function'.
Loading /home/alrua/git/emacs/lisp/abbrev.el (source)...
../lisp/abbrev.el: `with-wrapper-hook' is an obsolete macro (as of 24.4); use a <foo>-function variable modified by `add-function'.
Loading /home/alrua/git/emacs/lisp/simple.el (source)...
../lisp/simple.el: `with-wrapper-hook' is an obsolete macro (as of 24.4); use a <foo>-function variable modified by `add-function'.
Loading /home/alrua/git/emacs/lisp/help.el (source)...
Loading /home/alrua/git/emacs/lisp/jka-cmpr-hook.el (source)...
Loading /home/alrua/git/emacs/lisp/epa-hook.el (source)...
Loading /home/alrua/git/emacs/lisp/international/mule-cmds.el (source)...
Loading /home/alrua/git/emacs/lisp/case-table.el (source)...
Loading /home/alrua/git/emacs/lisp/international/characters.el (source)...
Loading /home/alrua/git/emacs/lisp/composite.el (source)...
Loading /home/alrua/git/emacs/lisp/language/chinese.el (source)...
Loading /home/alrua/git/emacs/lisp/language/cyrillic.el (source)...
Loading /home/alrua/git/emacs/lisp/language/indian.el (source)...
Loading /home/alrua/git/emacs/lisp/language/sinhala.el (source)...
Loading /home/alrua/git/emacs/lisp/language/english.el (source)...
Loading /home/alrua/git/emacs/lisp/language/ethiopic.el (source)...
Loading /home/alrua/git/emacs/lisp/language/european.el (source)...
Loading /home/alrua/git/emacs/lisp/language/czech.el (source)...
Loading /home/alrua/git/emacs/lisp/language/slovak.el (source)...
Loading /home/alrua/git/emacs/lisp/language/romanian.el (source)...
Loading /home/alrua/git/emacs/lisp/language/greek.el (source)...
Loading /home/alrua/git/emacs/lisp/language/hebrew.el (source)...
Loading /home/alrua/git/emacs/lisp/language/japanese.el (source)...
Loading /home/alrua/git/emacs/lisp/international/cp51932.el (source)...
Loading /home/alrua/git/emacs/lisp/international/eucjp-ms.el (source)...
Loading /home/alrua/git/emacs/lisp/language/korean.el (source)...
Loading /home/alrua/git/emacs/lisp/language/lao.el (source)...
Loading /home/alrua/git/emacs/lisp/language/tai-viet.el (source)...
Loading /home/alrua/git/emacs/lisp/language/thai.el (source)...
Loading /home/alrua/git/emacs/lisp/language/tibetan.el (source)...
Loading /home/alrua/git/emacs/lisp/language/vietnamese.el (source)...
Loading /home/alrua/git/emacs/lisp/language/misc-lang.el (source)...
Loading /home/alrua/git/emacs/lisp/language/utf-8-lang.el (source)...
Loading /home/alrua/git/emacs/lisp/language/georgian.el (source)...
Loading /home/alrua/git/emacs/lisp/language/khmer.el (source)...
Loading /home/alrua/git/emacs/lisp/language/burmese.el (source)...
Loading /home/alrua/git/emacs/lisp/language/cham.el (source)...
Loading /home/alrua/git/emacs/lisp/indent.el (source)...
Loading /home/alrua/git/emacs/lisp/frame.el (source)...
Loading /home/alrua/git/emacs/lisp/startup.el (source)...
Loading /home/alrua/git/emacs/lisp/term/tty-colors.el (source)...
Loading /home/alrua/git/emacs/lisp/font-core.el (source)...
Loading /home/alrua/git/emacs/lisp/facemenu.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/syntax.el (source)...
Loading /home/alrua/git/emacs/lisp/font-lock.el (source)...
Loading /home/alrua/git/emacs/lisp/jit-lock.el (source)...
Loading /home/alrua/git/emacs/lisp/mouse.el (source)...
Loading /home/alrua/git/emacs/lisp/scroll-bar.el (source)...
Loading /home/alrua/git/emacs/lisp/select.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/timer.el (source)...
Loading /home/alrua/git/emacs/lisp/isearch.el (source)...
Loading /home/alrua/git/emacs/lisp/rfn-eshadow.el (source)...
Loading /home/alrua/git/emacs/lisp/menu-bar.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/lisp.el (source)...
Loading /home/alrua/git/emacs/lisp/textmodes/page.el (source)...
Loading /home/alrua/git/emacs/lisp/register.el (source)...
Loading /home/alrua/git/emacs/lisp/textmodes/paragraphs.el (source)...
Loading /home/alrua/git/emacs/lisp/progmodes/prog-mode.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/lisp-mode.el (source)...
Loading /home/alrua/git/emacs/lisp/progmodes/elisp-mode.el (source)...
Loading /home/alrua/git/emacs/lisp/textmodes/text-mode.el (source)...
Loading /home/alrua/git/emacs/lisp/textmodes/fill.el (source)...
Loading /home/alrua/git/emacs/lisp/newcomment.el (source)...
Loading /home/alrua/git/emacs/lisp/replace.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/tabulated-list.el (source)...
Loading /home/alrua/git/emacs/lisp/buff-menu.el (source)...
Loading /home/alrua/git/emacs/lisp/fringe.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/regexp-opt.el (source)...
Loading /home/alrua/git/emacs/lisp/image.el (source)...
Loading /home/alrua/git/emacs/lisp/international/fontset.el (source)...
Loading /home/alrua/git/emacs/lisp/dnd.el (source)...
Loading /home/alrua/git/emacs/lisp/tool-bar.el (source)...
Loading /home/alrua/git/emacs/lisp/dynamic-setting.el (source)...
Loading /home/alrua/git/emacs/lisp/x-dnd.el (source)...
Loading /home/alrua/git/emacs/lisp/term/common-win.el (source)...
Loading /home/alrua/git/emacs/lisp/term/x-win.el (source)...
Loading /home/alrua/git/emacs/lisp/mwheel.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/float-sup.el (source)...
Loading /home/alrua/git/emacs/lisp/vc/vc-hooks.el (source)...
Loading /home/alrua/git/emacs/lisp/vc/ediff-hook.el (source)...
Loading /home/alrua/git/emacs/lisp/uniquify.el (source)...
Loading /home/alrua/git/emacs/lisp/electric.el (source)...
Loading /home/alrua/git/emacs/lisp/emacs-lisp/eldoc.el (source)...
Loading /home/alrua/git/emacs/lisp/tooltip.el (source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff02dc626 in __memcpy_avx_unaligned () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff02dc626 in __memcpy_avx_unaligned () from /usr/lib/libc.so.6
#1  0x000055555571934a in memcpy (__len=<optimized out>, __src=<optimized out>, __dest=<optimized out>) at /usr/include/bits/string3.h:51
#2  unexec (new_name=0x555556bb60c8 "/home/alrua/git/emacs/src/emacs", old_name=0x555556bb60f0 "/home/alrua/git/emacs/src/temacs") at unexelf.c:1060
#3  0x0000555555661bc7 in Fdump_emacs (filename=93825015994097, symfile=93825015994065) at emacs.c:2116
#4  0x00005555556e00b5 in eval_sub (form=<optimized out>) at eval.c:2181
#5  0x00005555556e0605 in Fprogn (body=140735306793344) at eval.c:455
#6  0x00005555556e0207 in eval_sub (form=<optimized out>) at eval.c:2128
#7  0x00005555556e0207 in eval_sub (form=form@entry=93825000984726) at eval.c:2128
#8  0x0000555555707455 in readevalloop (readcharfun=93825000862690, stream=0x555555dc28f0, sourcename=93825001069473, printflag=false, unibyte=<optimized out>, readfun=93825000762226, start=93825000762226, end=93825000762226) at lread.c:1967
#9  0x0000555555707f49 in Fload (file=140735306793344, noerror=4686208, nomessage=3082340, nosuffix=93825001072880, must_suffix=93825000460736) at lread.c:1362
#10 0x00005555556e002e in eval_sub (form=form@entry=93825000984614) at eval.c:2192
#11 0x00005555556e28e3 in Feval (form=93825000984614, lexical=<optimized out>) at eval.c:1993
#12 0x00005555556dee07 in internal_condition_case (bfun=bfun@entry=0x555555665cc0 <top_level_2>, handlers=<optimized out>, hfun=hfun@entry=0x55555566ace0 <cmd_error>) at eval.c:1344
#13 0x0000555555665c9d in top_level_1 (ignore=ignore@entry=93825000762226) at keyboard.c:1214
#14 0x00005555556decd3 in internal_catch (tag=93825000809890, func=func@entry=0x555555665c30 <top_level_1>, arg=93825000762226) at eval.c:1105
#15 0x0000555555665bac in command_loop () at keyboard.c:1175
#16 0x000055555566a86d in recursive_edit_1 () at keyboard.c:786
#17 0x000055555566abf0 in Frecursive_edit () at keyboard.c:857
#18 0x0000555555585012 in main (argc=1439879616, argv=0x7fffffffde58) at emacs.c:1623

Lisp Backtrace:
"dump-emacs" (0xffffd5f0)
"progn" (0xffffd6d8)
"if" (0xffffd7b8)
"load" (0xffffdb10)
(gdb) 


This is on x86_64 Arch Linux. Any ideas as to how I go about debugging
this?

Thanks,
-Toke



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-21 14:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-21 14:29 Segfault during emacs compile Toke Høiland-Jørgensen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.