From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: kun.liu@gmail.com, 70760@debbugs.gnu.org
Subject: bug#70760: 29.3.50; core dumps when copy in other apps
Date: Sat, 18 May 2024 20:54:32 +0300 [thread overview]
Message-ID: <86h6evc8fb.fsf@gnu.org> (raw)
In-Reply-To: <874javxdns.fsf@gmx.de> (message from Michael Albinus on Sat, 18 May 2024 18:55:51 +0200)
> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: kun.liu@gmail.com, 70760@debbugs.gnu.org
> Date: Sat, 18 May 2024 18:55:51 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > OK. So how could a non-D-Bus event end up being interpreted as a
> > D-Bus event?
>
> We see calls of dbus-event-handler in the backtrace shown by Kun
> Liu. This can happen only via special-mode-map, when an event is
> detected in the event queue, which is a list with the car being the
> symbol `dbus-event'. The rest of the event is not checked at this point,
> the event is checked for D-Bus properness in the handler.
>
> We have also seen by the tests of Kun Liu, that no external D-Bus event
> has arrived at this time. So I guess either such an invalid D-Bus event
> has been pushed by another package to the event queue, or an existing
> valid event has been modified that the car is the symbol `dbus-event'.
But the only place in Emacs that generates dbus-event events is
dbusbind.c, right? So in that case, the first suspect is some Lisp
package that pushes such events onto the Emacs event queue, do you
agree?
> > The only hint we have until now is that this happens when copying
> > stuff from other applications. Does that ring any bells or suggest
> > any ideas?
>
> Not for me. What I have seen is that xd_add_watch calls add_read_fd. But
> in process.c, there is also the function add_non_keyboard_read_fd. I
> have no idea what's the difference, but this function must exist for a
> reason. Would it make sense to use this function instead? Just a wild
> guess.
Yes, the descriptors we use to read sub-process output are
non-keyboard descriptors. But as far as I understand what you say,
there's no way for those descriptors to generate dbus-event events.
next prev parent reply other threads:[~2024-05-18 17:54 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-03 21:30 bug#70760: 29.3.50; core dumps when copy in other apps Kun Liu
2024-05-04 7:11 ` Eli Zaretskii
2024-05-04 18:08 ` Kun Liu
2024-05-04 19:02 ` Eli Zaretskii
[not found] ` <CA+Nei8PsdEL-bOOQg86aZk1n1ahpb38XUokyHR98muaRTUY+5Q@mail.gmail.com>
2024-05-04 21:37 ` Kun Liu
2024-05-05 5:11 ` Eli Zaretskii
2024-05-05 15:45 ` Kun Liu
2024-05-05 16:12 ` Eli Zaretskii
2024-05-05 16:44 ` Kun Liu
2024-05-05 17:11 ` Kun Liu
2024-05-05 17:34 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14 6:17 ` Kun Liu
2024-05-14 7:13 ` Eli Zaretskii
2024-05-15 10:35 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-15 16:27 ` Kun Liu
2024-05-15 17:54 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-15 18:25 ` Kun Liu
2024-05-15 21:06 ` Kun Liu
2024-05-16 9:20 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-16 19:07 ` Kun Liu
2024-05-17 16:23 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-17 17:34 ` Eli Zaretskii
2024-05-17 20:43 ` Kun Liu
2024-05-18 0:34 ` Kun Liu
2024-05-18 10:32 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-18 11:44 ` Eli Zaretskii
2024-05-18 11:54 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-18 12:09 ` Eli Zaretskii
2024-05-18 16:55 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-18 17:54 ` Eli Zaretskii [this message]
2024-05-18 18:22 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-18 19:20 ` Eli Zaretskii
2024-05-16 9:07 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86h6evc8fb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=70760@debbugs.gnu.org \
--cc=kun.liu@gmail.com \
--cc=michael.albinus@gmx.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.