From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17753: Cygwin emacs-X11 core dump Date: Mon, 22 Sep 2014 17:48:07 +0300 Message-ID: <83lhpbyamw.fsf@gnu.org> References: " <21431.6898.745604.392984@wombat.mininet>" <53B805C7.8030209@cornell.edu> <21435.4511.658539.666411@wombat.mininet> <53BD4A64.8000003@cornell.edu> <457212308be445a70279d3ece6e28207@mhoenicka.de> <993b66d09d7bfc46fc7433de63fde3be@mhoenicka.de> <83sijq362c.fsf@gnu.org> <5419A604.8060201@cornell.edu> <83fvfq2n40.fsf@gnu.org> <567d6ce41622973e00bb6fb69ad316d3@mhoenicka.de> <542024FE.2010300@cornell.edu> <3a5e4a3cfe28aea3848b866d07685d8d@mhoenicka.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411397429 10317 80.91.229.3 (22 Sep 2014 14:50:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2014 14:50:29 +0000 (UTC) Cc: 17753@debbugs.gnu.org To: Markus Hoenicka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 22 16:50:24 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XW4wY-0005Ro-7c for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Sep 2014 16:50:22 +0200 Original-Received: from localhost ([::1]:47037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW4wX-0006Rq-Qg for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Sep 2014 10:50:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW4wO-0006NU-8R for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 10:50:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW4wJ-0004Yu-SG for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 10:50:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW4wJ-0004OL-PL for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 10:50:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XW4wD-0001Gy-RV for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 10:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Sep 2014 14:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17753 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17753-submit@debbugs.gnu.org id=B17753.14113973764851 (code B ref 17753); Mon, 22 Sep 2014 14:50:01 +0000 Original-Received: (at 17753) by debbugs.gnu.org; 22 Sep 2014 14:49:36 +0000 Original-Received: from localhost ([127.0.0.1]:48996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XW4vm-0001G9-Lg for submit@debbugs.gnu.org; Mon, 22 Sep 2014 10:49:35 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:50482) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XW4vi-0001Fy-TQ for 17753@debbugs.gnu.org; Mon, 22 Sep 2014 10:49:32 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NCB00P004SM3J00@mtaout27.012.net.il> for 17753@debbugs.gnu.org; Mon, 22 Sep 2014 17:42:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCB00H8U4V6XF70@mtaout27.012.net.il>; Mon, 22 Sep 2014 17:42:42 +0300 (IDT) In-reply-to: <3a5e4a3cfe28aea3848b866d07685d8d@mhoenicka.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93628 Archived-At: > Date: Mon, 22 Sep 2014 16:04:41 +0200 > From: Markus Hoenicka > Cc: Eli Zaretskii , 17753@debbugs.gnu.org > > At 2014-09-22 15:32, Ken Brown was heard to say: > > On 9/22/2014 3:14 AM, Markus Hoenicka wrote: > >> $ cygcheck -f /usr/bin/emacs-X11 > >> emacs-X11-24.3.93-3 > > > > And do you have the matching version of emacs-debuginfo installed? > > The lack of information in the backtrace of Thread 1 makes me think > > that you might not. > > > > I think I do: > > $ cygcheck -f /usr/lib/debug/usr/bin/emacs-X11.exe.dbg > emacs-debuginfo-24.3.93-3 > > Also, gdb does not complain about a version mismatch, although the path > to the symbols looks a little strange to me (note the // in the middle): > > $ gdb /usr/bin/emacs-X11 > GNU gdb (GDB) 7.8 > [...] > Reading symbols from /usr/bin/emacs-X11...Reading symbols from > /usr/lib/debug//usr/bin/emacs-X11.exe.dbg...done. > done. Then something weird is going on here, because the backtrace you posted omits all the Emacs parts, and leaves only the Cygwin internal symbols. Once it gets to the first frame where Emacs code was supposed to be executed, it bails out claiming the stack is corrupt. > Fatal error 6: Aborted > Program received signal SIGABRT, Aborted. > terminate_due_to_signal (sig=0, backtrace_limit=) > at /usr/src/debug/emacs-24.3.93-3/src/emacs.c:381 > 381 exit (1); > (gdb) info threads > Id Target Id Frame > 9 Thread 4188.0x460 0x00000000772712fa in > ntdll!ZwWaitForSingleObject () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > 8 Thread 4188.0xc68 0x00000000772712fa in > ntdll!ZwWaitForSingleObject () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > 6 Thread 4188.0xa84 0x00000000772712fa in > ntdll!ZwWaitForSingleObject () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > 5 Thread 4188.0xd18 0x00000000772715fa in ntdll!ZwDelayExecution () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > 4 Thread 4188.0x1194 0x000000007727186a in > ntdll!ZwWaitForMultipleObjects > () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > 3 Thread 4188.0x1074 0x000000007727186a in > ntdll!ZwWaitForMultipleObjects > () from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > 2 Thread 4188.0xcc 0x000007fefd42940d in RaiseException () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > * 1 Thread 4188.0x1164 terminate_due_to_signal (sig=0, > backtrace_limit=) > at /usr/src/debug/emacs-24.3.93-3/src/emacs.c:381 > (gdb) thread apply all bt > > Thread 9 (Thread 4188.0x460): > #0 0x00000000772712fa in ntdll!ZwWaitForSingleObject () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #1 0x000007fefd4210dc in WaitForSingleObjectEx () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > #2 0x0000000180045561 in cygthread::stub ( > arg=arg@entry=0x1801d0500 ) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:114 > #3 0x000000018004619b in _cygtls::call2 (this=0x425ce00, > func=0x1800454d0 , arg=0x1801d0500 > , > buf=buf@entry=0x425cd50) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:100 > #4 0x00000001800462f4 in _cygtls::call (func=, > arg=) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:30 > #5 0x00000000770159ed in KERNEL32!BaseThreadInitThunk () > from /cygdrive/c/WINDOWS/system32/kernel32.dll > #6 0x000000007724c541 in ntdll!RtlUserThreadStart () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #7 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > Thread 8 (Thread 4188.0xc68): > #0 0x00000000772712fa in ntdll!ZwWaitForSingleObject () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #1 0x000007fefd4210dc in WaitForSingleObjectEx () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > #2 0x0000000180045561 in cygthread::stub ( > arg=arg@entry=0x1801d04a8 ) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:114 > #3 0x000000018004619b in _cygtls::call2 (this=0x3e5ce00, > func=0x1800454d0 , arg=0x1801d04a8 > , > buf=buf@entry=0x3e5cd50) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:100 > #4 0x00000001800462f4 in _cygtls::call (func=, > arg=) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:30 > #5 0x00000000770159ed in KERNEL32!BaseThreadInitThunk () > from /cygdrive/c/WINDOWS/system32/kernel32.dll > #6 0x000000007724c541 in ntdll!RtlUserThreadStart () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #7 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > Thread 6 (Thread 4188.0xa84): > #0 0x00000000772712fa in ntdll!ZwWaitForSingleObject () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #1 0x000007fefd4210dc in WaitForSingleObjectEx () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > #2 0x000000018013db94 in timer_thread (x=0x365a9d8) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/timer.cc:145 > #3 0x0000000180044fc5 in cygthread::callfunc ( > this=this@entry=0x1801d0450 , > issimplestub=issimplestub@entry=false) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:51 > #4 0x000000018004552a in cygthread::stub ( > arg=arg@entry=0x1801d0450 ) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:93 > #5 0x000000018004619b in _cygtls::call2 (this=0x365ce00, > func=0x1800454d0 , arg=0x1801d0450 > , > buf=buf@entry=0x365cd50) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:100 > #6 0x00000001800462f4 in _cygtls::call (func=, > arg=) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:30 > #7 0x00000000770159ed in KERNEL32!BaseThreadInitThunk () > from /cygdrive/c/WINDOWS/system32/kernel32.dll > #8 0x000000007724c541 in ntdll!RtlUserThreadStart () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #9 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > Thread 5 (Thread 4188.0xd18): > #0 0x00000000772715fa in ntdll!ZwDelayExecution () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #1 0x000007fefd421203 in SleepEx () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > #2 0x000000018010d970 in thread_pipe (arg=0x600061fe0) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/select.cc:690 > #3 0x0000000180044fc5 in cygthread::callfunc ( > this=this@entry=0x1801d03f8 , > issimplestub=issimplestub@entry=false) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:51 > #4 0x000000018004552a in cygthread::stub ( > arg=arg@entry=0x1801d03f8 ) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:93 > #5 0x000000018004619b in _cygtls::call2 (this=0x325ce00, > func=0x1800454d0 , arg=0x1801d03f8 > , > buf=buf@entry=0x325cd50) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:100 > #6 0x00000001800462f4 in _cygtls::call (func=, > arg=) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:30 > #7 0x00000000770159ed in KERNEL32!BaseThreadInitThunk () > from /cygdrive/c/WINDOWS/system32/kernel32.dll > #8 0x000000007724c541 in ntdll!RtlUserThreadStart () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #9 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > Thread 4 (Thread 4188.0x1194): > #0 0x000000007727186a in ntdll!ZwWaitForMultipleObjects () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #1 0x000007fefd421430 in KERNELBASE!GetCurrentProcess () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > #2 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > Thread 3 (Thread 4188.0x1074): > #0 0x000000007727186a in ntdll!ZwWaitForMultipleObjects () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #1 0x000000007723b037 in ntdll!TpIsTimerSet () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #2 0x00000000770159ed in KERNEL32!BaseThreadInitThunk () > from /cygdrive/c/WINDOWS/system32/kernel32.dll > #3 0x000000007724c541 in ntdll!RtlUserThreadStart () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #4 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > Thread 2 (Thread 4188.0xcc): > #0 0x000007fefd42940d in RaiseException () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > #1 0x000007fefd43aa0d in OutputDebugStringA () > from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll > > #2 0x000000018007119e in _cygtls::signal_debugger > (this=this@entry=0x42ce00, > si=...) at > /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/exceptions.cc:1505 > #3 0x000000018007132e in sigpacket::process ( > this=this@entry=0x1801e3260 ) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/exceptions.cc:1364 > #4 0x0000000180119952 in wait_sig () > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/sigproc.cc:1320 > #5 0x0000000180044fc5 in cygthread::callfunc ( > this=this@entry=0x1801d03a0 , > issimplestub=issimplestub@entry=false) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:51 > #6 0x000000018004552a in cygthread::stub (arg=arg@entry=0x1801d03a0 > ) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygthread.cc:93 > #7 0x000000018004619b in _cygtls::call2 (this=0x23bce00, > func=0x1800454d0 , arg=0x1801d03a0 > , > buf=buf@entry=0x23bcd50) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:100 > #8 0x00000001800462f4 in _cygtls::call (func=, > arg=) > at /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/cygtls.cc:30 > #9 0x00000000770159ed in KERNEL32!BaseThreadInitThunk () > from /cygdrive/c/WINDOWS/system32/kernel32.dll > #10 0x000000007724c541 in ntdll!RtlUserThreadStart () > from /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll > #11 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > > Thread 1 (Thread 4188.0x1164): > #0 terminate_due_to_signal (sig=0, backtrace_limit=) > at /usr/src/debug/emacs-24.3.93-3/src/emacs.c:381 > #1 0x0000000000000000 in ?? () > Backtrace stopped: previous frame inner to this frame (corrupt stack?) Could it be that the program switched to some alternate stack? In that case, I could understand why it cannot walk the stack below system levels.