From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hx Newsgroups: gmane.emacs.devel Subject: emacs daemon crash Date: Fri, 21 Sep 2018 11:50:59 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003094030576598c08" X-Trace: blaine.gmane.org 1537501776 26163 195.159.176.226 (21 Sep 2018 03:49:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2018 03:49:36 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 21 05:49:32 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3CRg-0006iy-5c for ged-emacs-devel@m.gmane.org; Fri, 21 Sep 2018 05:49:32 +0200 Original-Received: from localhost ([::1]:53733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3CTm-0003Lr-MX for ged-emacs-devel@m.gmane.org; Thu, 20 Sep 2018 23:51:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3CT8-0003LY-F9 for emacs-devel@gnu.org; Thu, 20 Sep 2018 23:51:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3CT7-0007Oz-LP for emacs-devel@gnu.org; Thu, 20 Sep 2018 23:51:02 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:34023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3CT7-0007N4-D9 for emacs-devel@gnu.org; Thu, 20 Sep 2018 23:51:01 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id j25-v6so3074193wmc.1 for ; Thu, 20 Sep 2018 20:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=b5IHhgFHMgMK8NUy3owKfy+1Fej8c9oSA8FTwTpZq8Q=; b=CTkCMu8yYibAOmA48srnfpguHzPl4p8zxfudQoU9fFAE3G5cEhaskdgPchSVHhTxRY tcqmiFbzBDLivnFx1fgkhURXIN5nAog1AL7cuf7Jhbzd9M5EeucppjJYdWHaV2h1pENr HneUebgV7YjlOwUnOkhhejsVyTeCqxVSZC5cIzxUmpfJgk3fvw/Cr8bWgqcsj5EyjyxQ pkvAJ/v1zIkQ07AJn2E8/G1sEt9IAXs/872LB+VFoSehbkn7i/iEPCQiMZkcXQC7ZZCg 4UycFWmVixTWm4k8c+fwlaP+bWNcP5djhxLm7Tg53LW/b9uRAGz4vE22UfAwTbk4oIk5 mNPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=b5IHhgFHMgMK8NUy3owKfy+1Fej8c9oSA8FTwTpZq8Q=; b=WqTut/b1x9rIOta1z8fJ00gO81dtdzhlfKyVNy9i9Rs9uMayGsNvQv77OZ3Z3rynmj oOmzNs0eAFx4zKjN6xENiCtF4DyOF/FvQCayw7DL9qviMvmKtbWBhbwhmds4JdNrUifB A79wIxKto5gszHjiPvsyNW/4TFgxBqYK2rdX1ZS+uTuKcLMTSAwE1o6NrjAVESGmAu4x bzRtcNBlpKfdSUKX99EnshLr3J9xowAYGa+pSGbx09Nq76143Er037Y0uEDP053Q27OZ 2XyVsGrYqhmbK8OADPi1HxtTURrDD/544w7MjksV2MBTky3ixSR6SFIZZ5wMHc+b+Ts5 eOtQ== X-Gm-Message-State: APzg51CfdsQZ8t0PULRWEtqnK1VbjDO7XSWB4LHjMAkk+FZZ5PqDeOcJ H0VwogpfWNfZvrTu3YGZs0UUP9F5e2zs9IY5bPizl4WS X-Google-Smtp-Source: ANB0Vdacd1Q9rYxQMWcolyEZHZ5LA6vAFK5vinG2D/HNlrOw8V8sGWSEk6fY+l6HbCyPAVOgRC1ruhz4DywA428htl8= X-Received: by 2002:a1c:3906:: with SMTP id g6-v6mr5102175wma.50.1537501859712; Thu, 20 Sep 2018 20:50:59 -0700 (PDT) Original-Received: by 2002:a1c:19c1:0:0:0:0:0 with HTTP; Thu, 20 Sep 2018 20:50:59 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229982 Archived-At: --0000000000003094030576598c08 Content-Type: text/plain; charset="UTF-8" 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. Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. __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 #0 __strcmp_sse4_2 () at ../sysdeps/i386/i686/multiarch/strcmp-sse4.S:229 #1 0x080f2812 in get_named_terminal () #2 0x080f0e7b in init_tty () #3 0x08068579 in Fmake_terminal_frame () #4 0x0819f00a in Ffuncall () #5 0x081d9f38 in exec_byte_code () #6 0x0819ec9b in funcall_lambda () #7 0x0819ef6b in Ffuncall () #8 0x081d9f38 in exec_byte_code () #9 0x0819ec9b in funcall_lambda () #10 0x0819ef6b in Ffuncall () #11 0x081a0c1c in Fapply () #12 0x0819f00a in Ffuncall () looks like in terminal.c get_named_terminal(), the first parameter of strcmp() is NULL --0000000000003094030576598c08 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
emacs26 on i386 linux,

two sessions both su fr= om root to a normal user ( #su - user )

1$ emacs -= nw -q --fg-daemon


### I should= run "script /dev/null" first, but didn't
2$ emacsc= lient -t=C2=A0
*ERROR*: Could not open file: /dev/pts/2
2$ emacsclient -t=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
### daemon cr= ash here.

Thread 1 "emacs" re= ceived signal SIGSEGV, Segmentation fault.
__strcmp_sse4_2 () at = ../sysdeps/i386/i686/multiarch/strcmp-sse4.S:229
229=C2=A0 =C2=A0= =C2=A0../sysdeps/i386/i686/multiarch/strcmp-sse4.S: No such file or direct= ory.
(gdb) bt
#0=C2=A0 __strcmp_sse4_2 () at ../sysdeps= /i386/i686/multiarch/strcmp-sse4.S:229
#1=C2=A0 0x080f2812 in get= _named_terminal ()
#2=C2=A0 0x080f0e7b in init_tty ()
#= 3=C2=A0 0x08068579 in Fmake_terminal_frame ()
#4=C2=A0 0x0819f00a= in Ffuncall ()
#5=C2=A0 0x081d9f38 in exec_byte_code ()
#6=C2=A0 0x0819ec9b in funcall_lambda ()
#7=C2=A0 0x0819ef6b in= Ffuncall ()
#8=C2=A0 0x081d9f38 in exec_byte_code ()
#= 9=C2=A0 0x0819ec9b in funcall_lambda ()
#10 0x0819ef6b in Ffuncal= l ()
#11 0x081a0c1c in Fapply ()
#12 0x0819f00a in Ffun= call ()



looks = like in=C2=A0terminal.c get_named_terminal(), the first parameter of strcmp= () is NULL=C2=A0
--0000000000003094030576598c08--