From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Schmitt Newsgroups: gmane.emacs.devel Subject: Re: flymake mode freezes emacs Date: Tue, 07 Aug 2007 09:05:03 +0200 Message-ID: <46B8199F.1000501@brainbot.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186470357 16736 80.91.229.12 (7 Aug 2007 07:05:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 07:05:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 09:05:54 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IIJ8Y-0006Lh-1j for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 09:05:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIJ8W-0001d1-6e for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 03:05:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIJ8S-0001cw-PU for emacs-devel@gnu.org; Tue, 07 Aug 2007 03:05:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIJ8N-0001cS-La for emacs-devel@gnu.org; Tue, 07 Aug 2007 03:05:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIJ8N-0001cH-IW for emacs-devel@gnu.org; Tue, 07 Aug 2007 03:05:39 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IIJ8K-0004fh-CN for emacs-devel@gnu.org; Tue, 07 Aug 2007 03:05:38 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIJ84-0005wx-4X for emacs-devel@gnu.org; Tue, 07 Aug 2007 03:05:20 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IIJ7x-0002AC-2X for emacs-devel@gnu.org; Tue, 07 Aug 2007 09:05:13 +0200 Original-Received: from mail.brainbot.com ([217.86.167.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Aug 2007 09:05:13 +0200 Original-Received: from ralf by mail.brainbot.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Aug 2007 09:05:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 111 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mail.brainbot.com User-Agent: Icedove 1.5.0.12 (X11/20070731) In-Reply-To: X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76129 Archived-At: Richard Stallman wrote: > with certain input files. If I load the attached python file and turn on > flymake mode, emacs freezes. > > Can you try debugging what is happening? > See etc/DEBUG for advice. It's trying to repeatedly match some regular expressions. (The re_match_2_internal function is called again and again, I added some print statements...). Here is some stacktrace. I guess this is easier to debug directly from the lisp code, but I can't help with that.. (gdb) r ~/wiki.py Starting program: /home/ralf/w/emacs-multi-tty/src/emacs ~/wiki.py [Thread debugging using libthread_db enabled] [New Thread 47918546614928 (LWP 29474)] Program received signal SIGTSTP, Stopped (user). [Switching to Thread 47918546614928 (LWP 29474)] 0x00000000004fbda2 in re_match_2_internal (bufp=0x9e5258, string1=0x0, size1=0, string2=0x14c6050 ' ' ..., size2=401, pos=10, regs=0x9d77c0, stop=401) at regex.c:5465 5465 if (c < (unsigned) (CHARSET_BITMAP_SIZE (&p[-1]) * BYTEWIDTH) (gdb) bt #0 0x00000000004fbda2 in re_match_2_internal (bufp=0x9e5258, string1=0x0, size1=0, string2=0x14c6050 ' ' ..., size2=401, pos=10, regs=0x9d77c0, stop=401) at regex.c:5465 #1 0x00000000004fd5ca in re_search_2 (bufp=0x9e5258, str1=0x0, size1=0, str2=0x14c6050 ' ' ..., size2=401, startpos=10, range=, regs=0x9d77c0, stop=401) at regex.c:4455 #2 0x00000000004fdcd3 in re_search (bufp=0x7fffc5453340, string=0x0, size=0, startpos=21726946, range=, regs=) at regex.c:4227 #3 0x00000000004f685d in string_match_1 (regexp=19448755, string=22042099, start=, posix=0) at search.c:457 #4 0x000000000051d004 in Ffuncall (nargs=, args=) at eval.c:3036 #5 0x0000000000548bb2 in Fbyte_code (bytestr=, vector=11474641, maxdepth=145) at bytecode.c:679 #6 0x000000000051cad8 in funcall_lambda (fun=21328628, nargs=1, arg_vector=0x7fffc54570f8) at eval.c:3217 #7 0x000000000051ce86 in Ffuncall (nargs=, args=) at eval.c:3087 #8 0x0000000000548bb2 in Fbyte_code (bytestr=, vector=12227409, maxdepth=113) at bytecode.c:679 #9 0x000000000051cad8 in funcall_lambda (fun=21012180, nargs=2, arg_vector=0x7fffc5457288) at eval.c:3217 #10 0x000000000051ce86 in Ffuncall (nargs=, args=) at eval.c:3087 #11 0x0000000000548bb2 in Fbyte_code (bytestr=, vector=12227409, maxdepth=12) at bytecode.c:679 #12 0x000000000051cad8 in funcall_lambda (fun=21577764, nargs=1, arg_vector=0x7fffc5457408) at eval.c:3217 #13 0x000000000051ce86 in Ffuncall (nargs=, args=) at eval.c:3087 #14 0x0000000000548bb2 in Fbyte_code (bytestr=, vector=11567681, maxdepth=26) at bytecode.c:679 #15 0x000000000051cad8 in funcall_lambda (fun=20077524, nargs=2, arg_vector=0x7fffc5457598) at eval.c:3217 #16 0x000000000051ce86 in Ffuncall (nargs=, args=) at eval.c:3087 #17 0x000000000051e7e5 in Fapply (nargs=2, args=0x7fffc5457610) at eval.c:2518 #18 0x000000000051e940 in apply1 (fn=21333729, arg=) at eval.c:2779 #19 0x000000000051b695 in internal_condition_case_1 (bfun=0x54b4e0 , arg=19679141, handlers=10569201, hfun=0x54b4a0 ) at eval.c:1538 #20 0x000000000054ad7a in read_process_output (proc=22327956, channel=) at process.c:5194 #21 0x000000000054b834 in status_notify (deleting_process=0x0) at process.c:6797 #22 0x000000000055073c in wait_reading_process_output (time_limit=0, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=10455441, wait_proc=0x0, just_wait_proc=0) at process.c:4464 #23 0x00000000004bcc74 in read_char (commandflag=1, nmaps=4, maps=0x7fffc5459050, prev_event=, used_mouse_menu=0x7fffc5459170, end_time=0x0) at keyboard.c:4150 #24 0x00000000004bf8d2 in read_key_sequence (keybuf=0x7fffc54591e0, bufsize=30, prompt=10455441, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9380 #25 0x00000000004c15f0 in command_loop_1 () at keyboard.c:1696 #26 0x000000000051b917 in internal_condition_case (bfun=0x4c1450 , handlers=10569201, hfun=0x4bb5e0 ) at eval.c:1488 #27 0x00000000004ba99a in command_loop_2 () at keyboard.c:1405 #28 0x000000000051ba07 in internal_catch (tag=, func=0x4ba980 , arg=10455441) at eval.c:1223 #29 0x00000000004bb423 in command_loop () at keyboard.c:1384 #30 0x00000000004bb7bc in recursive_edit_1 () at keyboard.c:993 #31 0x00000000004bb921 in Frecursive_edit () at keyboard.c:1055 #32 0x00000000004afcfb in main (argc=2, argv=0x7fffc5459a88) at emacs.c:1772