From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: immerrr again Newsgroups: gmane.emacs.bugs Subject: bug#21646: 25.0.50; python-nav-end-of-statement sometimes gets stuck Date: Thu, 8 Oct 2015 15:03:14 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1444305873 20440 80.91.229.3 (8 Oct 2015 12:04:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2015 12:04:33 +0000 (UTC) To: 21646@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 08 14:04:22 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from eggs.gnu.org ([208.118.235.92]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zk9vp-0001ni-Uy for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Oct 2015 14:04:22 +0200 Original-Received: from lists.gnu.org ([208.118.235.17]:37904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9vn-0001L4-79 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Oct 2015 08:04:19 -0400 Original-Received: from localhost ([::1]:33667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9vn-0003qa-5L for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Oct 2015 08:04:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9vd-0003qG-5Q for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 08:04:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zk9vW-0001Fr-Tx for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 08:04:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9vW-0001Fn-RY for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 08:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zk9vW-00041G-Ip for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 08:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: immerrr again Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Oct 2015 12:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21646 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.144430580615402 (code B ref -1); Thu, 08 Oct 2015 12:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Oct 2015 12:03:26 +0000 Original-Received: from localhost ([127.0.0.1]:59801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zk9uu-00040L-Se for submit@debbugs.gnu.org; Thu, 08 Oct 2015 08:03:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zk9us-00040D-HE for submit@debbugs.gnu.org; Thu, 08 Oct 2015 08:03:23 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:54514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9us-0001Br-9h for submit@debbugs.gnu.org; Thu, 08 Oct 2015 08:03:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9um-0003n3-VN for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 08:03:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zk9ul-0001At-6v for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 08:03:16 -0400 Original-Received: from mail-yk0-x22c.google.com ([2607:f8b0:4002:c07::22c]:35964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zk9ul-0001Ah-26 for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2015 08:03:15 -0400 Original-Received: by ykba192 with SMTP id a192so42150844ykb.3 for ; Thu, 08 Oct 2015 05:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=adWSLmkanq53xybXb35U2+KUIUwFibMfV0jyydeQuqU=; b=ujEu5GKLHw3hHVJ9zk2dDht5P8ByNTPfYFsh/wuhzsja4yr+wgb1BTwpeZU/cKVlfq UCUHbRfalgVpUC7Pi6Rdz2NNPUSApL9okePIuduSGzo0eN65TTWITrH5N0Jhib/Tcv6S 4TOOVw7f7V0y9iD0AbY5SSosLrowVkYBBEmoD9shdXjMk4y7t8dRCAn85hcdJwOJqQ+9 dhpGpq7m85sPnoefrnUBaJKw6pBu7eymKWQhWI0qx+l6a2C9x19/vIb1WJx4Ukx6kB1I mJZ+t4iK6LUNbcRPAfbOjKFhoLYqCxcD8fQMPzsh7VNJl4JOg6gn6/Ne02SJoJX8cDlX telA== X-Received: by 10.129.50.16 with SMTP id y16mr4709920ywy.3.1444305794208; Thu, 08 Oct 2015 05:03:14 -0700 (PDT) Original-Received: by 10.13.212.197 with HTTP; Thu, 8 Oct 2015 05:03:14 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x Xref: news.gmane.org gmane.emacs.bugs:107436 Archived-At: I have recently re-populated configuring my .emacs.d removing all the cruft that had accumulated over several years and after that reset I started encountering weird issues with python-mode. Sometimes (quite rare, couple times a day, when I try to open a file the window freezes and stops responding even to ESC ESC ESC). When I gdb into the process, I see the code looping indefinitely in python-nav-end-of-statement hopping around a triple-quote string on a statement that looked like this (with "|" being point): my_var = ""|" .. some .. string .. here """ my_other_var = """ .. some .. string .. here """ Here's the full backtrace: "python-nav-end-of-statement" (0x906566b8) "python-info-end-of-statement-p" (0x90656830) "python-info-end-of-block-p" (0x906569c8) "python-nav--forward-sexp" (0x90656b88) "python-nav-forward-sexp" (0x90656d48) "python-nav-backward-sexp" (0x90656f00) "python-info-docstring-p" (0x90657088) "python-font-lock-syntactic-face-function" (0x90657200) "font-lock-fontify-syntactically-region" (0x90657400) "font-lock-default-fontify-region" (0x906575f0) "font-lock-fontify-region" (0x906577e8) 0x3bb9920 PVEC_COMPILED "run-hook-wrapped" (0x90657af0) "jit-lock--run-functions" (0x90657cf0) "jit-lock-fontify-now" (0x90657f08) "jit-lock-function" (0x90658108) "window-end" (0x90659718) "linum-update-window" (0x90659918) "mapc" (0x90659a60) "linum-update" (0x90659c60) 0x3012080 PVEC_COMPILED "walk-windows" (0x9065a030) "linum-after-config" (0x9065a220) "set-window-buffer" (0x9065a3e0) "switch-to-buffer" (0x9065a5e8) "find-file" (0x9065a770) "find-file-at-point" (0x9065a9a8) "helm-find-file-or-marked" (0x9065ab50) "helm-execute-selection-action-1" (0x9065ace0) "helm-execute-selection-action" (0x9065aec0) "helm-internal" (0x9065b068) "apply" (0x9065b210) "helm" (0x9065b3b8) "apply" (0x9065b560) "helm" (0x9065b730) "helm-find-files-1" (0x9065b948) "helm-find-files" (0x9065bbc0) "funcall-interactively" (0x9065bbb8) "call-interactively" (0x9065be10) "command-execute" (0x9065bfa8) In python-nav-end-of-statement it seems to be stuck in (python-syntax-context 'string) branch, as sometimes I would see re-search-forward in the backtrace, too. Unfortunately, this issue does not manifest itself reliably and I don't have much time to spare debugging this issue further. Any ideas on what to do next? In GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2015-10-06 Repository revision: 3248a9b6b2dff2e3c8fa41afc159efa3d594aff0 Windowing system distributor 'The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.5 LTS Configured using: 'configure --prefix=/home/immerrr/.local' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: diff-auto-refine-mode: t jedi-mode: t guide-key-mode: t whitespace-mode: t flycheck-mode: t global-company-mode: t company-mode: t pyvenv-mode: t auto-compile-on-save-mode: t recentf-mode: t shell-dirtrack-mode: t async-bytecomp-package-mode: t projectile-global-mode: t projectile-mode: t yas-global-mode: t yas-minor-mode: t save-place-mode: t show-paren-mode: t override-global-mode: t global-linum-mode: t linum-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Checker definition probably flawed. Mark set [2 times] Buffer apiexamples.py modified; kill anyway? (y or n) y is undefined Mark set Mark saved where search started [2 times] Ag finished user-error: No window up from selected window Mark saved where search started Load-path shadows: /home/immerrr/.emacs.d/elpa/helm-20150921.1209/helm-multi-match hides /home/immerrr/.emacs.d/elpa/helm-core-20150921.1209/helm-multi-match Features: (shadow sort mail-extr align tabify two-column iso-transl face-remap emacsbug message rfc822 mml mml-sec mailabbrev gmm-utils mailheader sendmail descr-text cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ag vc-svn find-dired pulse gud vc vc-dispatcher vc-git diff-mode ido seq misearch multi-isearch company-elisp jka-compr eieio-opt speedbar sb-image ezimage dframe network-stream nsm starttls warnings company-jedi jedi-core epc ctable concurrent guide-key s ucs-normalize popwin disp-table whitespace flycheck find-func subr-x python image-file winner traad request-deferred request url-http tls url-auth url-gw mail-utils popup python-environment deferred company-files company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company pyvenv paredit auto-compile packed tramp-cache tramp-sh recentf tree-widget wid-edit helm-projectile helm-files rx image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap helm-tags helm-bookmark helm-adaptive helm-info bookmark pp helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source gnus-util password-cache url-vars mailcap helm-buffers helm-grep helm-regexp helm-plugin helm-elscreen helm-utils helm-locate helm-help helm-types helm-config helm-easymenu async-bytecomp async helm-aliases helm helm-source eieio-compat eieio eieio-core cl-macs helm-multi-match helm-lib dired projectile grep compile comint ansi-color ibuf-ext ibuffer thingatpt yasnippet cl gv saveplace hydra ring lv paren solarized-dark-theme solarized-theme solarized dash byte-opt edmacro kmacro mmr-bootstrap quelpa-use-package cl-seq quelpa package-build mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr json lisp-mnt use-package bytecomp byte-compile cl-extra help-mode cconv bind-key easy-mmode cl-loaddefs pcase cl-lib diminish linum-ex bar-cursor advice mmr-minimal mmr-ediff windmove finder-inf info package easymenu epg-config time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 527033 59339) (symbols 48 55696 0) (miscs 40 2434 1240) (strings 32 108846 8675) (string-bytes 1 3332812) (vectors 16 74239) (vector-slots 8 1837822 121059) (floats 8 963 1171) (intervals 56 10860 382) (buffers 976 36) (heap 1024 59761 5376))