From: Ami Fischman <ami@fischman.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 12745@debbugs.gnu.org
Subject: bug#12745: crash in bidi_pop_it during (idle) redisplay
Date: Sun, 28 Oct 2012 21:26:55 -0700 [thread overview]
Message-ID: <CAGKqTXW=KEcHJy47vVJYU7sYW4eVAWai+ExvQj2Ea=x=_4gJNA@mail.gmail.com> (raw)
In-Reply-To: <83fw4y8jgd.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 2344 bytes --]
> If it loads the same .emacs, that is good enough.
>
Ok, attached.
> So this seems to say that there's at least one overlay string at
> > > buffer position 1295. Is that reasonable? What was the current
> > > buffer when this crashed? You can find that out by typing this at GDB
> > > prompt:
> > > (gdb) pp current_buffer->name_
> > (gdb) pp current_buffer->name_
> > Cannot access memory at address 0x8b6a00
> How about this:
> (gdb) p current_buffer->name_
> (gdb) xtype
> (Note: "p", not "pp".)
> If the last command says it's a Lisp string, display the contents of
> 'struct Lisp_String' whose address it shows.
>
(gdb) p current_buffer->name_
$22 = 101548849
(gdb) xtype
Lisp_String
(gdb) xstring current_buffer->name_
$23 = (struct Lisp_String *) 0x60d8330
"cdm_wrapper.cc"
> > > (gdb) p current_buffer->text->beg[1200]@100
> > (gdb) p current_buffer->text->beg[1200]@100
> > $1 = "num to avoid later static_cast in\n// PluginInstance.\nenum
> > MediaKeyError {\n kUnknownError = 1,\n kCl"
> > which tells me the current buffer was an edited version of
> >
> http://src.chromium.org/viewvc/chrome/trunk/src/webkit/media/crypto/ppapi/cdm_wrapper.cc?view=markup(which
> Did that buffer have any minor mode or some other optional feature
> turned on, in addition to C++ Mode?
See attached b-g-e.txt, in which the current buffer is the same .cc file in
my HEAD session loading the same .emacs as the crashed one.
> Possibly interestingly, if I print p current_buffer->text->beg[0]@100000
> to
> > emit the entire buffer, I see this text starting at char 1675:
> > http://go", '\000' <repeats 2000 times>, "/b
> > Those 2000 NULs are definitely out of place (the URL should have started
> > with http://go/b) but I don't know if that's a debugging artifact, or
> what.
>
> This could be the gap, you should see its position and size like this:
>
> (gdb) p current_buffer->text->gpt
> (gdb) p current_buffer->text->gap_size
Yep, looks like it:
(gdb) p current_buffer->text->gpt
$24 = 1684
(gdb) p current_buffer->text->gap_size
$25 = 2000
> > (gdb) frame 6
> > > #6 0x0000000000447aa1 in pop_it (it=0x7fff2251f1e0) at xdisp.c:5769
> > > 5769 bidi_pop_it (&it->bidi_it);
> > > (gdb) pgrowx it->glyph_row
> > You can't do that without a process to debug.
> So are you debugging a core dump?
>
Yes.
-a
[-- Attachment #1.2: Type: text/html, Size: 3916 bytes --]
[-- Attachment #2: b-g-e.txt --]
[-- Type: text/plain, Size: 12508 bytes --]
Important settings:
value of $LC_ALL:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: C++/lah
Minor modes in effect:
fillcode-mode: t
fci-mode: t
flymake-mode: t
global-pointback-mode: t
pointback-mode: t
diff-auto-refine-mode: t
savehist-mode: t
winner-mode: t
persistent-thing-mode: t
nxhtml-menu-mode: t
ami-hi-lock-mode: t
hi-lock-mode: t
rcirc-track-minor-mode: t
display-time-mode: t
desktop-save-mode: t
global-auto-revert-mode: t
global-linum-mode: t
linum-mode: t
shell-dirtrack-mode: t
ami-everywhere-keys-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
auto-fill-function: c-do-auto-fill
transient-mark-mode: t
abbrev-mode: t
Load-path shadows:
/home/fischman/apps/elisp/org-mode/contrib/lisp/org-panel hides /home/fischman/apps/elisp/nxhtml-2.08-100425/util/org-panel
/home/fischman/apps/elisp/nxhtml-2.08-100425/util/pointback hides ~/.elisp/pointback
/home/fischman/apps/elisp/nxhtml-2.08-100425/related/php-mode hides ~/.elisp/php-mode
/home/fischman/apps/elisp/nxhtml-2.08-100425/related/moz hides ~/.elisp/moz
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-irc hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-irc
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-html hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-html
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-timer hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-timer
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-crypt hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-crypt
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-macs hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-macs
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-feed hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-feed
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-id hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-id
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-faces hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-faces
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-habit hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-habit
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-rmail hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-rmail
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-docview hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-docview
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-footnote hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-footnote
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-bibtex hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-bibtex
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-mhe hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-mhe
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-ctags hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-ctags
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-remember hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-remember
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-mew hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-mew
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-table hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-table
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-beamer hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-beamer
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-install hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-install
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-w3m hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-w3m
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-freemind hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-freemind
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-latex hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-latex
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-publish hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-publish
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-attach hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-attach
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-wl hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-wl
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-archive hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-archive
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-exp-blocks hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-exp-blocks
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-vm hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-vm
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-datetree hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-datetree
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-agenda hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-agenda
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-inlinetask hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-inlinetask
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-gnus hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-gnus
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-clock hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-clock
/home/fischman/apps/elisp/org-mode/contrib/lisp/org-special-blocks hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-special-blocks
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-docbook hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-docbook
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-icalendar hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-icalendar
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-mouse hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-mouse
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-bbdb hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-bbdb
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-mac-message hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-mac-message
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-protocol hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-protocol
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-ascii hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-ascii
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-exp hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-exp
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-list hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-list
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-xoxo hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-xoxo
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-indent hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-indent
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-colview hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-colview
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-plot hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-plot
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-info hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-info
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-mobile hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-mobile
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-jsinfo hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-jsinfo
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-compat hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-compat
/home/fischman/apps/elisp/org-mode/share/emacs/site-lisp/org-src hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/org/org-src
/home/build/public/eng/elisp/third_party/xmltok hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/nxml/xmltok
/home/fischman/apps/elisp/nxhtml-2.08-100425/tests/ert hides /usr/gmacs-20121027/share/emacs/24.2.50/lisp/emacs-lisp/ert
Features:
(shadow sort mail-extr emacsbug message mailabbrev gmm-utils
mailheader sendmail mail-utils vc-dispatcher vc-svn tabify apropos
debug misearch multi-isearch longlines reveal org-wl org-w3m org-vm
org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html
org-exp org-agenda org-info org-gnus org-docview org-bibtex org-bbdb
make-mode sh-script smie cc-langs disp-table fillcode cc-bytecomp
eldoc server fill-column-indicator xcscope find-things-fast
flymake-chromium flymake crel gyp
goto-last-change pointback tramp tramp-compat tramp-loaddefs
ess-toolbar ess-mous mouseme ess-menu speedbar sb-image ezimage dframe
ess-swv ess-noweb noweb-font-lock-mode essl-bugs essd-omg essl-omg
essd-els essd-sas essl-sas essa-sas executable essd-arc essd-vst
essd-xls essl-lsp essd-sta essl-sta make-regexp essd-sp6 essd-sp5
essd-sp3 essd-r essd-r-args essl-s ess-inf ess-utils ess-mode
noweb-mode ess ess-cust ess-emcs ess-site highlight-symbol shell-pop
magit parse-time smerge-mode diff-mode key-chord memory-usage savehist
paren mic-paren pager rc/pgn-misc winner erin ami-rotate-files
flyspell ispell rc/ami-phone describe-keymap rc/ami-blog
ami-toggle-camel-hyphens persistent-thing-mode help-mode popup-ruler
rc/ami-org org-babel-init org-babel-sh org-babel-emacs-lisp
org-babel-keys org-babel-tangle org-babel-lob org-babel-comint
org-babel-table org-babel-exp org-babel-ref org-babel org-exp-blocks
org-table cal-dst cal-menu calendar cal-loaddefs org org-footnote
org-src org-list org-faces org-compat org-macs foldout noutline
outline wdired dired rc/dos2unix caml-font rc/ami-sql sql w3m-load
nxhtml-autostart nxhtml-autoload majmodpri nxhtml-menu web-autoload
nxhtml-base calc calc-loaddefs calc-macs rc/ami-eudc eudcb-ldap ldap
eudc eudc-options-file cus-edit eudc-vars rc/ami-mailcrypt mml2015
epg-config mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailcrypt rfc822
rc/ami-just-one-space rc/ami-text-mode filladapt rc/ami-fonts pulse
ps-print ps-def lpr rc/ami-ieverything ido mcomplete rc/ami-windows
windmove bbdb-autoloads bbdb timezone hi-lock uniquify rcirc time
desktop vc-git git-blame format-spec git log-edit pcvs-util
add-log ewoc autorevert linum actionscript-mode edmacro
kmacro code-review snapshot sawzall cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cs
browse-url csearch tree-widget
wid-edit etags p4-files ediff-merg ediff-diff ediff-wind ediff-help
ediff-util ediff-init ediff-mult rotate-among-files rotate-clients
string p4 warnings thingatpt shell pcomplete
ffap url-parse auth-source eieio byte-opt bytecomp byte-compile cconv
gnus-util mm-util mail-prsvr password-cache url-vars
gud
cc-defs python-custom advice help-fns advice-preload
derived cl-macs gv cl cl-lib
time-date assoc grep compile elp python-mode python rx
easymenu comint ring ansi-color ami-everywhere-keys-mode
rc/ami-everywhere-keys-mode easy-mmode cus-start cus-load tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
x-toolkit x multi-tty emacs)
next prev parent reply other threads:[~2012-10-29 4:26 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 3:31 bug#12745: crash in bidi_pop_it during (idle) redisplay Paul Eggert
2012-10-28 7:49 ` Paul Eggert
2012-10-28 7:50 ` Paul Eggert
2012-10-28 17:23 ` Eli Zaretskii
2012-10-28 19:00 ` Ami Fischman
2012-10-28 19:50 ` Eli Zaretskii
2012-10-29 4:26 ` Ami Fischman [this message]
2012-10-29 17:11 ` Eli Zaretskii
2012-10-29 17:56 ` Ami Fischman
2012-10-29 18:10 ` Eli Zaretskii
2012-10-29 18:29 ` Ami Fischman
2012-10-29 18:55 ` Eli Zaretskii
2012-10-29 18:56 ` Alp Aker
2012-10-29 19:09 ` Alp Aker
2012-10-29 19:23 ` Ami Fischman
2012-10-29 20:24 ` Eli Zaretskii
2012-10-29 20:57 ` Eli Zaretskii
2012-10-29 21:08 ` Ami Fischman
2012-10-30 17:52 ` Eli Zaretskii
2012-10-30 18:29 ` Ami Fischman
2012-10-30 21:00 ` Eli Zaretskii
2012-10-30 21:08 ` Ami Fischman
2012-10-31 15:46 ` Eli Zaretskii
2012-11-01 22:25 ` Ami Fischman
2012-11-02 7:17 ` Eli Zaretskii
2012-11-02 7:43 ` Ami Fischman
2012-11-03 9:31 ` Eli Zaretskii
2012-10-29 20:25 ` Eli Zaretskii
2012-10-29 20:42 ` Alp Aker
2012-10-29 20:59 ` Eli Zaretskii
2012-10-29 21:25 ` Alp Aker
2012-10-29 21:53 ` Alp Aker
2012-11-23 20:14 ` Ami Fischman
2012-11-23 21:56 ` Eli Zaretskii
2012-11-25 4:52 ` Ami Fischman
2012-11-25 16:51 ` Eli Zaretskii
2013-02-10 3:07 ` Glenn Morris
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='CAGKqTXW=KEcHJy47vVJYU7sYW4eVAWai+ExvQj2Ea=x=_4gJNA@mail.gmail.com' \
--to=ami@fischman.org \
--cc=12745@debbugs.gnu.org \
--cc=eliz@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).