emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41240: closed (26.3; crash on startup when running package-refresh-c


From: GNU bug Tracking System
Subject: bug#41240: closed (26.3; crash on startup when running package-refresh-contents)
Date: Wed, 13 May 2020 19:15:04 +0000

Your message dated Wed, 13 May 2020 22:13:52 +0300
with message-id <address@hidden>
and subject line Re: bug#41240: 26.3; crash on startup when running 
package-refresh-contents
has caused the debbugs.gnu.org bug report #41240,
regarding 26.3; crash on startup when running package-refresh-contents
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
41240: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41240
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.3; crash on startup when running package-refresh-contents Date: Wed, 13 May 2020 12:41:49 -0500
I am running emacs 26.3 on ubuntu 20.04, installed via snap from [scapcraft.io/emacs](https://snapcraft.io/emacs), the `latest/stable 26.3` snap.

    $ emacs --version
    GNU Emacs 26.3
    ...
   
I have distilled my `init.el` file down to the following bare minimum:

    (require 'package)
    (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")))
    (package-initialize)
    (package-refresh-contents)

Starting emacs with this `init.el` file results in a crash

    Fatal error 11: Segmentation fault
    Backtrace:
    /snap/emacs/296/usr/bin/emacs[0x58f0c7]
    ...

Loading the core file in gdb I get the following stack trace:

    #0  0x00007f8ce2e65727 in raise () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
    #1  0x0000000000567d08 in terminate_due_to_signal ()
    #2  0x000000000058e802 in handle_fatal_signal ()
    #3  0x000000000058e7d3 in deliver_thread_signal ()
    #4  0x000000000058e83d in deliver_fatal_thread_signal ()
    #5  0x000000000058e9f9 in handle_sigsegv ()
    #6  <signal handler called>
    #7  0x00007f8ce9cbeac8 in ?? () from /snap/core18/current/lib64/ld-linux-x86-64.so.2
    #8  0x00007f8ce9cc70bd in ?? () from /snap/core18/current/lib64/ld-linux-x86-64.so.2
    #9  0x00007f8ce22c92df in _dl_catch_exception () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #10 0x00007f8ce9cc67ca in ?? () from /snap/core18/current/lib64/ld-linux-x86-64.so.2
    #11 0x00007f8ce22c83ad in ?? () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #12 0x00007f8ce22c92df in _dl_catch_exception () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #13 0x00007f8ce22c936f in _dl_catch_error () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #14 0x00007f8ce22c84d9 in __libc_dlopen_mode () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #15 0x00007f8ce22aa886 in ?? () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #16 0x00007f8ce22ab088 in __nss_lookup_function () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #17 0x00007f8ce2267cf3 in ?? () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #18 0x00007f8ce2269ce4 in getaddrinfo () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
    #19 0x0000000000671b31 in Fmake_network_process ()
    #20 0x0000000000619809 in funcall_subr ()
    #21 0x00000000006194e5 in Ffuncall ()
    #22 0x0000000000664a8f in exec_byte_code ()
    ...

I tried starting it under `strace` to get a better idea of what was failing, and got the following:

    readlinkat(AT_FDCWD, "/snap/emacs/296/usr/share/emacs/26.3/lisp/net/starttls.elc", 0x7fff04576570, 1024) = -1 EINVAL (Invalid argument)
    read(13, "li\" \"Name of GnuTLS command line"..., 1024) = 1024
    read(13, "on-type' to use when starting ST"..., 1024) = 1024
    faccessat(AT_FDCWD, "/usr/local/sbin/starttls", X_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/usr/local/bin/starttls", X_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/usr/sbin/starttls", X_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/usr/bin/starttls", X_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/sbin/starttls", X_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/bin/starttls", X_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/snap/bin/starttls", X_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/snap/emacs/current/usr/libexec/emacs/26.3/x86_64-pc-linux-gnu/starttls", X_OK) = -1 ENOENT (No such file or directory)
    lseek(13, -284, SEEK_CUR)               = 2788
    read(13, "\n(defalias 'starttls-negotiate-g"..., 1024) = 1024
    read(13, "16\16!\\310\\\"\\210\\317\16!!\\203e\0\\320\16"..., 1024) = 1024
    lseek(13, 5120, SEEK_SET)               = 5120
    read(13, "h arg PORT is an integer specify"..., 1024) = 1024
    lseek(13, 6144, SEEK_SET)               = 6144
    read(13, "ke-obsolete \"2011-08-02\" provide"..., 1024) = 46
    read(13, "", 1024)                      = 0
    close(13)                               = 0
    lseek(12, 3976, SEEK_CUR)               = 5000
    read(12, "\n(defalias 'open-network-stream "..., 1024) = 1024
    read(12, " connection type %s\" nil make-by"..., 1024) = 1024
    lseek(12, 7048, SEEK_SET)               = 7048
    lseek(12, 7048, SEEK_SET)               = 7048
    read(12, "nless-encrypted nsm-verify-conne"..., 1024) = 1024
    lseek(12, 8072, SEEK_SET)               = 8072
    read(12, "360\6\7!\\204\\227\1\\361\\362\6\22\6\22#\\210"..., 1024) = 1024
    read(12, "able to negotiate a TLS connecti"..., 1024) = 1024
    lseek(12, 10120, SEEK_SET)              = 10120
    lseek(12, 10120, SEEK_SET)              = 10120
    lseek(12, 10120, SEEK_SET)              = 10120
    read(12, "4W\0\\306\\211\\211\\311F\\202\\230\0\\30"..., 1024) = 1023
    lseek(12, 11143, SEEK_SET)              = 11143
    read(12, "", 1024)                      = 0
    close(12)                               = 0
    rt_sigprocmask(SIG_BLOCK, [INT ALRM], [], 8) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 12
    connect(12, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(12)                               = 0
    socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 12
    connect(12, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(12)                               = 0
    stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=707, ...}) = 0
    openat(AT_FDCWD, "/etc/host.conf", O_RDONLY|O_CLOEXEC) = 12
    fstat(12, {st_mode=S_IFREG|0644, st_size=92, ...}) = 0
    read(12, "# The \"order\" line is only used "..., 4096) = 92
    read(12, "", 4096)                      = 0
    close(12)                               = 0
    futex(0x7f1b19be7ba4, FUTEX_WAKE_PRIVATE, 2147483647) = 0
    openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 12
    fstat(12, {st_mode=S_IFREG|0644, st_size=707, ...}) = 0
    read(12, "# This file is managed by man:sy"..., 4096) = 707
    read(12, "", 4096)                      = 0
    close(12)                               = 0
    uname({sysname="Linux", nodename="steve-work", ...}) = 0
    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x50} ---
    rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[SEGV], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f1b19836f20}, {sa_handler=0x58e97b, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER|SA_ONSTACK|SA_SIGINFO, sa_restorer=0x7f1b1a4fb890}, 8) = 0
    getpgrp()                               = 1271053
    ioctl(0, TIOCGPGRP, [1271053])          = 0
    write(2, "Fatal error 11: ", 16Fatal error 11: )        = 16
    write(2, "Segmentation fault", 18Segmentation fault)      = 18

here is the full backtrace:

(gdb) bt full
#0  0x00007f2268e0b727 in raise () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#1  0x0000000000567d08 in terminate_due_to_signal ()
No symbol table info available.
#2  0x000000000058e802 in handle_fatal_signal ()
No symbol table info available.
#3  0x000000000058e7d3 in deliver_thread_signal ()
No symbol table info available.
#4  0x000000000058e83d in deliver_fatal_thread_signal ()
No symbol table info available.
#5  0x000000000058e9f9 in handle_sigsegv ()
No symbol table info available.
#6  <signal handler called>
No symbol table info available.
#7  0x00007f226fc64ac8 in ?? () from /snap/core18/current/lib64/ld-linux-x86-64.so.2
No symbol table info available.
#8  0x00007f226fc6d0bd in ?? () from /snap/core18/current/lib64/ld-linux-x86-64.so.2
No symbol table info available.
#9  0x00007f226826f2df in _dl_catch_exception () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#10 0x00007f226fc6c7ca in ?? () from /snap/core18/current/lib64/ld-linux-x86-64.so.2
No symbol table info available.
#11 0x00007f226826e3ad in ?? () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#12 0x00007f226826f2df in _dl_catch_exception () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#13 0x00007f226826f36f in _dl_catch_error () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#14 0x00007f226826e4d9 in __libc_dlopen_mode () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#15 0x00007f2268250886 in ?? () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#16 0x00007f2268251088 in __nss_lookup_function () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#17 0x00007f226820dcf3 in ?? () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#18 0x00007f226820fce4 in getaddrinfo () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#19 0x0000000000671b31 in Fmake_network_process ()
No symbol table info available.
#20 0x0000000000619809 in funcall_subr ()
No symbol table info available.
#21 0x00000000006194e5 in Ffuncall ()
No symbol table info available.
#22 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#23 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#24 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#25 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#26 0x000000000061a30a in funcall_lambda ()
No symbol table info available.
#27 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#28 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#29 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#30 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#31 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#32 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#33 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#34 0x0000000000664a8f in exec_byte_code ()
--Type <RET> for more, q to quit, c to continue without paging--
No symbol table info available.
#35 0x000000000061a30a in funcall_lambda ()
No symbol table info available.
#36 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#37 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#38 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#39 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#40 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#41 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#42 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#43 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#44 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#45 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#46 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#47 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#48 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#49 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#50 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#51 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#52 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#53 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#54 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#55 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#56 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#57 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#58 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#59 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#60 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#61 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#62 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#63 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#64 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#65 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#66 0x0000000000619cfd in apply_lambda ()
No symbol table info available.
#67 0x00000000006180ed in eval_sub ()
No symbol table info available.
#68 0x0000000000649233 in readevalloop_eager_expand_eval ()
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--
#69 0x0000000000649b84 in readevalloop ()
No symbol table info available.
#70 0x0000000000649f89 in Feval_buffer ()
No symbol table info available.
#71 0x00000000006199da in funcall_subr ()
No symbol table info available.
#72 0x00000000006194e5 in Ffuncall ()
No symbol table info available.
#73 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#74 0x000000000061a30a in funcall_lambda ()
No symbol table info available.
#75 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#76 0x0000000000618f3f in call4 ()
No symbol table info available.
#77 0x0000000000647eb3 in Fload ()
No symbol table info available.
#78 0x00000000006199da in funcall_subr ()
No symbol table info available.
#79 0x00000000006194e5 in Ffuncall ()
No symbol table info available.
#80 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#81 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#82 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#83 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#84 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#85 0x0000000000619529 in Ffuncall ()
No symbol table info available.
#86 0x0000000000664a8f in exec_byte_code ()
No symbol table info available.
#87 0x0000000000619fa0 in funcall_lambda ()
No symbol table info available.
#88 0x0000000000619cfd in apply_lambda ()
No symbol table info available.
#89 0x00000000006180ed in eval_sub ()
No symbol table info available.
#90 0x0000000000617505 in Feval ()
No symbol table info available.
#91 0x000000000056c8ae in top_level_2 ()
No symbol table info available.
#92 0x0000000000615e1a in internal_condition_case ()
No symbol table info available.
#93 0x000000000056c8f3 in top_level_1 ()
No symbol table info available.
#94 0x00000000006156d3 in internal_catch ()
No symbol table info available.
#95 0x000000000056c7dd in command_loop ()
No symbol table info available.
#96 0x000000000056beec in recursive_edit_1 ()
No symbol table info available.
#97 0x000000000056c06a in Frecursive_edit ()
No symbol table info available.
#98 0x0000000000569b42 in main ()
No symbol table info available.
(gdb)


In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2019-12-03 built on lgw01-amd64-029
Repository revision: ea9cfdb4812c1140416c523bac34a6ec72db7fce
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Ubuntu 20.04 LTS

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
scroll-up-command: End of buffer
mwheel-scroll: Beginning of buffer

Configured using:
 'configure --prefix= --prefix=/snap/emacs/current/usr 'CFLAGS=
 -I/build/emacs/parts/emacs/install/usr/include' 'CPPFLAGS=
 -I/build/emacs/parts/emacs/install/usr/include' 'LDFLAGS=
 -L/build/emacs/parts/emacs/install/lib
 -L/build/emacs/parts/emacs/install/usr/lib
 -L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu
 -L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2

Important settings:
  value of $LC_MONETARY: en_GB.UTF-8
  value of $LC_NUMERIC: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Fundamental

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
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils elec-pair finder-inf package easymenu
epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray 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 threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 108695 8696)
 (symbols 48 21693 1)
 (miscs 40 143 122)
 (strings 32 32201 1775)
 (string-bytes 1 873313)
 (vectors 16 16052)
 (vector-slots 8 526873 9856)
 (floats 8 49 68)
 (intervals 56 287 0)
 (buffers 992 12))

--- End Message ---
--- Begin Message --- Subject: Re: bug#41240: 26.3; crash on startup when running package-refresh-contents Date: Wed, 13 May 2020 22:13:52 +0300
> From: Steve Lorimer <address@hidden>
> Date: Wed, 13 May 2020 14:00:53 -0500
> Cc: address@hidden
> 
> I built 26.3 from source and it no longer crashes - must be an issue with the 
> snap - in fact, I've found a
> related issue here: https://github.com/alexmurray/emacs-snap/issues/12

Thanks, I'm therefore closing this bug.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]