GNU bug report logs - #31229
27.0.50; Semantic mode for Python causes segmentation fault

Previous Next

Package: emacs;

Reported by: Stuart <stuart.dilts <at> gmail.com>

Date: Sat, 21 Apr 2018 00:54:02 UTC

Severity: normal

Tags: confirmed

Found in version 27.0.50

Fixed in version 27.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Stuart <stuart.dilts <at> gmail.com>
Cc: 31229 <at> debbugs.gnu.org, Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Subject: bug#31229: 27.0.50; Semantic mode for Python causes segmentation fault
Date: Mon, 23 Apr 2018 13:13:08 -0400
Stuart wrote:

> Emacs segfaults when semantic-mode is enabled in a python buffer. To
> reproduce this, place the python code below into a file. I called it
> the_file.py'.
> Then run 'emacs -Q the_file.py', then 'M-x semantic-mode'.
>
> Here's the contents of a file that emacs crashes on:
>
> import sys
> import re
>
> def foo(x):
>     print(x)
>     print("Hello world!")
>
> def bar(x):
>     print("I'm a teapot")
>
> class emacs_bug:
>
>     def __init__():
>         pass
>

Confirmed on RHEL 7.4 (clicking around the menu bar triggers it for me).
Crashes at lread.c:1777.
Reverting f939cd0 fixes it.




This bug report was last modified 7 years and 33 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.