Subject: Re: bug#13086: 24.2.50; Emacs seems to hang at w32proc.c:1126

From: Stephen Powell <[email-masked]>
Date: Thu, 06 Dec 2012 05:07:23 +0000

Eli Zaretskii <[email-masked]> writes:
>> Was this emacs compiled with error-checking turned on
>> (./configure --enable-checking, or whatever equivalent is
>> use in the Microsoft Windows world)?
>> If so, I'm puzzled as to why the 'eassert (errno =3D=3D EINTR)'
>> didn't fire.  If not, can you reproduce the bug with
>> error-checking enabled?
>
> Stephen, can you do that, please?

No it wasn't enabled, done now.  After reading mail in gnus for a few
dozen messages this is the new gdb log:

Thread 1 (Thread 7928.0x1010):
#0  terminate_due_to_signal (sig=3D22, backtrace_limit=3D2147483647) at ema=
cs.c:314
No locals.
#1  0x0102232f in die (msg=3D0x156df4c "assertion failed: errno =3D=3D EINT=
R", file=3D0x156df26 "sysdep.c", line=3D294) at alloc.c:6499
No locals.
#2  0x0114a3bb in get_child_status (child=3D6436, status=3D0x0, options=3D1=
, interruptible=3Dfalse) at sysdep.c:294
        pid =3D -1
#3  0x0114a4b3 in child_status_changed (child=3D6436, status=3D0x0, options=
=3D0) at sysdep.c:333
No locals.
#4  0x0102ffaa in handle_child_signal (sig=3D18) at process.c:6236
        deleted_pid =3D 6436
        all_pids_are_fixnums =3D false
        xpid =3D 25744
        tail =3D 95266870
#5  0x0114b4d7 in deliver_process_signal (sig=3D18, handler=3D0x102fe9b <ha=
ndle_child_signal>) at sysdep.c:1579
        old_errno =3D 0
        on_main_thread =3D true
#6  0x01030320 in deliver_child_signal (sig=3D18) at process.c:6277
No locals.
#7  0x01035340 in sys_select (nfds=3D7, rfds=3D0x88f6b4, wfds=3D0x0, efds=
=3D0x0, timeout=3D0x88f6a4, ignored=3D0x0) at w32proc.c:2032
        orfds =3D {
          bits =3D {121, 0}
        }
        timeout_ms =3D 78
        start_time =3D 526288248
        i =3D 7
        nh =3D 6
        nc =3D 2
        nr =3D 1
        active =3D 6
        cp =3D 0x1676b48
        cps =3D {0x1676b48, 0x1676a98, 0x0, 0x4a62f80, 0x5, 0x396636c0, 0x0=
, 0x3867750 <__register_frame_info+59144016>, 0x7, 0x1, 0x88f5f8, 0x10486dc=
 <gobble_input+415>, 0x3745ee0 <__register_frame_info+57958112>, 0x88f5b4, =
0x24, 0x0, 0x19273580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x58637=
b5, 0x0, 0x0, 0x0, 0x0, 0x0}
        wait_hnd =3D {0x1e8, 0x1e4, 0x2e8, 0x304, 0x31c, 0x364, 0x380, 0x32=
0, 0x7, 0x1, 0x88f458, 0x12ecfac <get_next_msg+550>, 0x1679f8c, 0x0, 0x10, =
0x0, 0x88f418, 0x88f44c, 0x88f458, 0x1048af4 <unblock_input+22>, 0x0, 0xa24=
811c3, 0x88f478, 0x0, 0x0, 0x1dcd6500, 0x88f598, 0x12c61ad <w32_read_socket=
+7705>, 0x88f4f8, 0x0, 0x2d9, 0x1060001 <Finsert_file_contents+65>, 0x18, 0=
x359a81a <__register_frame_info+56207386>, 0x88f4a8, 0x0, 0x0, 0x7a120, 0x0=
, 0x0, 0x0, 0x88f510, 0x88f4d8, 0x1041005 <decode_timer+322>, 0x0, 0x4a62f8=
0, 0x4a62f80, 0x76c67193 <msvcrt!_itoa_s+1347>, 0xa2481153, 0x0, 0x88f5c4, =
0x7, 0x1, 0xa2481143, 0x88f4f8, 0x108a38f <gettimeofday+17>, 0x0, 0x1dcd650=
0, 0x88f518, 0x11097fb <decode_time_components+543>, 0x0, 0x1dcd6500, 0x2d9=
, 0x1060001 <Finsert_file_contents+65>, 0x18, 0x359a81a <__register_frame_i=
nfo+56207386>, 0x88f528, 0x0, 0x0, 0x7a120, 0x0, 0x0, 0x0, 0x88f590, 0x88f5=
58, 0x1041005 <decode_timer+322>, 0x0, 0x4a62f80, 0x4a62f80, 0x4a62f80, 0x0=
, 0x0, 0x88f558, 0x114a0f8 <EMACS_TIME_LT+38>, 0x5, 0x396636c0, 0x0, 0x4a62=
f80, 0x7, 0x1, 0x88f5e8, 0x1041502 <timer_check_2+1270>, 0x5, 0x396636c0, 0=
x0, 0x1679f00}
        fdindex =3D {-1, 0, 3, 4, 5, 6, 14089224, 6, 56207386, 64, 8975176,=
 18203154, 0, 525208227, -2, 2003792923, 4, 13369344, 1342179425, 97975520,=
 8975356, 2004228145, 8975224, 1992716691, -1572333837, 0, 8975460, 7, 8975=
460, 571139213, 1992788202, 571139213, 3154319, 10000000, 0, 7, 64, 1992788=
219, 216654055, -146185075, 30266221, 0, 96273952, 97976032, 8975368, 20038=
57877, 8975320, 16895143, 97976096, 2003580050, 14089216, 14089224, 1, 9797=
5520, 97975584, 1992716691, -1572333965, 0, 8975588, 7, 8975588, 571139213,=
 1992788202, 571139213}
#8  0x0102c033 in wait_reading_process_output (time_limit=3D28, nsecs=3D0, =
read_kbd=3D-1, do_display=3Dtrue, wait_for_cell=3D56207386, wait_proc=3D0x0=
, just_wait_proc=3D0) at process.c:4544
        timeout_reduced_for_timers =3D 1
        channel =3D 7
        nfds =3D 1
        Available =3D {
          bits =3D {64, 0}
        }
        Writeok =3D {
          bits =3D {0, 0}
        }
        check_write =3D 0
        check_delay =3D 2
        no_avail =3D 0
        xerrno =3D 0
        proc =3D 95467533
        timeout =3D {
          tv_sec =3D 0,=20
          tv_nsec =3D 78000000
        }
        end_time =3D {
          tv_sec =3D 1354769779,=20
          tv_nsec =3D 307000000
        }
        wait_channel =3D -1
        got_some_input =3D 1
        count =3D 2
#9  0x01100ac5 in sit_for (timeout=3D112, reading=3Dtrue, display_option=3D=
1) at dispnew.c:5907
        sec =3D 28
        nsec =3D 0
        do_display =3D true
#10 0x0103c823 in read_char (commandflag=3D1, nmaps=3D7, maps=3D0x88f960, p=
rev_event=3D56207386, used_mouse_menu=3D0x88fa53, end_time=3D0x0) at keyboa=
rd.c:2656
        tem0 =3D 56207386
        timeout =3D 28
        delay_level =3D 4
        buffer_size =3D 55
        c =3D 56207386
        jmpcount =3D 2
        local_getcjmp =3D {8976632, 0, 0, 0, 8976268, 17023232, 8978372, 0,=
 8976676, 16808689, 56312266, 56207386, 56235610, 56207362, 8976800, 563123=
86}
        save_jump =3D {0 <repeats 16 times>}
        tem =3D 20056477
        save =3D 87159004
        previous_echo_area_message =3D 56207386
        also_record =3D 56207386
        reread =3D false
        gcpro1 =3D {
          next =3D 0x88f800,=20
          var =3D 0x35a165a <__register_frame_info+56235610>,=20
          nvars =3D 8976376
        }
        gcpro2 =3D {
          next =3D 0x35baeea <__register_frame_info+56340202>,=20
          var =3D 0x359a81a <__register_frame_info+56207386>,=20
          nvars =3D 56207386
        }
        polling_stopped_here =3D false
        orig_kboard =3D 0x359d280 <__register_frame_info+56218240>
#11 0x010503ee in read_key_sequence (keybuf=3D0x88fbd0, bufsize=3D30, promp=
t=3D56207386, dont_downcase_last=3Dfalse, can_return_switch_frame=3Dtrue, f=
ix_current_buffer=3Dtrue) at keyboard.c:9201
        interrupted_kboard =3D 0x359d280 <__register_frame_info+56218240>
        interrupted_frame =3D 0x3867750 <__register_frame_info+59144016>
        key =3D 1256
        used_mouse_menu =3D false
        echo_local_start =3D 0
        last_real_key_start =3D 0
        keys_local_start =3D 0
        local_first_binding =3D 0
        from_string =3D 56207386
        count =3D 2
        t =3D 0
        echo_start =3D 0
        keys_start =3D 0
        nmaps =3D 7
        nmaps_allocated =3D 7
        defs =3D 0x88f920
        submaps =3D 0x88f960
        orig_local_map =3D 83881006
        orig_keymap =3D 56207386
        localized_local_map =3D 0
        first_binding =3D 0
        first_unbound =3D 31
        mock_input =3D 0
        fkey =3D {
          parent =3D 60004134,=20
          map =3D 60004134,=20
          start =3D 0,=20
          end =3D 0
        }
        keytran =3D {
          parent =3D 56196806,=20
          map =3D 56196806,=20
          start =3D 0,=20
          end =3D 0
        }
        indec =3D {
          parent =3D 60004126,=20
          map =3D 60004126,=20
          start =3D 0,=20
          end =3D 0
        }
        shift_translated =3D false
        delayed_switch_frame =3D 56207386
        original_uppercase =3D 56276954
        original_uppercase_position =3D -1
        dummyflag =3D false
        starting_buffer =3D 0x38db800 <__register_frame_info+59619328>
        fake_prefixed_keys =3D 56207386
        gcpro1 =3D {
          next =3D 0x3867750 <__register_frame_info+59144016>,=20
          var =3D 0x0,=20
          nvars =3D 56257586
        }
#12 0x010391e7 in command_loop_1 () at keyboard.c:1448
        cmd =3D 94126946
        keybuf =3D {128, 196, 84139489, 22412922, 8812368, 56207386, 562073=
86, 93540705, 8977624, 8977628, 8977448, 17008771, 96967310, 56207410, 8977=
487, 84271466, 56312266, 56207386, 8977448, 59144016, 56218240, 2130567168,=
 8977544, 17008128, 96967366, 8977487, 8977512, 16853932, 2, 57890958}
        i =3D 1
        prev_modiff =3D 7108
        prev_buffer =3D 0x38db800 <__register_frame_info+59619328>
        already_adjusted =3D false
#13 0x01011174 in internal_condition_case (bfun=3D0x1038cf7 <command_loop_1=
>, handlers=3D56257682, hfun=3D0x10384e3 <cmd_error>) at eval.c:1192
        val =3D 57890958
        c =3D {
          tag =3D 56207386,=20
          val =3D 56207386,=20
          next =3D 0x88fd74,=20
          gcpro =3D 0x0,=20
          jmp =3D {8977720, 0, 0, 0, 8977548, 16847137, 8978372, 0, 2, 2, 1=
992732168, 8977624, 8977704, 8977768, 1992740619, 8977704},=20
          backlist =3D 0x0,=20
          handlerlist =3D 0x0,=20
          lisp_eval_depth =3D 0,=20
          pdlcount =3D 2,=20
          poll_suppress_count =3D 0,=20
          interrupt_input_blocked =3D 0,=20
          byte_stack =3D 0x0
        }
        h =3D {
          handler =3D 56257682,=20
          var =3D 56207386,=20
          chosen_clause =3D 56207410,=20
          tag =3D 0x88fcc0,=20
          next =3D 0x0
        }
#14 0x01038963 in command_loop_2 (ignore=3D56207386) at keyboard.c:1163
        val =3D 0
#15 0x01010bc2 in internal_catch (tag=3D56247538, func=3D0x103893f <command=
_loop_2>, arg=3D56207386) at eval.c:963
        c =3D {
          tag =3D 56247538,=20
          val =3D 56207386,=20
          next =3D 0x0,=20
          gcpro =3D 0x0,=20
          jmp =3D {8977896, 2130567168, 0, 0, 8977756, 16845747, 8978372, 0=
, 56207386, 56233472, 10623464, 10618848, 2130567168, 8977896, 16803841, 23=
543164},=20
          backlist =3D 0x0,=20
          handlerlist =3D 0x0,=20
          lisp_eval_depth =3D 0,=20
          pdlcount =3D 2,=20
          poll_suppress_count =3D 0,=20
          interrupt_input_blocked =3D 0,=20
          byte_stack =3D 0x0
        }
#16 0x0103891b in command_loop () at keyboard.c:1142
No locals.
#17 0x01037e98 in recursive_edit_1 () at keyboard.c:774
        count =3D 1
        val =3D 1992664130
#18 0x010381d3 in Frecursive_edit () at keyboard.c:838
        count =3D 0
        buffer =3D 56207386
#19 0x01002a0a in main (argc=3D2, argv=3D0xa22f30) at emacs.c:1560
        dummy =3D 8978152
        stack_bottom_variable =3D 0 '\000'
        do_initial_setlocale =3D true
        dumping =3D false
        skip_args =3D 0
        no_loadup =3D false
        junk =3D 0x0
        dname_arg =3D 0x0
        ch_to_dir =3D 0x0