emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs daemon crash


From: hx
Subject: Re: emacs daemon crash
Date: Fri, 21 Sep 2018 16:57:35 +0800



On Fri, Sep 21, 2018 at 3:07 PM, Eli Zaretskii <address@hidden> wrote:
> From: hx <address@hidden>
> Date: Fri, 21 Sep 2018 11:50:59 +0800
>
> emacs26 on i386 linux,
>
> two sessions both su from root to a normal user ( #su - user )
>
> 1$ emacs -nw -q --fg-daemon
>
> ### I should run "script /dev/null" first, but didn't
> 2$ emacsclient -t
> *ERROR*: Could not open file: /dev/pts/2
> 2$ emacsclient -t       
> ### daemon crash here.

FWIW, I cannot reproduce this hear, at least not with the latest
emacs-26 branch.  I don't get the error of the first emacsclient
invocation to begin with.

Would you please use report-emacs-bug to report the problem with all
the details?  As a nice side effect, that will tell us several
important details about your system and the Emacs configuration.

Also, any reason to use -q in the daemon command?



tried report-emacs-bug, the computer doesn't have email client nor smtp,
so I still post email content here, hope it will help.

I ssh into a linux computer with root account,
then su to a normal user (#su - user, both of two ssh sessions),
start a emacs daemon, then use "emacsclient -t" to connect,
first time it will fail, in second time, the daemon will crash.

I tested with latest emacs-26 branch.
(git clone git://git.savannah.gnu.org/emacs.git --depth 1 -b emacs-26 e)

1. start emacs daemon
$ gdb -q /data/e/src/emacs
Reading symbols from /data/e/src/emacs...done.
(gdb) r -q -Q --fg-daemon
Starting program: /data/e/src/emacs -q -Q --fg-daemon
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Starting Emacs daemon.

2. connect, (If I run "script /dev/null" before this, everything will work)
$ /data/e/lib-src/emacsclient -t
*ERROR*: Could not open file: /dev/pts/3

3. connect again
 /data/e/lib-src/emacsclient -t
^C

daemon crashed:
__strcmp_sse4_2 () at ../sysdeps/i386/i686/multiarch/strcmp-sse4.S:229
229     ../sysdeps/i386/i686/multiarch/strcmp-sse4.S: No such file or directory.
(gdb) bt full
#0  __strcmp_sse4_2 () at ../sysdeps/i386/i686/multiarch/strcmp-sse4.S:229
No locals.
#1  0x080eebaa in get_named_terminal (name=0xbfff9ce0 "/dev/pts/3") at terminal.c:255
        t = 0x89bce70 <bss_sbrk_buffer+4973200>
#2  0x080ed12c in init_tty (name=0xbfff9ce0 "/dev/pts/3", terminal_type=0xbfff9cc0 "xterm-256color", must_succeed=false) at term.c:3954
        tty = 0x0
        terminal = 0x0
        area = 0x82c8000 "\324},\b \371\377\267"
        address = 0xbfff9c04
        status = <optimized out>
        oldset = {__val = {3, 0, 3221200008, 16797372, 0, 156473780, 4, 3, 7, 3221199960, 3, 14, 3221199964, 0, 143577108, 156473732, 0, 135908518, 137134080, 135923316, 144424525, 4, 0, 4, 4, 0, 135923232, 137134080, 3221200172,
            3221200044, 25248, 134591253}}
        ctty = false
#3  0x080619e5 in Fmake_terminal_frame (parms=...) at frame.c:1255
        type = 0xbfff9cc0 "xterm-256color"
        tty = <optimized out>
        tty_type = {i = 156275164}
        sa_avail = <optimized out>
        name = 0xbfff9ce0 "/dev/pts/3"
        sa_must_free = false
        t = <optimized out>

...
In GNU Emacs 26.1.50 (build 1, i686-pc-linux-gnu)
 of 2018-09-21 built on pc
Repository revision: d28d54c76754759e5f0fc8254541fbb4ef6a21d8
System Description:     Devuan GNU/Linux 2.0 (ascii)

Recent messages:
.emacs.d/init.el: (lambda (f) ...) quoted with ' rather than with #'
Loading /usr/share/emacs/site-lisp/debian-startup.el (source)...done
Cleaning up the recentf list...done (0 removed)
Loading /root/.emacs.d/custom.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --with-sound=no --with-x-toolkit=no --without-xpm
 --without-jpeg --without-tiff --without-gif --without-png
 --without-rsvg --without-libsystemd --without-xml2
 --without-imagemagick --without-xft --without-xim --without-gpm
 --without-dbus --without-gsettings --without-selinux --without-gnutls
 --without-makeinfo'

Configured features:
NOTIFY ZLIB OLDXMENU X11 XDBE XIM THREADS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  global-auto-complete-mode: t
  auto-complete-mode: t
  recentf-mode: t
  display-time-mode: t
  show-paren-mode: t
  which-function-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
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 term/xterm xterm flymake-proc flymake
compile warnings thingatpt elec-pair emmet-mode web-mode
auto-complete-config auto-complete popup nginx-mode yaml-mode recentf
tree-widget wid-edit ido multi-term advice cl term disp-table comint
ansi-color ehelp xcscope ring edmacro kmacro windmove time paren
time-date which-func imenu finder-inf info 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 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 inotify dynamic-setting x multi-tty
make-network-process emacs)

Memory information:
((conses 8 162723 11974)
 (symbols 24 27573 2)
 (miscs 20 46 184)
 (strings 16 54509 1687)
 (string-bytes 1 1457892)
 (vectors 12 22789)
 (vector-slots 4 652574 7130)
 (floats 8 98 296)
 (intervals 28 237 5)
 (buffers 536 11))

Attachment: bt.log
Description: Binary data


reply via email to

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