From: Kim Storm <storm@cua.dk>
To: Eli Zaretskii <eliz@gnu.org>, "Jan D." <jan.h.d@swipnet.se>
Cc: 19660@debbugs.gnu.org
Subject: bug#19660: Acknowledgement (24.4.51; Crash in draw_row_fringe_bitmaps)
Date: Mon, 26 Jan 2015 12:10:11 +0100 [thread overview]
Message-ID: <54C62093.5010202@cua.dk> (raw)
In-Reply-To: <83386ysw1g.fsf@gnu.org>
On 2015-01-25 16:46, Eli Zaretskii wrote:
>> From: "Jan D." <jan.h.d@swipnet.se>
>> Date: Sun, 25 Jan 2015 10:17:20 +0100
>>
>> Fixed, but it would be nice to know why this function needs input blocked.
> This was there since day one, according to the history. Unless Kim,
> who wrote it (CC'ed), can recollect why he put the assertion there,
> I'm afraid the reason is lost in time. My wild guess would be that
> the reason is this function calls X APIs to actually draw stuff, and
> many of those block input. Perhaps Kim wasn't sure whether input
> should be blocked here.
>
> If no other information emerges, my suggestion would be to remove the
> assertion on master, and see if we get any bug reports.
>
> Thanks.
>
Hi Eli
Well, the comment above the function says that it must be called
with input blocked, so the assert simply reflects that requirement.
Usually, draw_row_fringe_bitmaps is called from draw_window_fringes
which is guarded by block_input in all places.
However, the call to draw_row_fringe_bitmaps in xdisp.c:expose_line
is not explicitly guarded, but it is called from expose_window, which
has comment: Call this function with input blocked.
Looking at the code, this seems not to be true anymore, and so
it triggers the assert ...
I have no idea whether it is still needed to block input - but at the
time, I'm sure the assert was reasonable.
Kim
prev parent reply other threads:[~2015-01-26 11:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 6:30 bug#19660: 24.4.51; Crash in draw_row_fringe_bitmaps Jan D.
2015-01-23 7:05 ` Jan D.
[not found] ` <handler.19660.B.1421994662864.ack@debbugs.gnu.org>
2015-01-25 9:17 ` bug#19660: Acknowledgement (24.4.51; Crash in draw_row_fringe_bitmaps) Jan D.
2015-01-25 15:46 ` Eli Zaretskii
2015-01-26 9:12 ` Jan D.
2015-01-26 9:31 ` Eli Zaretskii
2015-01-27 9:16 ` Jan D.
2015-01-27 17:41 ` Eli Zaretskii
2015-01-27 18:22 ` Jan D.
2015-01-27 19:13 ` Eli Zaretskii
2015-01-26 11:10 ` Kim Storm [this message]
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=54C62093.5010202@cua.dk \
--to=storm@cua.dk \
--cc=19660@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=jan.h.d@swipnet.se \
/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).