From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stuart Newsgroups: gmane.emacs.bugs Subject: bug#31229: 27.0.50; Semantic mode for Python causes segmentation fault Date: Fri, 20 Apr 2018 18:20:07 -0600 Message-ID: <176c1513-6dc3-a274-293a-1dc85034beb9@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1524271932 13456 195.159.176.226 (21 Apr 2018 00:52:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2018 00:52:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 To: 31229@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 02:52:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9gl5-0003PD-6m for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Apr 2018 02:52:07 +0200 Original-Received: from localhost ([::1]:50498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9gnA-0000SG-C1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Apr 2018 20:54:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9gn0-0000R2-SM for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2018 20:54:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9gmw-0001cg-VX for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2018 20:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54795) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9gmw-0001cL-RY for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2018 20:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f9gmw-00045g-Ey for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2018 20:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stuart Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Apr 2018 00:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152427201315681 (code B ref -1); Sat, 21 Apr 2018 00:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Apr 2018 00:53:33 +0000 Original-Received: from localhost ([127.0.0.1]:34459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9gmS-00044q-JY for submit@debbugs.gnu.org; Fri, 20 Apr 2018 20:53:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9gGQ-0003J1-0p for submit@debbugs.gnu.org; Fri, 20 Apr 2018 20:20:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9gGJ-0004Y2-9H for submit@debbugs.gnu.org; Fri, 20 Apr 2018 20:20:20 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9gGI-0004Xq-UB for submit@debbugs.gnu.org; Fri, 20 Apr 2018 20:20:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9gGH-0006Us-Ho for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2018 20:20:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9gGD-0004Vk-F1 for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2018 20:20:16 -0400 Original-Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:40413) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9gGD-0004UQ-1n for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2018 20:20:13 -0400 Original-Received: by mail-io0-x22c.google.com with SMTP id t123-v6so12407727iof.7 for ; Fri, 20 Apr 2018 17:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:subject:from:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=GuEVso/uwBXDMm7rTsmLnRboApfgLGuLABoJAYNkvxA=; b=inU5WswVNoNV7zSbAOlEU09Fv0M16z7Jtdclaa1NcRbUa9KK5iy5wcHj02cf3/6g+B AB6FOaDutnbUpcBPa8K+5f5Mchz6ApuSB/RjOqSGNaHfOjeIOcR1uHL9riI1QdiDzr37 LEohQ8/tAiBywMGQWy2shBHnQhuEOJmUJZzA3ynQoYQI84OlU7Y1QZVrjACpoQYlMw8u Nqf9VqhVQ1gYAfnjuQPyZIDb9pDQ5ylCZXS6knEGs7N/VxSnm+3AYh+K1FN8atVMXow0 3nUYPufZIThapm7qUOT3W+cQHm8KiqrNbH51JaHF8YglDtEbGdz8ITIiO8g3aeSkjDLv yQew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=GuEVso/uwBXDMm7rTsmLnRboApfgLGuLABoJAYNkvxA=; b=CaiEpMhdLFVEr/w6lJukb2nxoRv4Myk8HOvI2NCsSMMPfOINQyrDKmL8csF8TxG2sD wSO/0xHoGsj6DAlQ2PryDE/MD96pV02DFJtZuxOSTLMbpVDg20UQvLAocVvc/p5hAyCO Rjez8kxHWt3XujnsnD/WnRRDUc1FGIgoe/UBFdTz5frQJ1TySs6zxY7ODPus3Bb9Afy7 2VI+Sn0GSWpfkcypccPxQ/8IWxkn6RDBGjYuXUKC0b3XqZT5cmVrW4w9fQiVxuILJ92s 1NJSLv6FJJvlpC5IsZjoFqdL0S6L5JuJtRilvpZwO5NMtdMcIvaR82MsBg00ZAmoSF5Q 50Fg== X-Gm-Message-State: ALQs6tAgNEJYPo7YaETDEyKkWcm7qCcrRtSa8jo8aRnXKk4ZZzaeDrGL fLDZ/sGxCWFydOS/oy5nRUP3nKZt X-Google-Smtp-Source: AIpwx48bpmoxBZzp27yHD+DEEzRu6jma+/VnvNr4Jpf1+bG3jv4v7PFwQSW/3CC3C8XNgqoUHBKiyg== X-Received: by 2002:a6b:6b0b:: with SMTP id g11-v6mr13525304ioc.33.1524270010515; Fri, 20 Apr 2018 17:20:10 -0700 (PDT) Original-Received: from linux.local (host-174-45-108-173.bzm-mt.client.bresnan.net. [174.45.108.173]) by smtp.gmail.com with ESMTPSA id r16-v6sm3445646ioc.85.2018.04.20.17.20.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 17:20:09 -0700 (PDT) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 20 Apr 2018 20:53:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145649 Archived-At: 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 Output from gdb: (gdb) run -Q the_file.py The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /usr/local/bin/emacs -Q asdf.py [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffebceb700 (LWP 13170)] [New Thread 0x7fffeb077700 (LWP 13171)] [New Thread 0x7fffea876700 (LWP 13172)] Detaching after vfork from child process 13173. Detaching after vfork from child process 13174. Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. 0x000000000057c72e in XCDR (c=0x0) at lisp.h:1311 1311 return lisp_h_XCDR (c); In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2018-04-20 built on linux.local Repository revision: 495963cfaf535646350051f47c085b84319572f0 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: openSUSE Tumbleweed Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-x-toolkit=lucid --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES THREADS LIBSYSTEMD JSON Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 98897 9202) (symbols 48 20073 1) (miscs 40 152 120) (strings 32 29441 2024) (string-bytes 1 776368) (vectors 16 15787) (vector-slots 8 537860 13692) (floats 8 50 67) (intervals 56 272 12) (buffers 992 12))