emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flymake mode freezes emacs


From: Ralf Schmitt
Subject: Re: flymake mode freezes emacs
Date: Tue, 07 Aug 2007 09:05:03 +0200
User-agent: Icedove 1.5.0.12 (X11/20070731)

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 ' ' <repeats 200 times>..., 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 ' ' <repeats 200 times>..., 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 ' ' <repeats 200 times>..., size2=401, startpos=10, range=<value optimized out>,
    regs=0x9d77c0, stop=401) at regex.c:4455
#2 0x00000000004fdcd3 in re_search (bufp=0x7fffc5453340, string=0x0, size=0, startpos=21726946, range=<value optimized out>, regs=<value optimized out>) at regex.c:4227 #3 0x00000000004f685d in string_match_1 (regexp=19448755, string=22042099, start=<value optimized out>,
    posix=0) at search.c:457
#4 0x000000000051d004 in Ffuncall (nargs=<value optimized out>, args=<value optimized out>) at eval.c:3036 #5 0x0000000000548bb2 in Fbyte_code (bytestr=<value optimized out>, 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=<value optimized out>, args=<value optimized out>) at eval.c:3087 #8 0x0000000000548bb2 in Fbyte_code (bytestr=<value optimized out>, 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=<value optimized out>, args=<value optimized out>) at eval.c:3087 #11 0x0000000000548bb2 in Fbyte_code (bytestr=<value optimized out>, 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=<value optimized out>, args=<value optimized out>) at eval.c:3087 #14 0x0000000000548bb2 in Fbyte_code (bytestr=<value optimized out>, 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=<value optimized out>, args=<value optimized out>) at eval.c:3087 #17 0x000000000051e7e5 in Fapply (nargs=2, args=0x7fffc5457610) at eval.c:2518 #18 0x000000000051e940 in apply1 (fn=21333729, arg=<value optimized out>) at eval.c:2779 #19 0x000000000051b695 in internal_condition_case_1 (bfun=0x54b4e0 <read_process_output_call>, arg=19679141, handlers=10569201, hfun=0x54b4a0 <read_process_output_error_handler>) at eval.c:1538 #20 0x000000000054ad7a in read_process_output (proc=22327956, channel=<value optimized out>)
    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=<value optimized out>, 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 <command_loop_1>, handlers=10569201,
    hfun=0x4bb5e0 <cmd_error>) at eval.c:1488
#27 0x00000000004ba99a in command_loop_2 () at keyboard.c:1405
#28 0x000000000051ba07 in internal_catch (tag=<value optimized out>, func=0x4ba980 <command_loop_2>,
    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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]