From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Ibrahim Newsgroups: gmane.emacs.bugs Subject: bug#63629: Fwd: bug#63629: 28.3; Emacsclient exits with no error message and breaks terminal when opening a file without permissions Date: Sun, 21 May 2023 14:57:03 -0400 Message-ID: References: <83a5xxr1db.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000030ccc405fc38b9c9" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38953"; mail-complaints-to="usenet@ciao.gmane.io" To: 63629@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 21 20:58:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q0oG4-0009uc-Np for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 May 2023 20:58:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0oFo-0000fj-9V; Sun, 21 May 2023 14:58:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0oFm-0000fY-IL for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 14:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0oFm-0007Wx-AT for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 14:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0oFl-0005tr-Oh for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 14:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Ibrahim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 May 2023 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63629 X-GNU-PR-Package: emacs Original-Received: via spool by 63629-submit@debbugs.gnu.org id=B63629.168469545022637 (code B ref 63629); Sun, 21 May 2023 18:58:01 +0000 Original-Received: (at 63629) by debbugs.gnu.org; 21 May 2023 18:57:30 +0000 Original-Received: from localhost ([127.0.0.1]:32860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0oFF-0005t3-SA for submit@debbugs.gnu.org; Sun, 21 May 2023 14:57:30 -0400 Original-Received: from mail-ed1-f53.google.com ([209.85.208.53]:44161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0oFB-0005sj-5J for 63629@debbugs.gnu.org; Sun, 21 May 2023 14:57:29 -0400 Original-Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-510b6a249a8so9450540a12.0 for <63629@debbugs.gnu.org>; Sun, 21 May 2023 11:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684695439; x=1687287439; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=DUZC42UUH0sYb+90SXCgcC+GD6xS8EzrpLOz2bwJdfw=; b=P4CEkpfOhxcsEZFZJrFOXRcwDczOEWHz8k7mUcXP42YyEqjX28BAgcZpGLtwfitc+f oK4DHj/NGYiA4gsjV0R/PYq1a4vaScFJMGMHnwQ1krAKPJ1II4OM/UUkQb9rx9p5HmJi mR8MBxypE6cQAjGc92asTaId7wIwF1V4XQ4oIIPL0/e9tibg1kLrEVsz2QIZLoukpLna FlStELdEThJdQVa3jCPfBmmGyzUQOhfKRr24OK7WVstgAe1T8k54IKuYV6i5kpHVUw45 MXiMEB7femzYpREng7EwA3ELy2ak5jS8lJNLkVOZ/yoe2p97SAkUU6p+QgUnRH1YA6pt xHfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684695439; x=1687287439; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DUZC42UUH0sYb+90SXCgcC+GD6xS8EzrpLOz2bwJdfw=; b=LNp1Af26deClWvyLh7Sr/62EYEt/m3S/hhAfpL7i4mCWNpmBZXcqoz+JYoVEQiXel9 v+lgV4RWZOQ8gReMam+4lluVYiX2DB3EL2bddU7PG0CsK1ahRWLzOp91IHEyEbrH00TT y5UMLiXI0ec4NcBqpo6vxrT57qVv+ysFMkPLEIajdmqj3BUgSb6UCyqiovutiwhYDH5u RLbVWIdF7LNgvDFMQhCvPzDApW3mbVneAQCDPjCeGLKZzbE+LTBFdMh33+y/snsyfu3t mtIQ0YyGT7NECkb5Z4munFQGV4N3w/GaTUtV8JaYsVOuzBnwXzASo6AVXFGmvkpUohSx QAWg== X-Gm-Message-State: AC+VfDwDXX7zIEVKouO0NLgg3eqPXHF9Vz1EF9pkt4F5fJHqd2aA6n+D yt9OEwoAgxVJo4+h1NPUXFqiBvdqsPdSRdx/0XSt3jrO X-Google-Smtp-Source: ACHHUZ5zuxyJavJJ19eShgTZbbdgSeQXHWBvz4sP2jvixM9x9TVKsDTDzdRZGJxE+K1iiB0g68+6mHNraA+hrWusH9A= X-Received: by 2002:a17:907:6eac:b0:94e:116:8581 with SMTP id sh44-20020a1709076eac00b0094e01168581mr11718549ejc.5.1684695438903; Sun, 21 May 2023 11:57:18 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262120 Archived-At: --00000000000030ccc405fc38b9c9 Content-Type: text/plain; charset="UTF-8" ---------- Forwarded message --------- From: Adam Ibrahim Date: Sun, May 21, 2023, 14:48 Subject: Re: bug#63629: 28.3; Emacsclient exits with no error message and breaks terminal when opening a file without permissions To: Eli Zaretskii output of `ls -l`: ls -l no-perms ---------- 1 u0_a331 u0_a331 0 May 21 14:27 no-perms commands used: emacs --fg-daemon -Q emacsclient no-perms # in a separate terminal what stops working: when I type, the letters I type don't appear in the terminal anymore. nothing is echoed back to me. stuff still happens, and I can enter commands, but I can't see anything. And the terminal width seems screwed up. like things that should get indented, they don't look right. I've tried this on two terminal emulators: termux on Android and kitty on my desktop running Linux. On termux the problems in the terminal are consistent. and kitty, it happens sometimes. sometimes the terminal continues to function like normal and I can see the keys I typed echoed back to me, and sometimes not. what happens when I try using GDB: I can only use GDB on my desktop right now. when I try running `gdb emacsclient no-perms`, it prints an error message: `/path/to/no-perms: Permission denied`. So whatever this problem is, it doesn't show up in GDB on my desktop. On Sun, May 21, 2023, 14:21 Eli Zaretskii wrote: > > From: Adam Ibrahim > > Date: Sun, 21 May 2023 14:08:50 -0400 > > > > when I use emacsclient on a file that I don't have permissions to open, > > two problems happen: the client exits without printing an error message > > so I have no idea what's going on, and then the terminal is broken. when > > I type into it, no keys are echoed back. though when I press enter > > whatever I typed in does get submitted to the shell. > > > > Neither of these happens when I have emacsclient open up a graphical > > frame. I've tried these out with my emacs server run with `-Q`, so I've > > ruled out my configuration as a reason. > > Please show the results of "ls -l" on this problematic file, and also > please show the exact emacsclient command you use which causes the > problem. > > And what exactly do you mean by "the terminal is broken"? what doesn't > work afterwards and which terminal emulator is that? > > (My guess is that emacsclient crashes, so perhaps try running it from > GDB, and see what that produces.) > --00000000000030ccc405fc38b9c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

---------- Forwarded message ---------
From: Adam Ibrahim <ibrahimadam193@gmail.c= om>
Date: Sun, May 21, 2023, 14:48
Subject: Re: bug#636= 29: 28.3; Emacsclient exits with no error message and breaks terminal when = opening a file without permissions
To: Eli Zaretskii <eliz@gnu.org>


ou= tput of `ls -l`:

=C2=A0ls -l n= o-perms
=C2=A0---------- 1 u0_a331 u0_a331 0 May 21 = 14:27 no-perms

commands = used:

=C2=A0emacs --fg-d= aemon -Q
=C2=A0emacsclient no-perms # in a separate = terminal

what stops work= ing: when I type, the letters I type don't appear in the terminal anymo= re. nothing is echoed back to me. stuff still happens, and I can enter comm= ands, but I can't see anything. And the terminal width seems screwed up= . like things that should get indented, they don't look right.

I've tried this on two termi= nal emulators: termux on Android and kitty on my desktop running Linux. On = termux the problems in the terminal are consistent. and kitty, it happens s= ometimes. sometimes the terminal continues to function like normal and I ca= n see the keys I typed echoed back to me, and sometimes not.=C2=A0

what happens when I try using GD= B: I can only use GDB on my desktop right now. when I try running `gdb emac= sclient no-perms`, it prints an error message: `/path/to/no-perms: Permissi= on denied`. So whatever this problem is, it doesn't show up in GDB on m= y desktop.


On Sun, May 21, 2023, 14:21 Eli= Zaretskii <eliz@gnu.org> wrote:
ibrahimadam193@gmail.com= >
> Date: Sun, 21 May 2023 14:08:50 -0400
>
> when I use emacsclient on a file that I don't have permissions to = open,
> two problems happen: the client exits without printing an error messag= e
> so I have no idea what's going on, and then the terminal is broken= . when
> I type into it, no keys are echoed back. though when I press enter
> whatever I typed in does get submitted to the shell.
>
> Neither of these happens when I have emacsclient open up a graphical > frame. I've tried these out with my emacs server run with `-Q`, so= I've
> ruled out my configuration as a reason.

Please show the results of "ls -l" on this problematic file, and = also
please show the exact emacsclient command you use which causes the
problem.

And what exactly do you mean by "the terminal is broken"? what do= esn't
work afterwards and which terminal emulator is that?

(My guess is that emacsclient crashes, so perhaps try running it from
GDB, and see what that produces.)
--00000000000030ccc405fc38b9c9--