unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29183: 27.0.50; SIGSEGV on C-g on Windows
@ 2017-11-06 21:58 John Mastro
  2017-11-07  3:36 ` Eli Zaretskii
  2017-11-09 14:59 ` Davor Rotim
  0 siblings, 2 replies; 16+ messages in thread
From: John Mastro @ 2017-11-06 21:58 UTC (permalink / raw)
  To: 29183

[-- Attachment #1: Type: text/plain, Size: 621 bytes --]

[ Earlier today I opened bug #29180 about needing to bump
  DUMPED_HEAP_SIZE to bootstrap on MINGW64. The following is in a build
  with that patch applied, but I don't know if the two are related. ]

On master (at commit 1d8f885) on 64-bit Windows 10 I get a SIGSEGV as
soon as I hit C-g. Just "emacs -Q; C-g" is enough to trigger it.

I've attached the output of a GDB session with "bt full" ("xbacktrace"
didn't print anything). Please let me know if I can provide any further
information.

I tried to reproduce the error with an -O0 build, but it doesn't occur
then. The backtrace is from an -O2 build.

Thanks

John

[-- Attachment #2: bt-full.txt --]
[-- Type: text/plain, Size: 8357 bytes --]

$ gdb ./emacs.exe
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./emacs.exe...done.
warning: File "C:\home\jbm\src\emacs\src\.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path C:\home\jbm\src\emacs\src\.gdbinit
line to your configuration file "C:\home\jbm/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "C:\home\jbm/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
(gdb) source .gdbinit
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
Environment variable "DISPLAY" not defined.
TERM = xterm-256color
Breakpoint 1 at 0x4000a81c0: file emacs.c, line 363.
Temporary breakpoint 2 at 0x4000c0cc0: init_sys_modes. (3 locations)
(gdb) r -Q
Starting program: C:\home\jbm\src\emacs\src\emacs.exe -Q
[New Thread 3240.0x3738]
[New Thread 3240.0x40ec]
[New Thread 3240.0x3490]
[New Thread 3240.0x2108]
[New Thread 3240.0x28bc]
[New Thread 3240.0x33e0]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8cb7893a0 in ntdll!RtlCaptureContext ()
   from C:\Windows\SYSTEM32\ntdll.dll
(gdb) bt full
#0  0x00007ff8cb7893a0 in ntdll!RtlCaptureContext ()
   from C:\Windows\SYSTEM32\ntdll.dll
No symbol table info available.
#1  0x00007ff8cb6f8f27 in ntdll!RtlUnwindEx ()
   from C:\Windows\SYSTEM32\ntdll.dll
No symbol table info available.
#2  0x00007ff8c91d1f4a in msvcrt!_setjmpex ()
   from C:\Windows\System32\msvcrt.dll
No symbol table info available.
#3  0x00000004000a93d4 in quit_throw_to_read_char (
    from_signal=from_signal@entry=false) at keyboard.c:10548
No locals.
#4  0x00000004000b4853 in kbd_buffer_get_event (end_time=0x0,
    used_mouse_menu=0xbff5b0, kbp=<synthetic pointer>) at keyboard.c:3790
        obj = <optimized out>
#5  read_event_from_main_queue (used_mouse_menu=<optimized out>,
    local_getcjmp=<optimized out>, end_time=<optimized out>)
    at keyboard.c:2151
        c = XIL(0)
        save_jump = {{
            Part = {0, 0}
          } <repeats 16 times>}
        kb = <optimized out>
#6  read_decoded_event_from_main_queue (used_mouse_menu=<optimized out>,
    local_getcjmp=<optimized out>, end_time=<optimized out>, prev_event=...)
    at keyboard.c:2214
No locals.
#7  read_char (commandflag=<optimized out>, commandflag@entry=1,
    map=XIL(0x1f00000000), map@entry=XIL(0x4006f4c03),
    prev_event=XIL(0xbff5b8), used_mouse_menu=<optimized out>,
    used_mouse_menu@entry=0xbff46b, end_time=<optimized out>,
    end_time@entry=0x0) at keyboard.c:2802
        c = <optimized out>
        jmpcount = <optimized out>
        local_getcjmp = {{
            Part = {12579656, 0}
          }, {
            Part = {12578352, 12579656}
          }, {
            Part = {17185481664, 0}
          }, {
            Part = {0, 7923139}
          }, {
            Part = {17185159176, 0}
          }, {
            Part = {17180599850, 3843995738016}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }}
        save_jump = {{
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 0}
          }, {
            Part = {0, 120}
          }, {
            Part = {17185159176, 120}
          }, {
            Part = {17185159176, 12579296}
          }, {
            Part = {17185881888, 0}
          }, {
            Part = {0, 17181019941}
          }, {
            Part = {0, 0}
          }, {
            Part = {4, 0}
          }, {
            Part = {5, 34496}
          }, {
            Part = {17188623920, 1}
          }, {
            Part = {17187559952, 17180947715}
          }, {
            Part = {1, 3}
          }, {
            Part = {1, 37408}
          }, {
            Part = {17187560176, 17180641615}
          }}
        tem = <optimized out>
        save = <optimized out>
        previous_echo_area_message = XIL(0)
        also_record = XIL(0)
        reread = false
        recorded = false
        polling_stopped_here = true
        orig_kboard = <optimized out>
#8  0x00000004000b58d2 in read_key_sequence (keybuf=keybuf@entry=0xbff5b0,
    prompt=prompt@entry=XIL(0),
    dont_downcase_last=dont_downcase_last@entry=false,
    can_return_switch_frame=can_return_switch_frame@entry=true,
    fix_current_buffer=fix_current_buffer@entry=true,
    prevent_redisplay=prevent_redisplay@entry=false, bufsize=30)
    at keyboard.c:9147
        interrupted_kboard = 0x2536490
        interrupted_frame = 0x400a10f00 <dumped_data+4385792>
        key = <optimized out>
        used_mouse_menu = false
        echo_local_start = 0
        last_real_key_start = 0
        keys_local_start = 0
        new_binding = <optimized out>
        t = 0
        echo_start = 0
        keys_start = 0
        current_binding = XIL(0x4006f4c03)
        first_event = XIL(0)
        first_unbound = 31
        mock_input = 0
        fkey = {
          parent = XIL(0x4006eec83),
          map = XIL(0x4006eec83),
          start = 0,
          end = 0
        }
        keytran = {
          parent = XIL(0x400606293),
          map = XIL(0x400606293),
          start = 0,
          end = 0
        }
        indec = {
          parent = XIL(0x4006eeca3),
          map = XIL(0x4006eeca3),
          start = 0,
          end = 0
        }
        shift_translated = false
        delayed_switch_frame = XIL(0)
        original_uppercase = XIL(0)
        original_uppercase_position = -1
        dummyflag = false
        fake_prefixed_keys = XIL(0)
#9  0x00000004000b7371 in command_loop_1 () at keyboard.c:1368
        cmd = XIL(0x4000ad920)
        keybuf = {XIL(0xbff640), XIL(0x40011b321), XIL(0x4002f2345), XIL(0),
          XIL(0x4), XIL(0x5f004d00450054), XIL(0x46004500520050),
          XIL(0x580049), XIL(0x40900001001), XIL(0x400000004), XIL(0),
          XIL(0x7ff8c8ce25e0), XIL(0x9), make_number(43044382448936),
          XIL(0xb0000), XIL(0x78), XIL(0x40050b808), XIL(0x78),
          XIL(0x40050b808), XIL(0xbff690), XIL(0x4005bbf20), XIL(0),
          XIL(0x40064feb3), XIL(0x400118f25), XIL(0), XIL(0x3),
          XIL(0x40078f643), make_number(1000), XIL(0x5), XIL(0x8c00)}
        i = <optimized out>
        prev_modiff = 0
        prev_buffer = 0x0
#10 0x000000040011862d in internal_condition_case (
    bfun=bfun@entry=0x4000b7120 <command_loop_1>, handlers=...,
    handlers@entry=XIL(0x5b70), hfun=hfun@entry=0x4000ad920 <cmd_error>)
    at eval.c:1332
        val = XIL(0x4005d1d68)
        c = 0x2533350
#11 0x00000004000a8824 in command_loop_2 (ignore=...) at keyboard.c:1110
        val = <optimized out>
#12 0x000000040011859b in internal_catch (tag=..., tag@entry=XIL(0xf378),
    func=func@entry=0x4000a8800 <command_loop_2>, arg=arg@entry=XIL(0))
    at eval.c:1097
        val = XIL(0x4005d1d68)
        c = 0x25331c0
#13 0x00000004000a87ae in command_loop () at keyboard.c:1089
No locals.
#14 0x0000000000000000 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) xbacktrace
(gdb)

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-12-01 10:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-06 21:58 bug#29183: 27.0.50; SIGSEGV on C-g on Windows John Mastro
2017-11-07  3:36 ` Eli Zaretskii
2017-11-07 18:14   ` John Mastro
2017-11-07 19:41     ` Eli Zaretskii
2017-11-07 21:24       ` John Mastro
2017-11-08  3:43         ` Eli Zaretskii
2017-11-08 18:35           ` John Mastro
2017-11-08 18:53             ` Eli Zaretskii
2017-11-08 22:46               ` Paul Eggert
2017-11-08 23:41                 ` John Mastro
2017-11-09  4:56                   ` Paul Eggert
2017-11-09 17:59                     ` John Mastro
2017-11-09 14:59 ` Davor Rotim
2017-11-09 17:04   ` Eli Zaretskii
2017-11-09 18:10     ` Davor Rotim
2017-12-01 10:00   ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).