public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: john p <jp101@gmx.com>
To: cygwin@cygwin.com
Subject: emacs-27.2-1 windows7 cygwin64-3.3.4-2 crash when open remote file larger than 10240 bytes
Date: Wed, 30 Mar 2022 05:08:09 +0200	[thread overview]
Message-ID: <trinity-d8ad0221-e527-4c88-8a96-a6f632d7d615-1648609689596@3c-app-mailcom-bs08> (raw)

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

to reproduce:

  emacs -Q -nw
    C-x C-f /-:<host>:<file>

stackdump & gdb backtrace attached

problem only seen with:
  emacs-27.2-1 windows7 cygwin-3.3.4-2

problem doesnt happen with:
  emacs-27.2-1 windows7 cygwin-3.3.3-1
  emacs-27.2-1 windows10 cygwin-3.3.4-2

hopefully someone knows significance of 10240 byte file/buffer in emacs/windows7/cygwin64-3.3.4-2

[-- Attachment #2: emacs-X11.exe.stackdump --]
[-- Type: application/octet-stream, Size: 2738 bytes --]

Stack trace:
Frame        Function    Args
00100A0C850  001800620B7 (00000000000, 00000011058, 00000000000, 000FFFFDE50)
00000000000  001800640F5 (00000000000, 00600000000, 00000000430, 00000000000)
00100A0CF60  00180130FD8 (00000000000, 00000000000, 00000000000, 00000000000)
7FFFFFDE000  00180158D7E (A13E63C3D69C9A37, 001004E44D3, 00100A0D2D0, 000FFFFDE50)
7FFFFFDE000  0018012CCF5 (00000000000, 00000000000, 00000000000, 00000000400)
7FFFFFDE000  0018018FBDB (00000000000, 00000000000, 00000000000, 00000000400)
7FFFFFDE000  001005FAFFC (00000000000, 00000000000, 00000000000, 00180158F10)
7FFFFFDE000  001005FD4BE (00000000000, 00000000000, 00000000000, 00100A0D2D0)
7FFFFFDE000  001004FDEE4 (00000000000, 00000000000, 00000000000, 001004FDF30)
7FFFFFDE000  001004FDF53 (00000000000, 00000000000, 00000000000, 00000000000)
7FFFFFDE000  001800609D2 (00000000000, 00000000000, 00000000000, 000FFFFCE00)
00020000000  00180064037 (00000000002, FFFFFFFFFFFFFFFE, FFFFFFFFFFFFFFFE, 00000000006)
FFFFFFFFFFFFFFFE  FFFFFFFFFFFFFFFE (FFFFFFFFFFFFFFFE, FFFFFFFFFFFFFFFE, 00000000006, 0000000009E)
FFFFFFFFFFFFFFFE  00000000002 (FFFFFFFFFFFFFFFE, 00000000006, 0000000009E, 000000000A2)
FFFFFFFFFFFFFFFE  00000000002 (00000000006, 0000000009E, 000000000A2, 00000000002)
FFFFFFFFFFFFFFFE  FFFFFFFFFFFFFFFE (0000000009E, 000000000A2, 00000000002, 0000000003A)
FFFFFFFFFFFFFFFE  FFFFFFFFFFFFFFFE (000000000A2, 00000000002, 0000000003A, 00000000042)
FFFFFFFFFFFFFFFE  00000000006 (00000000002, 0000000003A, 00000000042, 0000000004A)
FFFFFFFFFFFFFFFE  0000000009E (0000000003A, 00000000042, 0000000004A, 00000000012)
FFFFFFFFFFFFFFFE  000000000A2 (00000000042, 0000000004A, 00000000012, 00000000022)
FFFFFFFFFFFFFFFE  00000000002 (0000000004A, 00000000012, 00000000022, 00000000032)
FFFFFFFFFFFFFFFE  0000000003A (00000000012, 00000000022, 00000000032, 00000000036)
FFFFFFFFFFFFFFFE  00000000042 (00000000022, 00000000032, 00000000036, 00000000016)
FFFFFFFFFFFFFFFE  0000000004A (00000000032, 00000000036, 00000000016, 00000000002)
FFFFFFFFFFFFFFFE  00000000012 (00000000036, 00000000016, 00000000002, 00000000002)
FFFFFFFFFFFFFFFE  00000000022 (00000000016, 00000000002, 00000000002, 00000000002)
FFFFFFFFFFFFFFFE  00000000032 (00000000002, 00000000002, 00000000002, 00000000002)
FFFFFFFFFFFFFFFE  00000000036 (00000000002, 00000000002, 00000000002, 00000000026)
FFFFFFFFFFFFFFFE  00000000016 (00000000002, 00000000002, 00000000026, 0000000002A)
FFFFFFFFFFFFFFFE  00000000002 (00000000002, 00000000026, 0000000002A, 0000000002E)
FFFFFFFFFFFFFFFE  00000000002 (00000000026, 0000000002A, 0000000002E, 0000000004E)
FFFFFFFFFFFFFFFE  00000000002 (0000000002A, 0000000002E, 0000000004E, 00000000052)
End of stack trace (more stack frames may be present)

[-- Attachment #3: gdb.backtrace --]
[-- Type: application/octet-stream, Size: 3356 bytes --]

(gdb) bt
#0  0x000007fefd7e1b54 in WriteFile () from /c/Windows/system32/KERNELBASE.dll
#1  0x00000000777c1d26 in WriteFile () from /c/Windows/system32/kernel32.dll
#2  0x00000001800bbba0 in fhandler_pty_master::close (this=0x18035b5f8) at /usr/src/debug/cygwin-3.3.4-2/winsup/cygwin/fhandler_tty.cc:2123
#3  0x000000018006b875 in fhandler_base::close_with_arch (this=0x18035b2e8) at /usr/src/debug/cygwin-3.3.4-2/winsup/cygwin/fhandler.cc:1193
#4  0x000000018014331d in close (fd=10) at /usr/src/debug/cygwin-3.3.4-2/winsup/cygwin/syscalls.cc:1652
#5  0x000000018018fbdb in _sigfe () at sigfe.s:35
#6  0x00000001004ffb57 in posix_close (flag=1, fd=10) at /usr/src/debug/emacs-27.2-1/src/sysdep.c:2547
#7  emacs_close (fd=10) at /usr/src/debug/emacs-27.2-1/src/sysdep.c:2565
#8  0x000000010059e1b9 in close_process_fd (fd_addr=0x800423d4c) at /usr/src/debug/emacs-27.2-1/src/process.c:1989
#9  deactivate_process (proc=proc@entry=0x800423c85) at /usr/src/debug/emacs-27.2-1/src/process.c:4742
#10 0x000000010059e571 in remove_process (proc=0x800423c85) at /usr/src/debug/emacs-27.2-1/src/process.c:923
#11 status_notify (deleting_process=deleting_process@entry=0x0, wait_proc=wait_proc@entry=0x0) at /usr/src/debug/emacs-27.2-1/src/process.c:7479
#12 0x00000001005a3abf in wait_reading_process_output (time_limit=<optimized out>, nsecs=<optimized out>, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=0x0, wait_proc=wait_proc@entry=0x0,
    just_wait_proc=just_wait_proc@entry=0) at /usr/src/debug/emacs-27.2-1/src/process.c:5400
#13 0x000000010040b16f in sit_for (timeout=timeout@entry=0x7a, reading=reading@entry=true, display_option=display_option@entry=1) at /usr/src/debug/emacs-27.2-1/src/lisp.h:1027
#14 0x00000001004f2068 in read_char (commandflag=commandflag@entry=1, map=map@entry=0x800355173, prev_event=0x0, used_mouse_menu=used_mouse_menu@entry=0xffffc61b, end_time=end_time@entry=0x0) at /usr/src/debug/emacs-27.2-1/src/keyboard.c:2738
#15 0x00000001004f2ab1 in read_key_sequence (keybuf=keybuf@entry=0xffffc780, prompt=prompt@entry=0x0, 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) at /usr/src/debug/emacs-27.2-1/src/keyboard.c:9554
#16 0x00000001004f423f in command_loop_1 () at /usr/src/debug/emacs-27.2-1/src/lisp.h:1027
#17 0x000000010055f144 in internal_condition_case (bfun=bfun@entry=0x1004f4020 <command_loop_1>, handlers=handlers@entry=0x90, hfun=hfun@entry=0x1004eae00 <cmd_error>) at /usr/src/debug/emacs-27.2-1/src/eval.c:1356
#18 0x00000001004e4ba8 in command_loop_2 (ignore=<optimized out>) at /usr/src/debug/emacs-27.2-1/src/lisp.h:1027
#19 0x000000010055f09e in internal_catch (tag=tag@entry=0xd380, func=func@entry=0x1004e4b80 <command_loop_2>, arg=arg@entry=0x0) at /usr/src/debug/emacs-27.2-1/src/eval.c:1117
#20 0x00000001004e4b38 in command_loop () at /usr/src/debug/emacs-27.2-1/src/lisp.h:1027
#21 0x00000001004ea9d1 in recursive_edit_1 () at /usr/src/debug/emacs-27.2-1/src/keyboard.c:714
#22 0x00000001004ead27 in Frecursive_edit () at /usr/src/debug/emacs-27.2-1/src/keyboard.c:786
#23 0x00000001005fc881 in main (argc=3, argv=<optimized out>) at /usr/src/debug/emacs-27.2-1/src/emacs.c:2067
(gdb)

             reply	other threads:[~2022-03-30  3:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30  3:08 john p [this message]
2022-03-30  3:52 ` Takashi Yano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-d8ad0221-e527-4c88-8a96-a6f632d7d615-1648609689596@3c-app-mailcom-bs08 \
    --to=jp101@gmx.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).