Package: emacs24
Version: 24.1+1-4
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
When this expression is evaluated, Emacs will abort.
(with-temp-buffer
(insert "#\n*\n")
(goto-char (point-min))
(add-hook 'after-change-functions
(lambda (a b c) (re-search-forward "\n" nil t)))
(replace-regexp "^\\*" " *"))
It is also provided in an attached file, example.el, in order to make
this easier to demonstrate.
emacs -q -l example.el
The abort() occurs in the check at the beginning of
buf_charpos_to_bytepos() in marker.c, because the point has left the
buffer bounds. I ran into this bug while trying to perform this
replace-regexp while in a third-party markdown-mode, and narrowed it
down to this combination of events.
This bug also appears in emacs23 in both squeeze and sid as well as
upstream and non-Debian builds of Emacs.
- -- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages emacs24 depends on:
ii emacs24-bin-common 24.1+1-4
ii gconf-service 3.2.5-1
ii libasound2 1.0.25-3
ii libatk1.0-0 2.4.0-2
ii libc6 2.13-35
ii libcairo2 1.12.2-2
ii libdbus-1-3 1.6.2-2
ii libfontconfig1 2.9.0-7
ii libfreetype6 2.4.9-1
ii libgconf-2-4 3.2.5-1
ii libgdk-pixbuf2.0-0 2.26.1-1
ii libgif4 4.1.6-9.1
ii libglib2.0-0 2.32.3-1
ii libgnutls26 2.12.20-1
ii libgomp1 4.7.1-5
ii libgpm2 1.20.4-6
ii libgtk2.0-0 2.24.10-1
ii libice6 2:1.0.8-2
ii libjpeg8 8d-1
ii libm17n-0 1.6.3-2
ii libmagickcore5 8:6.7.7.10-2
ii libmagickwand5 8:6.7.7.10-2
ii libncurses5 5.9-10
ii libotf0 0.9.12-2
ii libpango1.0-0 1.30.0-1
ii libpng12-0 1.2.49-2
ii librsvg2-2 2.36.1-1
ii libselinux1 2.1.9-5
ii libsm6 2:1.2.1-2
ii libtiff4 3.9.6-7
ii libtinfo5 5.9-10
ii libx11-6 2:1.5.0-1
ii libxft2 2.3.1-1
ii libxml2 2.8.0+dfsg1-5
ii libxpm4 1:3.5.10-1
ii libxrender1 1:0.9.7-1
ii zlib1g 1:1.2.7.dfsg-13
emacs24 recommends no packages.
Versions of packages emacs24 suggests:
ii emacs24-common-non-dfsg 24.1+1-1
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEbBAEBAgAGBQJQEvPhAAoJEGEzgsVIsrhBLZgH+I58FzdEF1gTAfvVHKGxcsqp
K4mRe1JD56QEuCzIffmx9CSS4cooq5ohPGjaws3bFcZkXEQ953LJHHFDpLsKkc0I
wvkiEDHFP0nQ4ul8da0iwSUacOy9tVcl4GyI9xhyqF2pzbHTkzMr8gmaMrtyg8PI
ufojRFtSef90DIfmftnsyuuYicOyRMG1xB0zdP5GgRpAE3uOa5k+dihCdAfZsHXt
X+qZXG+OCy7WXqk7ZFRY2XuKkSBHiR/V6Zq+EyWQIEvelHzLt635yV3hGNaNDtoM
VwRVvQhDaN1j4RXwALcKsCxbSIQtSue3aSfQrDl0FYiMsCu0ZoVPy9p3ZjZG+g==
=m+x8
-----END PGP SIGNATURE-----
(with-temp-buffer
(insert "#\n*\n")
(goto-char (point-min))
(add-hook 'after-change-functions
(lambda (a b c) (re-search-forward "\n" nil t)))
(replace-regexp "^\\*" " *"))