all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Core dump compiling Emacs 24 on Lubuntu 18.04
@ 2019-06-27 13:00 Phil Sainty
  2019-06-27 13:54 ` Robert Pluim
  2019-06-27 17:10 ` Noam Postavsky
  0 siblings, 2 replies; 3+ messages in thread
From: Phil Sainty @ 2019-06-27 13:00 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2927 bytes --]

I'm unsuccessfully trying to compile Emacs 24.4 and 24.5 on Lubuntu
18.04 GNU/Linux (for elisp backwards-compatibility testing purposes).

$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0


I'm using: ./configure --without-all --without-x

Which gives me:

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -g3 -O2
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    none
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   no
  Does Emacs use -ljpeg?                                  no
  Does Emacs use -ltiff?                                  no
  Does Emacs use a gif library?                           no
  Does Emacs use a png library?                           no
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use imagemagick?                             no
  Does Emacs support sound?                               no
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use a file notification library?             no
  Does Emacs use access control lists?                    no
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                no
  Does Emacs use -lxml2?                                  no
  Does Emacs use -lfreetype?                              no
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs directly use zlib?                           no
  Does Emacs use toolkit scroll bars?                     no


Compilation ends with:

/bin/bash: line 7: 26704 Segmentation fault      (core dumped) ./temacs
--batch --load loadup bootstrap


gdb says:

Program received signal SIGSEGV, Segmentation fault.
0x00005555556c1925 in calloc (nmemb=<error reading variable: DWARF-2
expression error: Loop detected (257).>, size=size@entry=1) at
gmalloc.c:1529
1529	  result = malloc (bytes);

Further output is attached.


Can anyone suggest a solution for compiling successfully on this
system?

I have a workaround (my CentOS VM compiles Emacs 24 fine), but it
would be more convenient if I could compile these versions locally.


thanks,
-Phil

[-- Attachment #2: ubuntu-18.04-emacs-24.4-coredump.txt --]
[-- Type: text/plain, Size: 11962 bytes --]

$ make
[ -r "src/config.in" ] || ( cd . && autoheader )
cd lib && make all                          \
  CC='gcc' CFLAGS='-g3 -O2' CPPFLAGS='' \
  LDFLAGS='' MAKE='make'
make[1]: Entering directory '/home/phil/emacs/24.4/emacs-24.4/lib'
make  all-am
make[2]: Entering directory '/home/phil/emacs/24.4/emacs-24.4/lib'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/phil/emacs/24.4/emacs-24.4/lib'
make[1]: Leaving directory '/home/phil/emacs/24.4/emacs-24.4/lib'
cd lib-src && make all                          \
  CC='gcc' CFLAGS='-g3 -O2' CPPFLAGS='' \
  LDFLAGS='' MAKE='make'
make[1]: Entering directory '/home/phil/emacs/24.4/emacs-24.4/lib-src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/phil/emacs/24.4/emacs-24.4/lib-src'
dirstate='.bzr/checkout/dirstate';				\
vcswitness='$(srcdir)/../'$dirstate;				\
[ -r "./$dirstate" ] || vcswitness='';			\
cd src || exit;							\
boot=bootstrap-emacs;					\
[ ! -x "$boot" ] || boot='';					\
make all 						\
  CC='gcc' CFLAGS='-g3 -O2' CPPFLAGS=''		\
  LDFLAGS='' MAKE='make' BOOTSTRAPEMACS="$boot"	\
  VCSWITNESS="$vcswitness"
make[1]: Entering directory '/home/phil/emacs/24.4/emacs-24.4/src'
cd ../lisp; make -w update-subdirs
make[2]: Entering directory '/home/phil/emacs/24.4/emacs-24.4/lisp'
for file in `find . -type d -print`; do case $file in .*/cedet* | .*/leim* ) ;; *) wins="$wins${wins:+ }$file" ;; esac; done; \
for file in $wins; do \
   ./../build-aux/update-subdirs $file; \
done;
make[2]: Leaving directory '/home/phil/emacs/24.4/emacs-24.4/lisp'
if test "no" = "yes"; then \
  rm -f bootstrap-emacs; \
  ln temacs bootstrap-emacs; \
else \
  ./temacs --batch --load loadup bootstrap || exit 1; \
  test "X" = X ||  -zex emacs; \
  mv -f emacs bootstrap-emacs; \
fi
/bin/bash: line 7: 26704 Segmentation fault      (core dumped) ./temacs --batch --load loadup bootstrap
Makefile:815: recipe for target 'bootstrap-emacs' failed
make[1]: *** [bootstrap-emacs] Error 1
make[1]: Leaving directory '/home/phil/emacs/24.4/emacs-24.4/src'
Makefile:382: recipe for target 'src' failed
make: *** [src] Error 2


$ gdb ./src/temacs 
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 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-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 ./src/temacs...done.
(gdb) run --batch --load loadup bootstrap
Starting program: /home/phil/emacs/24.4/emacs-24.4/src/temacs --batch --load loadup bootstrap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 26881 is executing new program: /home/phil/emacs/24.4/emacs-24.4/src/temacs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00005555556c1925 in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
1529	  result = malloc (bytes);
(gdb) bt
#0  0x00005555556c1925 in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#1  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#2  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#3  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#4  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#5  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#6  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#7  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#8  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#9  0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#10 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#11 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#12 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#13 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#14 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#15 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#16 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#17 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#18 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#19 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#20 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#21 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#22 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#23 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#24 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#25 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#26 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#27 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#28 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#29 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#30 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#31 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#32 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#33 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#34 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#35 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#36 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#37 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#38 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#39 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#40 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#41 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#42 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#43 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#44 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#45 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#46 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#47 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#48 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#49 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#50 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#51 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#52 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
#53 0x00005555556c192a in calloc (nmemb=<error reading variable: DWARF-2 expression error: Loop detected (257).>, size=size@entry=1) at gmalloc.c:1529
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) quit
A debugging session is active.

	Inferior 1 [process 26881] will be killed.

Quit anyway? (y or n) y


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

end of thread, other threads:[~2019-06-27 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-27 13:00 Core dump compiling Emacs 24 on Lubuntu 18.04 Phil Sainty
2019-06-27 13:54 ` Robert Pluim
2019-06-27 17:10 ` Noam Postavsky

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.