From: dick <dick.r.chiang@gmail.com>
To: 56372@debbugs.gnu.org
Subject: bug#56372: 29.0.50; [PATCH] Avoid BadMatch X11 error
Date: Mon, 04 Jul 2022 00:50:09 -0400 [thread overview]
Message-ID: <87r131fpmm.fsf@dick> (raw)
In-Reply-To: <87czemtfv0.fsf@dick> (dick r. chiang's message of "Sun, 03 Jul 2022 10:45:07 -0400")
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-Avoid-segfault.patch --]
[-- Type: text/x-diff, Size: 1472 bytes --]
From 5d2442a836a5641f8f1c2b4a844fe510a77bd8c5 Mon Sep 17 00:00:00 2001
From: dickmao <dick.r.chiang@gmail.com>
Date: Mon, 4 Jul 2022 00:47:34 -0400
Subject: [PATCH] Avoid segfault
* src/xterm.c (x_connection_closed): Avoid segfault.
---
src/xterm.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index c5acb450837..464887da975 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -23518,17 +23518,18 @@ x_connection_closed (Display *dpy, const char *error_message, bool ioerror)
fprintf (stderr, "X error handlers currently installed:\n");
- for (failable = dpyinfo->failable_requests;
- failable < dpyinfo->next_failable_request;
- ++failable)
- {
- if (failable->end)
- fprintf (stderr, "Ignoring errors between %lu to %lu\n",
- failable->start, failable->end);
- else
- fprintf (stderr, "Ignoring errors from %lu onwards\n",
- failable->start);
- }
+ if (dpyinfo)
+ for (failable = dpyinfo->failable_requests;
+ failable < dpyinfo->next_failable_request;
+ ++failable)
+ {
+ if (failable->end)
+ fprintf (stderr, "Ignoring errors between %lu to %lu\n",
+ failable->start, failable->end);
+ else
+ fprintf (stderr, "Ignoring errors from %lu onwards\n",
+ failable->start);
+ }
for (stack = x_error_message; stack; stack = stack->prev)
fprintf (stderr, "Trapping errors from %lu\n",
--
2.36.1
next prev parent reply other threads:[~2022-07-04 4:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-03 14:45 bug#56372: 29.0.50; [PATCH] Avoid BadMatch X11 error dick.r.chiang
2022-07-04 0:50 ` Katsumi Yamaoka
2022-07-04 5:21 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-04 23:15 ` Katsumi Yamaoka
2022-07-04 1:16 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-04 6:05 ` po lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-05 0:21 ` dick
2022-07-05 1:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-04 4:50 ` dick [this message]
2022-07-04 10:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-04 10:19 ` Lars Ingebrigtsen
2022-07-04 10:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-04 12:12 ` dick
2022-07-04 12:34 ` Po Lu 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=87r131fpmm.fsf@dick \
--to=dick.r.chiang@gmail.com \
--cc=56372@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 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.