Emacs-snapshot segfaults with org-mode and linum.el

Bug #207560 reported by Daniel Hackney
10
Affects Status Importance Assigned to Milestone
emacs-snapshot (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: emacs-snapshot

The Hardy version of emacs-snapshot has a segmentation fault when org-mode is used with (set-default-font "Monospace-8"), linum-mode, and certain org-mode files. I have attached the file which causes the crash. I would have liked to have used a less personal file (it is my computer-related todos), but it there does not seem to be much of a pattern to what causes a crash.

The version of linum.el which I am using can be found here:

http://stud4.tuwien.ac.at/~e0225855/linum/linum.el

Steps to reproduce:

1. Open emacs.
2. Set the font to "Monospace-8"
3. Open the org-mode file and collapse it so just the heading is showing (using tab).
4. Load linum and run M-x linum-mode
5. Try to expand the heading with tab.

What happens:

Emacs terminates with a segmentation fault, ever time.

What should happen:

The heading should expand to show the contents, or at the very least, emacs should die a bit more gracefully.

ProblemType: Crash
Architecture: i386
CrashCounter: 1
Date: Thu Mar 27 02:27:27 2008
Disassembly: 0xb7f79410:
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/emacs-snapshot-gtk
Package: emacs-snapshot 1:20080228-1ubuntu1
PackageArchitecture: i386
ProcCmdline: emacs
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
Signal: 11
SourcePackage: emacs-snapshot
Stacktrace: #0 0xb7f79410 in ?? ()
StacktraceTop: ?? ()
ThreadStacktrace:

Title: emacs-snapshot-gtk crashed with SIGSEGV
Uname: Linux 2.6.24-12-generic i686
UserGroups: adm admin audio cdrom dialout dip disk floppy fuse lpadmin plugdev tape video

SegvAnalysis:
 Segfault happened at: 0xb7f79410:
 PC (0xb7f79410) ok
 SP (0xbfac296c) ok
 Reason could not be automatically determined. (Unhandled exception in kernel code?)
SegvReason: Reason could not be automatically determined. (Unhandled exception in kernel code?)

Revision history for this message
Daniel Hackney (haxney) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:?? ()

Revision history for this message
Apport retracing service (apport) wrote : Stack trace with source code
Revision history for this message
Leif Walsh (leif.walsh) wrote :

I believe this is a deeper bug, related to having multiple Emacs windows open. When you tab-complete, Emacs usually opens a new window (frame) to show the tab-completion list, and on my box, it segfaults immediately. I poked around a bit, and found that just opening a new window manually (C-x 2) was enough to force a segfault. If anyone knows where I can get a deb of emacs-snapshot with debugging symbols, I'll try debugging with that, otherwise I'll just download the source sometime this weekend, compile it myself, and see what I can get out of that.

Revision history for this message
Leif Walsh (leif.walsh) wrote :

See last comment.

Changed in emacs-snapshot:
status: New → Confirmed
Revision history for this message
Brendan Cully (bcully) wrote :

On my system, the bug bites me if I use Inconsolata-12, but not if I use Monospace-10. That is, if I use a ~/.Xresources like this:

Emacs.font: Monospace-10
;Emacs.font: Inconsolata-12

everything is fine. But if I move the semicolon up, C-x 2 crashes my emacs.

Revision history for this message
Daniel Hackney (haxney) wrote :

I tried adding that to my ~/.Xresources, but it still crashed on that same original file. It doesn't happen with all headings or fragments, so it seems like there is something weirdly specific going on.

Anyway, I'm using emacs version

GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-03-19 on vernadsky, modified by Debian

from Hardy's "emacs-snapshot" package.

Revision history for this message
Romain Francoise (rfrancoise) wrote : Re: [Bug 207560] Re: Emacs-snapshot segfaults with org-mode and linum.el

There's a newer snapshot for hardy in the ubuntu-elisp PPA, if you
want to give it a try the installation instructions are at

  https://launchpad.net/~ubuntu-elisp/+archive

Note that current versions of Emacs have a new release of org-mode
as well as a built-in version of linum.el so you may be trading your
existing bugs for other, fresher bugs. :)

Revision history for this message
Daniel Hackney (haxney) wrote :

I tried installing the package at the address you gave, but it failed to byte-compile semantic and so aborted the installation.

I know this is really a separate bug, but I can't create a new bug in the "Ubuntu Emacs" group, so I've attached the result of the failed compilation here.

Revision history for this message
Daniel Hackney (haxney) wrote :

I guess that it installed in spite of that. Still segfaults.

Revision history for this message
Michael Olson (mwolson) wrote :

On Wed, 13 Aug 2008 07:01:22 -0000, Daniel Hackney <email address hidden>
wrote:
> I tried installing the package at the address you gave, but it failed to
> byte-compile semantic and so aborted the installation.

The problem is due to a bug in upstream Emacs which has just been fixed
last week. The next update of emacs-snapshot ought to fix the problem.

--
| Michael Olson | FSF Associate Member #652 |
| http://mwolson.org/ | Hobbies: Lisp, HCoop |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'

Revision history for this message
Jo Vermeulen (jozilla) wrote :

I have the same problem when invoking C-x 2 (I am also using Inconsolata). Any idea when the new package will be released?

Revision history for this message
Reinhard Tartler (siretart) wrote :

Jo Vermeulen <email address hidden> writes:

> Any idea when the new package will be released?

what version did you test with? The ubuntu-elisp PPA has ATM the most
up-to-date packages

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Jo Vermeulen (jozilla) wrote :

$ emacs --version
GNU Emacs 23.0.60.1
Copyright (C) 2008 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

I'm just using the standard emacs-snapshot Ubuntu package. If there's a bug
in that one, shouldn't a fix get pushed as an update?

-- Jo

Kees Cook (kees)
description: updated
Kees Cook (kees)
description: updated
Revision history for this message
dino99 (9d9) wrote :

That version has died long ago; no more supported

Changed in emacs-snapshot (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.