all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 13743@debbugs.gnu.org
Subject: bug#13743: 24.2.93; Segmentation fault when trying to [s]teal a file opened elsewhere
Date: Thu, 21 Feb 2013 12:30:24 +0400	[thread overview]
Message-ID: <5125DB20.4090609@yandex.ru> (raw)
In-Reply-To: <83ehgaok86.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

On 20.02.2013 23:31, Eli Zaretskii wrote:
> Thanks.  This shows quite a different story.  But the backtrace alone
> is not enough to figure out what goes wrong in this scenario and why,
> at least not for me (and I don't see anyone else jumping in to dig
> into this problem).  And since reproducing this involves tricky

Thanks for looking into this, but I'd like to emphasize that so far I've 
only seen this bug on GNU/Linux.

> non-default setup and an external package, I wonder if you could
> provide a recipe starting with "emacs -Q" or with a minimal .emacs
> init file, and show every command you type to reproduce the crash?

Here's the recipe:

1. Have case2.html.erb saved somewhere (attached). The contents of the 
file are somewhat important, and also its length: if I delete the 
"sparta" line - no bug.

2. Check out this repository: https://github.com/purcell/mmm-mode

2. Open the test file in some Emacs instance, make a modification 
(prepend the first line with some spaces, for example). Don't save it.

3. Open a new Emacs instance (-Q). I'd recommend doing it with branch 
emacs-24, since trunk currently has some problems with font-lock 
(Bug#13751).

4. Paste the following into *scratch* and evaluate it:

(add-to-list 'load-path "path/to/mmm-mode")

(require 'mmm-auto)
(require 'mmm-erb)

(setq mmm-global-mode 'auto)

(mmm-add-mode-ext-class 'html-erb-mode "\\.html\\.erb\\'" 'erb)
(mmm-add-mode-ext-class 'html-erb-mode nil 'html-js)
(mmm-add-mode-ext-class 'html-erb-mode nil 'html-css)

(add-to-list 'auto-mode-alist '("\\.html\\.erb\\'" . html-erb-mode))

5. Open the test file, it will tell you that the file is locked.

6. Press `s' or `p'. See it crash.

[-- Attachment #2: case2.html.erb --]
[-- Type: text/html, Size: 513 bytes --]

  reply	other threads:[~2013-02-21  8:30 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18  6:41 bug#13743: 24.2.93; Segmentation fault when trying to [s]teal a file opened elsewhere Dmitry Gutov
2013-02-18 16:11 ` Eli Zaretskii
2013-02-19  0:52   ` Dmitry Gutov
2013-02-20 19:31     ` Eli Zaretskii
2013-02-21  8:30       ` Dmitry Gutov [this message]
2013-02-18 19:35 ` Glenn Morris
2013-02-19  0:55   ` Dmitry Gutov
2013-02-21  5:16 ` Paul Eggert
2013-02-21  7:03   ` Dmitry Gutov
2013-02-23  3:37   ` Dmitry Gutov
2013-02-23 15:10     ` Eli Zaretskii
2013-02-23 16:59       ` Stefan Monnier
2013-02-23 18:44         ` Eli Zaretskii
2013-02-24 15:28           ` Dmitry Gutov
2013-02-24 15:50             ` Eli Zaretskii
2013-02-25  5:52               ` Dmitry Gutov
2013-02-25 15:25                 ` Stefan Monnier
2013-02-25 16:37                   ` Eli Zaretskii
2013-02-25 18:29                     ` Stefan Monnier
2013-02-25 18:56                       ` Eli Zaretskii
2013-02-25 20:28                         ` Stefan Monnier
2013-02-26  3:39                           ` Eli Zaretskii
2013-02-26  4:35                             ` Stefan Monnier
2013-03-02  9:30                               ` Eli Zaretskii
2013-02-25 16:25                 ` Eli Zaretskii
2013-02-25 18:27                   ` Dmitry Gutov
2013-02-25 16:27                 ` Eli Zaretskii
2013-02-25 19:08                   ` Dmitry Gutov
2013-02-25 19:31                     ` Eli Zaretskii
2013-02-25 23:23                       ` Dmitry Gutov
2013-02-26  3:51                         ` Eli Zaretskii
2013-02-26  3:59                           ` Dmitry Gutov
2013-02-26 18:42                             ` Eli Zaretskii
2013-02-27 17:46                               ` Dmitry Gutov

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=5125DB20.4090609@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=13743@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 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.