unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Adam Ibrahim <ibrahimadam193@gmail.com>
To: 63629@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAHdC_iLTogaTpVJt8QcGNw-=LJrvZFz_Yc=Qih9qw0Mhg+q81w@mail.gmail.com> (raw)
In-Reply-To: <CAHdC_iKdG9viw__B0j9Pqa4Wq9QMpLk5SSc12Ead_SSGfAFJhw@mail.gmail.com>

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

---------- Forwarded message ---------
From: Adam Ibrahim <ibrahimadam193@gmail.com>
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 <eliz@gnu.org>


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 <eliz@gnu.org> wrote:

> > From: Adam Ibrahim <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 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.)
>

[-- Attachment #2: Type: text/html, Size: 3632 bytes --]

  parent reply	other threads:[~2023-05-21 18:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-21 18:08 bug#63629: 28.3; Emacsclient exits with no error message and breaks terminal when opening a file without permissions Adam Ibrahim
2023-05-21 18:22 ` Eli Zaretskii
     [not found]   ` <CAHdC_iKdG9viw__B0j9Pqa4Wq9QMpLk5SSc12Ead_SSGfAFJhw@mail.gmail.com>
2023-05-21 18:57     ` Adam Ibrahim [this message]
2023-05-22 13:31       ` bug#63629: Fwd: " Eli Zaretskii
2023-05-23 20:30         ` Adam Ibrahim
2023-05-24 10:52           ` Eli Zaretskii
2023-05-24 12:08             ` Adam Ibrahim
2023-05-26 10:29               ` Eli Zaretskii
2023-05-31 13:20                 ` Eli Zaretskii
2023-05-21 19:05     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHdC_iLTogaTpVJt8QcGNw-=LJrvZFz_Yc=Qih9qw0Mhg+q81w@mail.gmail.com' \
    --to=ibrahimadam193@gmail.com \
    --cc=63629@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).