emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Emacs-cvs on Cygwin


From: Angelo Graziosi
Subject: Re: Building Emacs-cvs on Cygwin
Date: Tue, 26 Sep 2006 14:48:40 +0200 (MET DST)


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 <return> to continue, or q <return> 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

address@hidden /usr/local/emacs-22.0.50/bin
$ fg
gdb ./emacs
---Type <return> to continue, or q <return> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]