Subject: 23.0.90; emacs locking up when compiling

From: robert marshall <[email-masked]>
Date: Thu, 05 Feb 2009 14:54:27 +0000

I'm seeing emacs lockup around 50% of the time when running M-x
compile - when it locks it's using 100% of the cpu and C-g doesn't
interrupt it

If I attach gdb and get a backtrace 

 bt full
#0  0xb7fd6430 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb754dfb6 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0x081c3a3b in do_pending_atimers () at atimer.c:384
No locals.
#3  0x0815862a in re_match_2_internal (bufp=0x836ccd8, string1=0x0, size1=0, 
    string2=0x9bb19b0 "-*- mode: compilation; default-directory: \"~/IPSA/IPSA+1.6/IPSAplus/\" -*-\nCompilation started at Thu Feb  5                      14:40:37\n\nmake -k  QWTDIR=/home/robert/qt/qwt/trunk/lib\nmake[1]: Entering directory `/home/r"..., size2=11303, pos=7700, 
    regs=0x8362500, stop=11303) at regex.c:6043
        mcnt = 0
        reg = <value optimized out>
        not = 0 '\0'
        end1 = (const unsigned char *) 0x0
        end2 = (const unsigned char *) 0x9bb45d7 ""
        end_match_1 = (const unsigned char *) 0x0
        end_match_2 = (const unsigned char *) 0x9bb45d7 ""
        d = (
    const unsigned char *) 0x9bb3f4c "sseImportDlg.o Dialogs/PsseExport.o Dialogs/PsseExportDlg.o Dialogs/ResultsProperties.o Dialogs/                     ResultsPropertiesDlg.o Dialogs/AboutDlg.o Dialogs/LicenseProperties.o Dialogs/LicensePropertiesDlg.o Dia"...
        dend = (const unsigned char *) 0x9bb45d7 ""
        p = (const unsigned char *) 0x9a3e6aa "=f3=ff\a\001\002\001(\006\002\004\b"
        pend = (const unsigned char *) 0x9a3e735 ""
        translate = 0
        multibyte = 0 '\0'
        target_multibyte = 1 '\001'
        num_regs = 5
        regstart = (const unsigned char **) 0xbffd39c0
        regend = (const unsigned char **) 0xbffd3990
        best_regs_set = 0
        best_regstart = (const unsigned char **) 0xbffd3960
        best_regend = (const unsigned char **) 0xbffd3930
        match_end = (const unsigned char *) 0x0
#4  0x0815d8a8 in re_search_2 (bufp=0x836ccd8, 
    str1=0x9bb19b0 "-*- mode: compilation; default-directory: \"~/IPSA/IPSA+1.6/IPSAplus/\" -*-\nCompilation started at Thu Feb  5 14:                     40:37\n\nmake -k  QWTDIR=/home/robert/qt/qwt/trunk/lib\nmake[1]: Entering directory `/home/r"..., size1=11303, str2=0x9bb4da7 "", 
    size2=0, startpos=7700, range=3603, regs=0x8362500, stop=11303) at regex.c:4625
        val = <value optimized out>
        string1 = <value optimized out>
        fastmap = 0x836ccfc "\001\001\001\001\001\001\001\001\001"
        translate = 0
        total_size = 11303
        multibyte = 1 '\001'
#5  0x08155ef9 in search_buffer (string=<value optimized out>, pos=7205, pos_byte=7208, lim=11300, lim_byte=11304, n=1, RE=1, 
    trt=137870617, inverse_trt=137870617, posix=0) at search.c:1190
        val = <value optimized out>
        p2 = (unsigned char *) 0x9bb4da7 ""
        s1 = 11303
        p1 = (
    unsigned char *) 0x9bb19b0 "-*- mode: compilation; default-directory: \"~/IPSA/IPSA+1.6/IPSAplus/\" -*-\nCompilation started at Thu Feb  5 14:40:37\n\nmake -k  QWTDIR=/home/robert/qt/qwt/trunk/lib\nmake[1]: Entering directory `/home/r"...
        s2 = 0
        bufp = (struct re_pattern_buffer *) 0x836ccd8
        len = <value optimized out>
        len_byte = <value optimized out>
        i = 137870617
#6  0x08156da5 in search_command (string=155208275, bound=<value optimized out>, noerror=137870665, count=137870617, direction=1, 
    RE=1, posix=0) at search.c:972
        np = <value optimized out>
        lim = 11300
        lim_byte = 11304
        n = 1
#7  0x0817daf0 in Ffuncall (nargs=4, args=0xbffd4460) at eval.c:3054
        fun = <value optimized out>
        original_fun = 4
        funcar = <value optimized out>
        numargs = 3
        val = <value optimized out>
        backtrace = {next = 0xbffd4574, function = 0xbffd4460, args = 0xbffd4464, nargs = 3, evalargs = 0 '\0', 
  debug_on_exit = 0 '\0'}
        internal_args = (Lisp_Object *) 0xbffd43e0
        i = <value optimized out>
#8  0x081b32f8 in Fbyte_code (bytestr=136832923, vector=136832940, maxdepth=<value optimized out>) at bytecode.c:678
        op = 1
        stack = {pc = 0x82d6f8b "\202d", top = 0xbffd446c, bottom = 0xbffd4460, byte_string = 136832923, 
  byte_string_start = 0x82d6f2e "\b@=c6=\204\v", constants = 136832940, next = 0xbffd45fc}
        top = (Lisp_Object *) 0xbffd4460
        result = <value optimized out>
#9  0x0817f963 in funcall_lambda (fun=136832860, nargs=3, arg_vector=0xbffd45b4) at eval.c:3231
        val = <value optimized out>
        syms_left = <value optimized out>
        next = <value optimized out>
        i = 3
        optional = 1
        rest = 0
#10 0x0817d823 in Ffuncall (nargs=4, args=0xbffd45b0) at eval.c:3101
        fun = 136832860
        original_fun = 140418745
        funcar = <value optimized out>
        numargs = 3
        val = <value optimized out>
        backtrace = {next = 0xbffd46b4, function = 0xbffd45b0, args = 0xbffd45b4, nargs = 3, evalargs = 0 '\0', 
  debug_on_exit = 0 '\0'}
        internal_args = (Lisp_Object *) 0xbffd45b4
        i = <value optimized out>
#11 0x081b32f8 in Fbyte_code (bytestr=136829531, vector=136829548, maxdepth=<value optimized out>) at bytecode.c:678
        op = 1
        stack = {pc = 0x82d7b00 ".\r\207", top = 0xbffd45bc, bottom = 0xbffd45b0, byte_string = 136829531, 
  byte_string_start = 0x82d7a6d "\b\206\005", constants = 136829548, next = 0xbffd472c}
        top = (Lisp_Object *) 0xbffd45b0
        result = <value optimized out>
#12 0x0817f963 in funcall_lambda (fun=136829484, nargs=3, arg_vector=0xbffd46f4) at eval.c:3231
        val = <value optimized out>
        syms_left = <value optimized out>
        next = <value optimized out>
        i = 3
        optional = 0
        rest = 0
#13 0x0817d823 in Ffuncall (nargs=4, args=0xbffd46f0) at eval.c:3101
        fun = 136829484
        original_fun = 139838073
        funcar = <value optimized out>
        numargs = 3
        val = <value optimized out>
        backtrace = {next = 0xbffd47e4, function = 0xbffd46f0, args = 0xbffd46f4, nargs = 3, evalargs = 0 '\0', 
  debug_on_exit = 0 '\0'}
        internal_args = (Lisp_Object *) 0xbffd46f4
        i = <value optimized out>
#14 0x081b32f8 in Fbyte_code (bytestr=136828291, vector=136828308, maxdepth=<value optimized out>) at bytecode.c:678
        op = 1
        stack = {pc = 0x82d7d48 "\207", top = 0xbffd46fc, bottom = 0xbffd46f0, byte_string = 136828291, 
  byte_string_start = 0x82d7d40 "=c4 \210\b\t\n\v#\207", constants = 136828308, next = 0xbffd486c}
        top = (Lisp_Object *) 0xbffd46f0
        result = <value optimized out>
#15 0x0817f963 in funcall_lambda (fun=136828236, nargs=2, arg_vector=0xbffd4824) at eval.c:3231
        val = <value optimized out>
        syms_left = <value optimized out>
        next = <value optimized out>
        i = 2
        optional = 1
        rest = 0
#16 0x0817d823 in Ffuncall (nargs=3, args=0xbffd4820) at eval.c:3101
        fun = 136828236
        original_fun = 140418121
        funcar = <value optimized out>
        numargs = 2
        val = <value optimized out>
        backtrace = {next = 0xbffd4924, function = 0xbffd4820, args = 0xbffd4824, nargs = 2, evalargs = 0 '\0', 
  debug_on_exit = 0 '\0'}
        internal_args = (Lisp_Object *) 0xbffd4824
        i = <value optimized out>
#17 0x081b32f8 in Fbyte_code (bytestr=136829987, vector=136830004, maxdepth=<value optimized out>) at bytecode.c:678
        op = 1
        stack = {pc = 0x82d7a39 ".\006\207", top = 0xbffd4828, bottom = 0xbffd4820, byte_string = 136829987, 
  byte_string_start = 0x82d7a09 "\212=c6\211\b\205\f", constants = 136830004, next = 0xbffd4a8c}
        top = (Lisp_Object *) 0xbffd4820
        result = <value optimized out>
#18 0x0817f963 in funcall_lambda (fun=136829940, nargs=3, arg_vector=0xbffd49a0) at eval.c:3231
        val = <value optimized out>
        syms_left = <value optimized out>
        next = <value optimized out>
        i = 3
        optional = 0
        rest = 0
#19 0x0817d823 in Ffuncall (nargs=4, args=0xbffd499c) at eval.c:3101
        fun = 136829940
        original_fun = 139838241
        funcar = <value optimized out>
        numargs = 3
        val = <value optimized out>
        backtrace = {next = 0xbffd4b44, function = 0xbffd499c, args = 0xbffd49a0, nargs = 3, evalargs = 0 '\0', 
  debug_on_exit = 0 '\0'}
        internal_args = (Lisp_Object *) 0xbffd49a0
        i = <value optimized out>
#20 0x0817ebc1 in run_hook_with_args (nargs=4, args=0xbffd499c, cond=to_completion) at eval.c:2703
        sym = 138025737
        val = 1
        ret = 137870617
        globals = <value optimized out>
#21 0x08135867 in signal_after_change (charpos=7205, lendel=0, lenins=4095) at insdel.c:2315
        args = {139838241, 57640, 90400, 0}
        rvoe_arg = 157731872
#22 0x081381c6 in insert_from_string (string=159919739, pos=0, pos_byte=0, length=4095, length_byte=4095, inherit=0) at insdel.c:1050
        opoint = 7205
#23 0x08175534 in general_insert_function (insert_func=0x8138640 <insert>, insert_from_string_func=0x8138140 <insert_from_string>, 
    inherit=0, nargs=1, args=0xbffd4a50) at editfns.c:2184
        argnum = 0
        val = 0
#24 0x081756d4 in Finsert (nargs=1, args=0xbffd4a50) at editfns.c:2228
No locals.
#25 0x081b2c63 in Fbyte_code (bytestr=156082747, vector=156419260, maxdepth=<value optimized out>) at bytecode.c:1257
        op = 0
        stack = {pc = 0x9539ef6 "\210=c9\b!`=ca\223\210=cb=cc!,\207", top = 0xbffd4a50, bottom = 0xbffd4a50, byte_string = 156082747, 
  byte_string_start = 0x9539ed8 "=c4=c5\b!!\205*", constants = 156419260, next = 0x0}
        top = (Lisp_Object *) 0xbffd4a50
        result = <value optimized out>
#26 0x0817f963 in funcall_lambda (fun=156419420, nargs=2, arg_vector=0xbffd4b84) at eval.c:3231
        val = <value optimized out>
        syms_left = <value optimized out>
        next = <value optimized out>
        i = 2
        optional = 0
        rest = 0
#27 0x0817d823 in Ffuncall (nargs=3, args=0xbffd4b80) at eval.c:3101
        fun = 156419420
        original_fun = 156078753
        funcar = <value optimized out>
        numargs = 2
        val = <value optimized out>
        backtrace = {next = 0x0, function = 0xbffd4b80, args = 0xbffd4b84, nargs = 2, evalargs = 0 '\0', debug_on_exit = 0 '\0'}
        internal_args = (Lisp_Object *) 0xbffd4b84
        i = <value optimized out>
#28 0x0817ee8b in Fapply (nargs=2, args=0xbffd4be0) at eval.c:2532
        ret_ungc_val = 0
        i = <value optimized out>
        numargs = <value optimized out>
        spread_arg = 137870617
        funcall_args = (Lisp_Object *) 0xbffd4b80
        fun = <value optimized out>
#29 0x0817efe4 in apply1 (fn=156078753, arg=157736237) at eval.c:2796
No locals.
#30 0x081b6a3d in read_process_output_call (fun_and_args=157732557) at process.c:5149
No locals.
#31 0x0817cbe6 in internal_condition_case_1 (bfun=0x81b6a20 <read_process_output_call>, arg=157732557, handlers=137914777, 
    hfun=0x81b6a40 <read_process_output_error_handler>) at eval.c:1559
        val = <value optimized out>
        c = {tag = 137870617, val = 137870617, next = 0xbffd659c, gcpro = 0x0, jmp = {{__jmpbuf = {137914777, 156078753, 159931984, 
        -1073918760, -1841831565, 1194803740}, __mask_was_saved = 0, __saved_mask = {__val = {3221048392, 135715403, 1, 137870665, 
          3221048392, 160973208, 5, 138061153, 3221048424, 135715474, 138060250, 4096, 1, 160973208, 138076876, 138191232, 
          3221048456, 135468195, 138061153, 1, 3221048488, 135716907, 138036564, 153514672, 3221048488, 134983562, 153514672, 
          137870617, 154018816, 154018736, 137870617, 157736373}}}}, backlist = 0x0, handlerlist = 0xbffd6664, lisp_eval_depth = 0, 
  pdlcount = 5, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0}
        h = {handler = 137914777, var = 137870617, chosen_clause = 10, tag = 0xbffd4bfc, next = 0xbffd6664}
#32 0x081b6367 in read_process_output (proc=159931988, channel=<value optimized out>) at process.c:5338
        odeactivate = 137870617
        text = 159919739
        outer_running_asynch_code = 0
        waiting = -1
        nbytes = 4095
        outstream = 156078753
        old = (struct buffer *) 0x92672b0
        p = (struct Lisp_Process *) 0x9885e50
        opoint = <value optimized out>
        coding = (struct coding_system *) 0x9984198
        carryover = <value optimized out>
#33 0x081b9793 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=137870617, 
    wait_proc=0x0, just_wait_proc=0) at process.c:4991
        nread = <value optimized out>
        timeout_reduced_for_timers = 1
        channel = 10
        nfds = 1
        Available = {fds_bits = {1024, 0 <repeats 31 times>}}
        Connecting = {fds_bits = {0 <repeats 32 times>}}
        check_connect = 0
        check_delay = 2
        no_avail = <value optimized out>
        xerrno = 11
        proc = 159931988
        timeout = {tv_sec = 0, tv_usec = 320000}
        end_time = {tv_sec = 1233844878, tv_usec = 266077}
        wait_channel = -1
        got_some_input = 1
#34 0x08056a78 in sit_for (timeout=240, reading=1, do_display=1) at dispnew.c:6644
        sec = 30
        usec = 0
#35 0x0811b3a3 in read_char (commandflag=1, nmaps=3, maps=0xbffd63a0, prev_event=137870617, used_mouse_menu=0xbffd6450, end_time=0x0)
    at keyboard.c:2929
        tem0 = <value optimized out>
        delay_level = 30
        buffer_size = <value optimized out>
        c = 137870617
        local_getcjmp = {{__jmpbuf = {154018736, 0, 3, -1073913000, -1839038093, 1273866780}, __mask_was_saved = 0, __saved_mask = {
      __val = {137899969, 1, 4294967295, 3221054092, 4294967295, 3221054312, 135754832, 137870617, 137899969, 153514676, 0, 0, 0, 0, 
        0, 0, 0, 0, 0, 0, 153514676, 3221054216, 136106448, 153514672, 0, 0, 0, 0, 0, 0, 138876393, 138876393}}}}
        save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 32 times>}}}}
        key_already_recorded = 0
        tem = <value optimized out>
        save = <value optimized out>
        previous_echo_area_message = 137870617
        also_record = 137870617
        reread = 0
        polling_stopped_here = <value optimized out>
        orig_kboard = (struct kboard *) 0x8edfc60
#36 0x0811d492 in read_key_sequence (keybuf=0xbffd6504, bufsize=30, prompt=137870617, dont_downcase_last=0, 
    can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9415
        interrupted_kboard = (KBOARD *) 0x8edfc60
        key = 153514676
        used_mouse_menu = 0
        echo_local_start = 0
        last_real_key_start = 0
        keys_local_start = 0
        local_first_binding = 0
        from_string = 137870617
        count = 2
        t = 0
        echo_start = 0
        keys_start = 0
        nmaps = 3
        nmaps_allocated = 3
        defs = (Lisp_Object * volatile) 0xbffd6380
        submaps = (Lisp_Object * volatile) 0xbffd63a0
        orig_local_map = 156095053
        orig_keymap = 137870617
        localized_local_map = 0
        first_binding = 0
        first_unbound = 31
        mock_input = 0
        fkey = {parent = 140640093, map = 140640093, start = 0, end = 0}
        keytran = {parent = 137864061, map = 137864061, start = 0, end = 0}
        indec = {parent = 140640189, map = 140640189, start = 0, end = 0}
        shift_translated = 0
        delayed_switch_frame = 137870617
        original_uppercase = 32
        original_uppercase_position = -1
        starting_buffer = (struct buffer *) 0x92672b0
        fake_prefixed_keys = 137870617
#37 0x0811f0f3 in command_loop_1 () at keyboard.c:1640
        cmd = <value optimized out>
        lose = 154018736
        nonundocount = 0
        keybuf = {216, 496, 138034489, -1219732232, 137870617, -1073912440, 135364456, 160675373, -1073912506, 1, 1011, -1220938128, 
  -1218314240, 134541275, -1219695704, 134522752, 1, -1208123404, 0, -1073912476, -1073912640, 0, -1073938432, 137870617, 138831841, 
  104091648, 0, 138395144, 138395128, 104091648}
        i = 154018736
        prev_modiff = 855
        prev_buffer = (struct buffer *) 0x92672b0
        already_adjusted = 0
#38 0x0817ce20 in internal_condition_case (bfun=0x811ef10 <command_loop_1>, handlers=137914777, hfun=0x8117e80 <cmd_error>)
    at eval.c:1511
        val = <value optimized out>
        c = {tag = 137870617, val = 137870617, next = 0xbffd66b0, gcpro = 0x0, jmp = {{__jmpbuf = {0, 138395144, 138395128, 
        -1073912200, -1838472845, 1195098652}, __mask_was_saved = 0, __saved_mask = {__val = {3076533248, 3076520689, 3076520479, 
          3221055124, 3086845892, 20, 3076641144, 1529, 79, 1, 3, 141091488, 3076636660, 10, 152, 3221055016, 3075692645, 
          3076641088, 1, 3076641088, 3076641136, 3076641136, 141091480, 3075251240, 3076653056, 191, 4294967295, 3086843892, 
          134522752, 3086845544, 3221055104, 3086783835}}}}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, 
  poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0}
        h = {handler = 137914777, var = 137870617, chosen_clause = 137870665, tag = 0xbffd659c, next = 0x0}
#39 0x081173d5 in command_loop_2 () at keyboard.c:1357
        val = 0
#40 0x0817cefa in internal_catch (tag=137909753, func=0x81173b0 <command_loop_2>, arg=137870617) at eval.c:1247
        c = {tag = 137909753, val = 137870617, next = 0x0, gcpro = 0x0, jmp = {{__jmpbuf = {0, 138395144, 138395128, -1073911944, 
        -1838333581, 1195235868}, __mask_was_saved = 0, __saved_mask = {__val = {6, 0, 1368, 3076636660, 0, 3076641176, 3076526455, 
          3076533248, 3076520689, 3076520479, 3076641088, 3075692645, 41, 3076641144, 177, 22, 135693664, 1, 139678640, 3221055288, 
          138109168, 138109666, 137896472, 3221055336, 135716907, 138109169, 138109666, 137870617, 137896472, 137870641, 138109664, 
          1}}}}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, 
  interrupt_input_blocked = 0, byte_stack = 0x0}
#41 0x08117ccf in command_loop () at keyboard.c:1336
No locals.
#42 0x0811808b in recursive_edit_1 () at keyboard.c:951
        val = <value optimized out>
#43 0x081181d4 in Frecursive_edit () at keyboard.c:1013
        buffer = 137870617
#44 0x0810e9e7 in main (argc=1, argv=0xbffd6b84) at emacs.c:1852
        dummy = 139634808
        stack_bottom_variable = 8 '\b'
        do_initial_setlocale = 1
        skip_args = 0
        rlim = {rlim_cur = 8388608, rlim_max = 18446744073709551615}
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0

In GNU Emacs 23.0.90.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2009-02-05 on robert-laptop
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t