From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs-cvs on Cygwin Date: Tue, 26 Sep 2006 14:48:40 +0200 (MET DST) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1159274986 3321 80.91.229.2 (26 Sep 2006 12:49:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2006 12:49:46 +0000 (UTC) Cc: emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 26 14:49:41 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 1GSCN5-0002wh-5n for ged-emacs-devel@m.gmane.org; Tue, 26 Sep 2006 14:49:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSCN4-0002eZ-O0 for ged-emacs-devel@m.gmane.org; Tue, 26 Sep 2006 08:49:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSCMr-0002dk-2e for emacs-devel@gnu.org; Tue, 26 Sep 2006 08:48:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSCMq-0002dN-7i for emacs-devel@gnu.org; Tue, 26 Sep 2006 08:48:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSCMq-0002dI-4R for emacs-devel@gnu.org; Tue, 26 Sep 2006 08:48:56 -0400 Original-Received: from [141.108.26.25] (helo=postino2.roma1.infn.it) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GSCRS-0003iu-6O; Tue, 26 Sep 2006 08:53:42 -0400 Original-Received: from ax0rm1.roma1.infn.it (ax0rm1.roma1.infn.it [141.108.26.19]) by postino2.roma1.infn.it (8.12.11/8.12.11) with ESMTP id k8QCme0f022524; Tue, 26 Sep 2006 14:48:41 +0200 Original-Received: from localhost (graziosi@localhost) by ax0rm1.roma1.infn.it (8.9.3/8.9.3) with ESMTP id OAA14787; Tue, 26 Sep 2006 14:48:40 +0200 (MET DST) Original-To: Eli Zaretskii In-Reply-To: X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.0.3.2, Antispam-Data: 2006.9.26.53443 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__C230066_P5 0, __CT 0, __CT_TEXT_PLAIN 0, __FRAUD_419_BADTHINGS 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0' 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:60234 Archived-At: On Tue, 26 Sep 2006, Eli Zaretskii wrote: > Well, Kim just asked you to type 2 GDB commands, one after the other. > That shouldn't be hard to follow, and might just give us enough clues > to find the culprit. Obviously, I will do everything I can. > > For those two commands to work, you need to start GDB from the Emacs > src directory, so that GDB reads the .gdbinit file there. > As I have written in the last replay, I cannot run Emacs from that directory: ------------------------------------------------------------------- cd /tmp/emacs/.build/src $ gdb ./emacs GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x2009e476: file /tmp/emacs/src/emacs.c, line 464. Breakpoint 2 at 0x200b7e89: file /tmp/emacs/src/sysdep.c, line 1395. (gdb) (gdb) r -Q Starting program: /tmp/emacs/.build/src/emacs.exe -Q Loaded symbols for /c/WINDOWS/system32/ntdll.dll Loaded symbols for /c/WINDOWS/system32/kernel32.dll Loaded symbols for /usr/X11R6/bin/cygICE-6.dll Loaded symbols for /usr/bin/cygwin1.dll Loaded symbols for /c/WINDOWS/system32/advapi32.dll Loaded symbols for /c/WINDOWS/system32/rpcrt4.dll Loaded symbols for /usr/X11R6/bin/cygSM-6.dll Loaded symbols for /usr/X11R6/bin/cygX11-6.dll Loaded symbols for /usr/X11R6/bin/cygXaw3d-7.dll Loaded symbols for /usr/X11R6/bin/cygXext-6.dll Loaded symbols for /usr/X11R6/bin/cygXmu-6.dll Loaded symbols for /usr/X11R6/bin/cygXt-6.dll Loaded symbols for /usr/X11R6/bin/cygXpm-4.dll Loaded symbols for /usr/bin/cygncurses-8.dll Loaded symbols for /usr/bin/cygjpeg-62.dll Loaded symbols for /usr/bin/cygpng12.dll Loaded symbols for /usr/bin/cygz.dll Loaded symbols for /usr/bin/cygtiff-5.dll Loaded symbols for /usr/bin/cygungif-4.dll warning: NOD32 protected [MSAFD Tcpip [TCP/IP]] warning: NOD32 protected [MSAFD Tcpip [UDP/IP]] warning: NOD32 protected [MSAFD Tcpip [RAW/IP]] warning: NOD32 protected [RSVP UDP Service Provider] warning: NOD32 protected [RSVP TCP Service Provider] ------------------------------------------------------------------- At this point it hangs, Emacs does not appear, the urxvt window does not answer (for example, the scroll does not work) : I can only kill GDB (ps - kill...) After killed in that window appears: ------------------------------------------------------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2148.0xb90] ---Type to continue, or q to quit--- $ <==== PROMPT ========= ------------------------------------------------------------------- If I install Emacs in the prefix directory, I can start Emacs as described yesterday. Regarding the GDB command requested by Kim: > Can you try to debug that using the following gdb commands: > > p arg > xpr I have tried: ------------------------------------------------------------ cd /usr/local/emacs-22.0.50/bin $ gdb ./emacs GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) r Starting program: /usr/local/emacs-22.0.50/bin/emacs.exe Loaded symbols for /c/WINDOWS/system32/ntdll.dll Loaded symbols for /c/WINDOWS/system32/kernel32.dll Loaded symbols for /usr/X11R6/bin/cygICE-6.dll Loaded symbols for /usr/bin/cygwin1.dll Loaded symbols for /c/WINDOWS/system32/advapi32.dll Loaded symbols for /c/WINDOWS/system32/rpcrt4.dll Loaded symbols for /usr/X11R6/bin/cygSM-6.dll Loaded symbols for /usr/X11R6/bin/cygX11-6.dll Loaded symbols for /usr/X11R6/bin/cygXaw3d-7.dll Loaded symbols for /usr/X11R6/bin/cygXext-6.dll Loaded symbols for /usr/X11R6/bin/cygXmu-6.dll Loaded symbols for /usr/X11R6/bin/cygXt-6.dll Loaded symbols for /usr/X11R6/bin/cygXpm-4.dll Loaded symbols for /usr/bin/cygncurses-8.dll Loaded symbols for /usr/bin/cygjpeg-62.dll Loaded symbols for /usr/bin/cygpng12.dll Loaded symbols for /usr/bin/cygz.dll Loaded symbols for /usr/bin/cygtiff-5.dll Loaded symbols for /usr/bin/cygungif-4.dll warning: NOD32 protected [MSAFD Tcpip [TCP/IP]] warning: NOD32 protected [MSAFD Tcpip [UDP/IP]] warning: NOD32 protected [MSAFD Tcpip [RAW/IP]] warning: NOD32 protected [RSVP UDP Service Provider] warning: NOD32 protected [RSVP TCP Service Provider] [1]+ Stopped gdb ./emacs Angelo@homepc /usr/local/emacs-22.0.50/bin $ fg gdb ./emacs ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. 0x200f213c in mark_object (arg=1569454217) at /tmp/emacs/src/alloc.c:5509 5509 MARK_INTERVAL_TREE (ptr->intervals); (gdb) p arg $1 = 1569454217 (gdb) xpr Undefined command: "xpr". Try "help" ------------------------------------------------------------ Perhaps xpr is a mis-typed command, I have also tried with 'sexpr', 'expr', 'ptr' but with the same result. The thing I want to stress is this: Kim wrote: > Also, can you try to disable the tool-bar and see if the problem still > happens. when I start Emacs as I do normally, i.e. after installed in prefix, $ emacs-cvs & (where emacs-cvs is a link in /usr/local/bin to /usr/local/emacs-22.0.50/bin/emacs.exe) and soon I hide the tool-bar (Options-Show/Hide), then I can work with it for hours without problem, with more than 20 buffers loaded, using M-x compile, C-s (search), M-% (search and replace)....while building e new Emacs-CVS, running other C/C++/Fortran programs etc. Angelo.