From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: cygwin 5.19 make bootstrap croaks Date: Tue, 28 Feb 2006 07:59:51 +0200 Message-ID: References: <43FD57B7.4030203@it.to-be.co.jp> <4402BAE7.4060206@it.to-be.co.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1141412252 8108 80.91.229.2 (3 Mar 2006 18:57:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 18:57:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 03 19:57:31 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFFSo-0001QB-5v for ged-emacs-devel@m.gmane.org; Fri, 03 Mar 2006 19:57:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFFSm-0007o3-3W for ged-emacs-devel@m.gmane.org; Fri, 03 Mar 2006 13:57:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FEjUq-0003eP-9Z for emacs-devel@gnu.org; Thu, 02 Mar 2006 03:49:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FEjUj-0003c1-6q for emacs-devel@gnu.org; Thu, 02 Mar 2006 03:49:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDxuJ-0007xT-Nx for emacs-devel@gnu.org; Tue, 28 Feb 2006 01:00:24 -0500 Original-Received: from [192.114.186.17] (helo=gandalf.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FDxv5-0007zY-Lw for emacs-devel@gnu.org; Tue, 28 Feb 2006 01:01:12 -0500 Original-Received: from nitzan.inter.net.il (nitzan.inter.net.il [192.114.186.20]) by gandalf.inter.net.il (MOS 3.7.1-GA) with ESMTP id HZV39601; Tue, 28 Feb 2006 07:59:54 +0200 (IST) Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-206-22.inter.net.il [80.230.206.22]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id CUJ65963 (AUTH halo1); Tue, 28 Feb 2006 07:59:48 +0200 (IST) Original-To: djh In-reply-to: <4402BAE7.4060206@it.to-be.co.jp> (message from djh on Mon, 27 Feb 2006 17:40:07 +0900) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51085 Archived-At: > Date: Mon, 27 Feb 2006 17:40:07 +0900 > From: djh > CC: emacs-devel@gnu.org > > but, I'm getting a > > ".gdbinit:793: Error in sourced command file: " > "Cannot access memory at address 0x20000004 " > > ----------.gdbinit line 793 is the last end of the below 'if' ---- > # People get bothered when they see messages about non-existent functions... > xgetptr Vsystem_type > # $ptr is NULL in temacs > if ($ptr != 0) > set $tem = (struct Lisp_Symbol *) $ptr > xgetptr $tem->xname > set $tem = (struct Lisp_String *) $ptr > set $tem = (char *) $tem->data > > # Don't let abort actually run, as it will make stdio stop working and > # therefore the `pr' command above as well. > if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd' > # The windows-nt build replaces abort with its own function. > break w32_abort > else > break abort > end > end # 793 (This is line 793 ??? Can you see where is the 0x20000004 thing coming from? That is, what address is it complaining about? is it the value of $ptr after "xgetptr Vsystem_type"? Anyway, what version of GDB is that? > #7 0x200a2fa0 in main (argc=539897824, argv=0x4) at emacs.c:1062 > > > > When re-ran again than then issuing a 'l'ist cmd I got: > Program received signal SIGSEGV, Segmentation fault. > 0x610ad945 in pthread_mutexattr_init () from /usr/bin/cygwin1.dll > (gdb) l > 1072 newlines, we do that manually. */ > 1073 _fmode = O_BINARY; > 1074 #endif /* MSDOS || WINDOWSNT */ > 1075 > 1076 #ifdef MSDOS > 1077 #if __DJGPP__ >= 2 > 1078 if (!isatty (fileno (stdin))) > 1079 setmode (fileno (stdin), O_BINARY); > 1080 if (!isatty (fileno (stdout))) > 1081 { This doesn't show the most interesting line: line 1062, where it says that it crashed. Is that this line? uninterrupt_malloc (); If so, I'd suggest running under GDB, put a breakpoint on this line, and when it breaks, step with GDB inside uninterrupt_malloc and see where exactly inside that function it crashes. > This is a cygwin 5.19. Is that the latest? If so, perhaps it's a Cygwin problem. Can you downgrade to the previous version?