all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [h-e-w] Current word on binaries
       [not found] ` <m3broc4fdc.fsf@ate.maierh>
@ 2004-02-14  9:33   ` Harald Maier
  2004-02-14 11:57     ` Jason Rumney
  2004-02-14 12:06     ` Eli Zaretskii
  0 siblings, 2 replies; 30+ messages in thread
From: Harald Maier @ 2004-02-14  9:33 UTC (permalink / raw)


Harald Maier <harald@maierh.de> writes:

> "David Vanderschel" <DvdS@Austin.RR.com> writes:
>
>> On February 4 <Eric.Belpaire@equant.com> wrote in message
>> news:<mailman.1868.1075904614.928.help-gnu-emacs@gnu.org>...
>> Hello,
>>
>> I've installed the binary packages (fullbin and barebin) of emacs
>> 21.3 compiled for Windows, available at
>> http://ftp.gnu.org/gnu/emacs/windows/ The binary packages don't
>> work neither on Windows 2000, nor on Windows 98.  They crash.
>>
>> Emacs remains an outstanding editor.  Thank you for it.
>> Best regards,
>
> I tried it too and I found too that something goes wrong. 'emacs -q'
> works fine, but when I tried to load my .emacs it displays the 'Emacs
> Abort Dialog' and complains that 'A fatal error has occured!'

I did some additional tests and it looks that the problem occurs only
if emacs-21.3 is compiled with a latest cygwin gcc. I did two test
with the emacs-21.3.tar.gz from March last year and the actual tarball
from ftp.gnu.org. On both sources the same happens, so it does not
look that something has changed since the compromise of the server.
Afterwards I compiled emacs with MSVC and the result is that all works
as expected. Currently I have no clue why the problem with gcc
happens.  On my system I have also the latest cvs emacs and that is
always compiled by the cygwin gcc and it works very well. Maybe other
people have an idea why the problem occurs only on the emacs-21.3
sources. I would suggest that we change the current distribution from
a mingw compilation to a msvc compilation.

Harald

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14  9:33   ` [h-e-w] Current word on binaries Harald Maier
@ 2004-02-14 11:57     ` Jason Rumney
  2004-02-14 12:06     ` Eli Zaretskii
  1 sibling, 0 replies; 30+ messages in thread
From: Jason Rumney @ 2004-02-14 11:57 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs

Harald Maier <harald@maierh.de> writes:

> I would suggest that we change the current distribution from a mingw
> compilation to a msvc compilation.

I will do that. It may take some time though, because I think the GNU
admins will have to delete the existing files before I can upload new
ones, and they are still busy with changes to CVS after the most
recent attack on GNU servers. Until then, please use binaries from
other sources.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Current word on binaries
  2004-02-14  9:33   ` [h-e-w] Current word on binaries Harald Maier
  2004-02-14 11:57     ` Jason Rumney
@ 2004-02-14 12:06     ` Eli Zaretskii
  2004-02-14 12:18       ` [h-e-w] " Jason Rumney
  2004-02-14 13:18       ` [h-e-w] Current word on binaries Harald Maier
  1 sibling, 2 replies; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-14 12:06 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs

> From: Harald Maier <harald@maierh.de>
> Date: Sat, 14 Feb 2004 10:33:50 +0100
> >
> > I tried it too and I found too that something goes wrong. 'emacs -q'
> > works fine, but when I tried to load my .emacs it displays the 'Emacs
> > Abort Dialog' and complains that 'A fatal error has occured!'
> 
> I did some additional tests and it looks that the problem occurs only
> if emacs-21.3 is compiled with a latest cygwin gcc. I did two test
> with the emacs-21.3.tar.gz from March last year and the actual tarball
> from ftp.gnu.org. On both sources the same happens, so it does not
> look that something has changed since the compromise of the server.
> Afterwards I compiled emacs with MSVC and the result is that all works
> as expected. Currently I have no clue why the problem with gcc
> happens.

What version of GCC is the one that produces a bad binary?  What does
"gcc --version" says?

Can someone run Emacs under GDB and see where exactly does it abort?

One possible idea to check is to use lower level of optimizations when
building Emacs, like -O0 or -O1.  Can someone see if that produces a
good binary?




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14 12:06     ` Eli Zaretskii
@ 2004-02-14 12:18       ` Jason Rumney
  2004-02-16 19:52         ` Richard Stallman
  2004-02-14 13:18       ` [h-e-w] Current word on binaries Harald Maier
  1 sibling, 1 reply; 30+ messages in thread
From: Jason Rumney @ 2004-02-14 12:18 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, Harald Maier

"Eli Zaretskii" <eliz@elta.co.il> writes:

> Can someone run Emacs under GDB and see where exactly does it abort?

I have done that. It aborts on line 1739 of bytecode.c.

#ifdef BYTE_CODE_SAFE
    error ("binding stack not balanced (serious byte compiler bug)");
#else
    abort ();
#endif

Since it is deep within the byte code interpreter it is difficult to
find what happened to get get the binding stack in that state.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14 12:06     ` Eli Zaretskii
  2004-02-14 12:18       ` [h-e-w] " Jason Rumney
@ 2004-02-14 13:18       ` Harald Maier
  2004-02-14 13:37         ` Jason Rumney
  1 sibling, 1 reply; 30+ messages in thread
From: Harald Maier @ 2004-02-14 13:18 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs

"Eli Zaretskii" <eliz@elta.co.il> writes:

>> From: Harald Maier <harald@maierh.de>
>> Date: Sat, 14 Feb 2004 10:33:50 +0100
>> >
>> > I tried it too and I found too that something goes wrong. 'emacs -q'
>> > works fine, but when I tried to load my .emacs it displays the 'Emacs
>> > Abort Dialog' and complains that 'A fatal error has occured!'
>> 
>> I did some additional tests and it looks that the problem occurs only
>> if emacs-21.3 is compiled with a latest cygwin gcc. I did two test
>> with the emacs-21.3.tar.gz from March last year and the actual tarball
>> from ftp.gnu.org. On both sources the same happens, so it does not
>> look that something has changed since the compromise of the server.
>> Afterwards I compiled emacs with MSVC and the result is that all works
>> as expected. Currently I have no clue why the problem with gcc
>> happens.
>
> What version of GCC is the one that produces a bad binary?  What does
> "gcc --version" says?
>
> Can someone run Emacs under GDB and see where exactly does it abort?
>
> One possible idea to check is to use lower level of optimizations when
> building Emacs, like -O0 or -O1.  Can someone see if that produces a
> good binary?

It's gcc-3.3.1. I debugged the problem with insight and I got the
following backtrace in insight:

#1  0x01165be7 in w32_abort () at w32fns.c:14239
#2  0x01124db1 in Fbyte_code (bytestr=831842164, vector=1100249856, maxdepth=4) at bytecode.c:1710
#3  0x010234a7 in funcall_lambda (fun=1100290880, nargs=0, arg_vector=0x82ecf8) at eval.c:2851
#4  0x01022e7b in Ffuncall (nargs=1, args=0x82ecf4) at eval.c:2707
#5  0x01122e57 in Fbyte_code (bytestr=831842132, vector=1100249920, maxdepth=3) at bytecode.c:716
#6  0x01021cbc in Feval (form=1367136764) at eval.c:2019


The problem occured with the following command line:

$ emacs -q --no-site-file -l f:/home/maierh/local/elisp/html-helper-mode.el

,----
| ;;; html-helper-mode.el --- Major mode for composing html files.
| ;;; v 3.0.4jolly
`----

html-helper-mode is not the only example where it happens. As I
mentioned before with the current cvs emacs all works fine.

Harald

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14 13:18       ` [h-e-w] Current word on binaries Harald Maier
@ 2004-02-14 13:37         ` Jason Rumney
  2004-02-14 15:41           ` Harald Maier
  0 siblings, 1 reply; 30+ messages in thread
From: Jason Rumney @ 2004-02-14 13:37 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs

Harald Maier <harald@maierh.de> writes:

> It's gcc-3.3.1.

GCC 3.2 has the same problem. -O1 and -O0 do not help.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Current word on binaries
  2004-02-14 13:37         ` Jason Rumney
@ 2004-02-14 15:41           ` Harald Maier
  2004-02-14 16:56             ` [h-e-w] " Eli Zaretskii
  0 siblings, 1 reply; 30+ messages in thread
From: Harald Maier @ 2004-02-14 15:41 UTC (permalink / raw)
  Cc: help-emacs-windows, Eli Zaretskii, bug-gnu-emacs

Jason Rumney <jasonr@gnu.org> writes:

> Harald Maier <harald@maierh.de> writes:
>
>> It's gcc-3.3.1.
>
> GCC 3.2 has the same problem. -O1 and -O0 do not help.

Ok, I remember it again. Last year there was a patch about _fmode and
O_BINARY for gcc -mno-cygwin. See herefor the the messages in
emacs-devel with:

,----
| Subject: [david.ponce@wanadoo.fr: Re: Issues with Windows gcc -mno-cygwin
|       (Mingw)]
`----

,----[ snippet from the emacs.c patch ]
| ! #if defined (MSDOS) || defined (WINDOWSNT)
|     /* We do all file input/output as binary files.  When we need to translate
|        newlines, we do that manually.  */
|     _fmode = O_BINARY;
| + #endif /* MSDOS || WINDOWSNT */
|   
| + #ifdef MSDOS
`----

I tried it and then it works fine. Is it not possible to add an file
to the /pub/gnu/emacs sources that describes the restriction or
mentinones the patch.

Harald




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14 15:41           ` Harald Maier
@ 2004-02-14 16:56             ` Eli Zaretskii
  2004-02-14 17:24               ` Harald Maier
  0 siblings, 1 reply; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-14 16:56 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, jasonr

> From: Harald Maier <harald@maierh.de>
> Date: Sat, 14 Feb 2004 16:41:29 +0100
> 
> Ok, I remember it again. Last year there was a patch about _fmode and
> O_BINARY for gcc -mno-cygwin. See herefor the the messages in
> emacs-devel with:
> 
> ,----
> | Subject: [david.ponce@wanadoo.fr: Re: Issues with Windows gcc -mno-cygwin
> |       (Mingw)]
> `----

Sorry, I'm confused: what does this have to do with the problem at
hand?  Did you verify that the crash is related to this patch?

> ,----[ snippet from the emacs.c patch ]
> | ! #if defined (MSDOS) || defined (WINDOWSNT)
> |     /* We do all file input/output as binary files.  When we need to translate
> |        newlines, we do that manually.  */
> |     _fmode = O_BINARY;
> | + #endif /* MSDOS || WINDOWSNT */
> |   
> | + #ifdef MSDOS
> `----
> 
> I tried it and then it works fine. Is it not possible to add an file
> to the /pub/gnu/emacs sources that describes the restriction or
> mentinones the patch.

Why not simply patch the sources and be done with it?

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14 16:56             ` [h-e-w] " Eli Zaretskii
@ 2004-02-14 17:24               ` Harald Maier
  2004-02-14 17:49                 ` Eli Zaretskii
  0 siblings, 1 reply; 30+ messages in thread
From: Harald Maier @ 2004-02-14 17:24 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, jasonr

"Eli Zaretskii" <eliz@elta.co.il> writes:

>> From: Harald Maier <harald@maierh.de>
>> Date: Sat, 14 Feb 2004 16:41:29 +0100
>> 
>> Ok, I remember it again. Last year there was a patch about _fmode and
>> O_BINARY for gcc -mno-cygwin. See herefor the the messages in
>> emacs-devel with:
>> 
>> ,----
>> | Subject: [david.ponce@wanadoo.fr: Re: Issues with Windows gcc -mno-cygwin
>> |       (Mingw)]
>> `----
>
> Sorry, I'm confused: what does this have to do with the problem at
> hand?  Did you verify that the crash is related to this patch?

Yes, I added the patch and all worked fine. emacs-21.3.tar.gz was made
before that change of gcc. If you want to build emacs with newer gccs
you need that fix, otherwise you will get the errors as discussed.
IIRC that patch was added to the RC branch.

> Why not simply patch the sources and be done with it?

If this is possible, I don't have a problem with that. My only problem
is that the current emacs-21.3.tar.gz _sources_ in a actual cygwin
environment are useless. You will always get discussions about the
problem. Are there any plans to distribute the RC branch. That would
fix the problem too.

Harald 

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14 17:24               ` Harald Maier
@ 2004-02-14 17:49                 ` Eli Zaretskii
  2004-02-14 19:26                   ` Harald Maier
  0 siblings, 1 reply; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-14 17:49 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, jasonr

> From: Harald Maier <harald@maierh.de>
> Date: Sat, 14 Feb 2004 18:24:08 +0100
> 
> > Why not simply patch the sources and be done with it?
> 
> If this is possible, I don't have a problem with that. My only problem
> is that the current emacs-21.3.tar.gz _sources_ in a actual cygwin
> environment are useless. You will always get discussions about the
> problem. Are there any plans to distribute the RC branch. That would
> fix the problem too.

I don't think there are plans to make another release from the branch,
but I didn't see any final word by Richard on this, so I guess it's
possible.

In any case, we could replace emacs-21.3.tar.gz with a tarball under
the same name where emacs.c is patched.  (We could call it
emacs-21.3a.tar.gz, if using the same name would confuse people.)

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-14 17:49                 ` Eli Zaretskii
@ 2004-02-14 19:26                   ` Harald Maier
  0 siblings, 0 replies; 30+ messages in thread
From: Harald Maier @ 2004-02-14 19:26 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, jasonr

"Eli Zaretskii" <eliz@elta.co.il> writes:

> In any case, we could replace emacs-21.3.tar.gz with a tarball under
> the same name where emacs.c is patched.  (We could call it
> emacs-21.3a.tar.gz, if using the same name would confuse people.)

That sounds really good to me.

Harald

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Current word on binaries
  2004-02-14 12:18       ` [h-e-w] " Jason Rumney
@ 2004-02-16 19:52         ` Richard Stallman
  2004-02-16 20:38           ` Jason Rumney
  0 siblings, 1 reply; 30+ messages in thread
From: Richard Stallman @ 2004-02-16 19:52 UTC (permalink / raw)
  Cc: help-emacs-windows, eliz, harald, bug-gnu-emacs

    Since it is deep within the byte code interpreter it is difficult to
    find what happened to get get the binding stack in that state.

You could disassemble the byte code and see if it is valid.
If it is valid, then debugging the byte code interpreter
might not be too hard.  One could determine what the stack
level should be at certain points in the function, and add
debugging code to test the actual stack level at those points.

One could also do this by adding a bytecode instruction to test
the binding stack level, and adding a flag to make the compiler
generate these instructions.  That would be a new debugging 
feature in the compiler.




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Current word on binaries
  2004-02-16 19:52         ` Richard Stallman
@ 2004-02-16 20:38           ` Jason Rumney
  2004-02-17  6:50             ` [h-e-w] " Eli Zaretskii
  2004-02-18  8:38             ` Richard Stallman
  0 siblings, 2 replies; 30+ messages in thread
From: Jason Rumney @ 2004-02-16 20:38 UTC (permalink / raw)
  Cc: help-emacs-windows, eliz, harald, bug-gnu-emacs

Richard Stallman <rms@gnu.org> writes:

>     Since it is deep within the byte code interpreter it is difficult to
>     find what happened to get get the binding stack in that state.
> 
> You could disassemble the byte code and see if it is valid.

I think we have pinpointed the cause. The .elc files were being
loaded as text files (on Windows this means dropping \r and
truncating on Ctrl-Z) due to a change in the defaults for GCC on
Windows sometime between 2.95 and 3.2. We already have a fix in CVS,
but it was not in 21.3.

We can either build the 21.3 release with an older version of GCC, or
patch the sources and release a 21.3a for Windows as suggested by Eli.





^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-16 20:38           ` Jason Rumney
@ 2004-02-17  6:50             ` Eli Zaretskii
  2004-02-17  8:56               ` Jason Rumney
  2004-02-18  8:38             ` Richard Stallman
  1 sibling, 1 reply; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-17  6:50 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, rms

> From: Jason Rumney <jasonr@gnu.org>
> Date: 16 Feb 2004 20:38:06 +0000
> 
> I think we have pinpointed the cause. The .elc files were being
> loaded as text files (on Windows this means dropping \r and
> truncating on Ctrl-Z) due to a change in the defaults for GCC on
> Windows sometime between 2.95 and 3.2.

What change in the GCC defaults is that, and how can it affect the
text/binary issue in Emacs?

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-17  6:50             ` [h-e-w] " Eli Zaretskii
@ 2004-02-17  8:56               ` Jason Rumney
  2004-02-17 19:03                 ` Eli Zaretskii
  0 siblings, 1 reply; 30+ messages in thread
From: Jason Rumney @ 2004-02-17  8:56 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, rms

Eli Zaretskii <eliz@elta.co.il> writes:

> > From: Jason Rumney <jasonr@gnu.org>
> > Date: 16 Feb 2004 20:38:06 +0000
> > 
> > I think we have pinpointed the cause. The .elc files were being
> > loaded as text files (on Windows this means dropping \r and
> > truncating on Ctrl-Z) due to a change in the defaults for GCC on
> > Windows sometime between 2.95 and 3.2.
> 
> What change in the GCC defaults is that, and how can it affect the
> text/binary issue in Emacs?

The Emacs patch has been posted to this thread already. You commented
on it.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-17  8:56               ` Jason Rumney
@ 2004-02-17 19:03                 ` Eli Zaretskii
  2004-02-18  0:13                   ` Jason Rumney
  0 siblings, 1 reply; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-17 19:03 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, rms

> From: Jason Rumney <jasonr@gnu.org>
> Date: 17 Feb 2004 08:56:15 +0000
> > 
> > What change in the GCC defaults is that, and how can it affect the
> > text/binary issue in Emacs?
> 
> The Emacs patch has been posted to this thread already. You commented
> on it.

I remember the patch, I just don't understand how this issue could be
uncovered by some change in the compiler.  To the best of my
understanding, the original code should have bitten us a long time
ago.

What am I missing?

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-17 19:03                 ` Eli Zaretskii
@ 2004-02-18  0:13                   ` Jason Rumney
  2004-02-18  6:11                     ` Eli Zaretskii
  0 siblings, 1 reply; 30+ messages in thread
From: Jason Rumney @ 2004-02-18  0:13 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, rms

"Eli Zaretskii" <eliz@elta.co.il> writes:

> I remember the patch, I just don't understand how this issue could be
> uncovered by some change in the compiler.  To the best of my
> understanding, the original code should have bitten us a long time
> ago.
> 
> What am I missing?

Linking with binmode.obj has been the way we have avoided being bitten
by MSVC in the past, but earlier versions of GCC defaulted to binary
mode and did not contain a binmode.obj (or .o) so that was made
conditional in the makefile. More recent versions of GCC now act more
like Windows compilers, defaulting to text mode and providing a
binmode.o to link with if you want binary mode as the default.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-18  0:13                   ` Jason Rumney
@ 2004-02-18  6:11                     ` Eli Zaretskii
  0 siblings, 0 replies; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-18  6:11 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, rms

> From: Jason Rumney <jasonr@gnu.org>
> Date: 18 Feb 2004 00:13:32 +0000
> 
> 
> Linking with binmode.obj has been the way we have avoided being bitten
> by MSVC in the past, but earlier versions of GCC defaulted to binary
> mode and did not contain a binmode.obj (or .o) so that was made
> conditional in the makefile. More recent versions of GCC now act more
> like Windows compilers, defaulting to text mode and providing a
> binmode.o to link with if you want binary mode as the default.

So you are saying that the startup module supplied with GCC switched
from binary to text mode as the default?

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Current word on binaries
  2004-02-16 20:38           ` Jason Rumney
  2004-02-17  6:50             ` [h-e-w] " Eli Zaretskii
@ 2004-02-18  8:38             ` Richard Stallman
  2004-02-18 10:39               ` [h-e-w] " Eli Zaretskii
  1 sibling, 1 reply; 30+ messages in thread
From: Richard Stallman @ 2004-02-18  8:38 UTC (permalink / raw)
  Cc: help-emacs-windows, eliz, harald, bug-gnu-emacs

    We can either build the 21.3 release with an older version of GCC, or
    patch the sources and release a 21.3a for Windows as suggested by Eli.

We could make a 21.4 release from the release branch.
That might be a good idea anyway.




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-18  8:38             ` Richard Stallman
@ 2004-02-18 10:39               ` Eli Zaretskii
  2004-02-18 12:30                 ` Harald Maier
  2004-02-18 13:43                 ` Current word on binaries Jason Rumney
  0 siblings, 2 replies; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-18 10:39 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, jasonr

> From: Richard Stallman <rms@gnu.org>
> Date: Wed, 18 Feb 2004 03:38:33 -0500
> 
> We could make a 21.4 release from the release branch.
> That might be a good idea anyway.

I agree.  IIRC, 21.3 had a couple of annoying last-minute bugs.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Current word on binaries
  2004-02-18 10:39               ` [h-e-w] " Eli Zaretskii
@ 2004-02-18 12:30                 ` Harald Maier
  2004-02-18 13:37                   ` [h-e-w] " Jason Rumney
                                     ` (2 more replies)
  2004-02-18 13:43                 ` Current word on binaries Jason Rumney
  1 sibling, 3 replies; 30+ messages in thread
From: Harald Maier @ 2004-02-18 12:30 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, rms, jasonr


Eli Zaretskii <eliz@elta.co.il> writes:

>> From: Richard Stallman <rms@gnu.org>
>> Date: Wed, 18 Feb 2004 03:38:33 -0500
>> 
>> We could make a 21.4 release from the release branch.
>> That might be a good idea anyway.
>
> I agree.  IIRC, 21.3 had a couple of annoying last-minute bugs.

Hello Eli,

I am not sure if I took the right version (EMACS_21_1_RC), but if this
is the current RC branch, then the patch for the discussed problem is
_not_ in the branch. Please, let me know the right RC tag if I'm wrong
and then I will double check again.

Harald




^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-18 12:30                 ` Harald Maier
@ 2004-02-18 13:37                   ` Jason Rumney
  2004-02-18 14:28                   ` Eli Zaretskii
  2004-02-18 23:29                   ` Jason Rumney
  2 siblings, 0 replies; 30+ messages in thread
From: Jason Rumney @ 2004-02-18 13:37 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, rms

Harald Maier wrote:

>Eli Zaretskii <eliz@elta.co.il> writes:
>
>  
>
>>>From: Richard Stallman <rms@gnu.org>
>>>Date: Wed, 18 Feb 2004 03:38:33 -0500
>>>
>>>We could make a 21.4 release from the release branch.
>>>That might be a good idea anyway.
>>>      
>>>
>>I agree.  IIRC, 21.3 had a couple of annoying last-minute bugs.
>>    
>>
>
>Hello Eli,
>
>I am not sure if I took the right version (EMACS_21_1_RC), but if this
>is the current RC branch, then the patch for the discussed problem is
>_not_ in the branch. Please, let me know the right RC tag if I'm wrong
>and then I will double check again.
>  
>

The patch is not in there yet, because we had not decided to continue 
releasing from the
EMACS_21_1_RC branch until now. But that is the correct branch.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: Current word on binaries
  2004-02-18 10:39               ` [h-e-w] " Eli Zaretskii
  2004-02-18 12:30                 ` Harald Maier
@ 2004-02-18 13:43                 ` Jason Rumney
  2004-02-18 18:54                   ` [h-e-w] " Eli Zaretskii
  1 sibling, 1 reply; 30+ messages in thread
From: Jason Rumney @ 2004-02-18 13:43 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, rms

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

Eli Zaretskii wrote:

>>From: Richard Stallman <rms@gnu.org>
>>Date: Wed, 18 Feb 2004 03:38:33 -0500
>>
>>We could make a 21.4 release from the release branch.
>>That might be a good idea anyway.
>>    
>>
>
>I agree.  IIRC, 21.3 had a couple of annoying last-minute bugs.
>  
>
Its a good idea if we can stick to a quick pretest cycle (a couple of 
weeks at the most). Otherwise the dragging out of the pretest will cause 
disillusioned users and distract the developers from getting CVS trunk 
into a releasable state. There are only a couple of minor bugfixes, so 
it should be possible to keep the pretest short if we purposely set out 
to do that and don't get distracted.


[-- Attachment #2: Type: text/html, Size: 1136 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-18 12:30                 ` Harald Maier
  2004-02-18 13:37                   ` [h-e-w] " Jason Rumney
@ 2004-02-18 14:28                   ` Eli Zaretskii
  2004-02-18 23:29                   ` Jason Rumney
  2 siblings, 0 replies; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-18 14:28 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, rms, jasonr

> From: Harald Maier <harald@maierh.de>
> Date: Wed, 18 Feb 2004 13:30:23 +0100
> 
> I am not sure if I took the right version (EMACS_21_1_RC), but if this
> is the current RC branch, then the patch for the discussed problem is
> _not_ in the branch. Please, let me know the right RC tag if I'm wrong
> and then I will double check again.

EMACS_21_1_RC is the right tag, as far as I remember.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-18 13:43                 ` Current word on binaries Jason Rumney
@ 2004-02-18 18:54                   ` Eli Zaretskii
       [not found]                     ` <m3fzd79ymj.fsf@ate.maierh>
  0 siblings, 1 reply; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-18 18:54 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, harald, rms

> Date: Wed, 18 Feb 2004 13:43:24 +0000
> From: Jason Rumney <jasonr@gnu.org>
> >
> >I agree.  IIRC, 21.3 had a couple of annoying last-minute bugs.
> >
> Its a good idea if we can stick to a quick pretest cycle (a couple of
> weeks at the most).

Agreed.

I think this should be possible because, as you said, the release
branch didn't see commits for a long time.

The hardest thing would be to find a victim^H^H^H^H^H^Hvolunteer to
do package the tarballs and deltas and generally supervise the
release process.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries
  2004-02-18 12:30                 ` Harald Maier
  2004-02-18 13:37                   ` [h-e-w] " Jason Rumney
  2004-02-18 14:28                   ` Eli Zaretskii
@ 2004-02-18 23:29                   ` Jason Rumney
  2004-02-23 12:14                     ` [h-e-w] Current word on binaries (EMACS_21_1_RC on cygwin) Harald Maier
  2 siblings, 1 reply; 30+ messages in thread
From: Jason Rumney @ 2004-02-18 23:29 UTC (permalink / raw)
  Cc: help-emacs-windows, bug-gnu-emacs, rms

Harald Maier <harald@maierh.de> writes:

> I am not sure if I took the right version (EMACS_21_1_RC), but if this
> is the current RC branch, then the patch for the discussed problem is
> _not_ in the branch.

The fix has been committed to EMACS_21_1_RC now, so a cvs update
should pick it up.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Emacs release procedure (Was: [h-e-w] Current word on binaries)
       [not found]                     ` <m3fzd79ymj.fsf@ate.maierh>
@ 2004-02-21 13:08                       ` Eli Zaretskii
  0 siblings, 0 replies; 30+ messages in thread
From: Eli Zaretskii @ 2004-02-21 13:08 UTC (permalink / raw)
  Cc: Francesco Potorti`, emacs-devel

Here's a message sent in the past by Gerd Moellmann in which he
summarized the procedure he used for making a pretest/release
tarballs.  Note that the specific versions and tags mentioned may need
to be revised/modified for each specific release.

Francesco, if you have any comments based on your experience of
releasing v21.3, please do.

One issue I remember from my experience is that there are directories
present in the checked-out branch, such as lispref, which should not
be in the tarball.  They are there because they are present on the
trunk and because the RC branch tag exists on those directories as
well.  The solution is either to remove the directories in your local
sandbox, or (better) remove the branch tags from the files that are
not supposed to exist on the branch, and use "cvs update -P" to let
CVS prune empty directories when the tree is checked out.

I'm cc'ing emacs-devel so that this procedure is archived and could
be useful to future release managers.  I started a new thread for the
same reason.

------- Start of forwarded message -------
Subject: CVS tags
Reply-To: gerd@gnu.org
From: gerd.moellmann@t-online.de (Gerd Moellmann)
Date: 24 Mar 2002 20:42:06 +0100
X-Sender: 520015515780-0001@t-dialin.net
X-Status: A

I see in the change logs that 21.2 has been released.

Since there is no CVS tag for it, I wonder if I ever told that I did
tag the releases and pretests to facilitate diffing etc., or if I did
tell how I built the releases and pretests.  In case it's useful,
below is the exact procedure I followed.

1. cvs update

2. Run admin/build-configs to make sure Emacs builds in a number of
   frequently used configurations.  Fix bugs.

3. Bootstrap to make 100% sure all elc files are up-to-date, and to
   make sure that the later tagged version will bootstrap, should it
   be necessary to check it out.

4. Commit loaddefs.el, cus-load.el, finder-inf.el.

5. Run autoconf, commit configure.

5a. For a release, add released change log entries, and set the
   version number (M-x load-file RET admin/admin.el RET, then
   M-x add-release-logs RET, and M-x set-version RET).

6. make-dist --snapshot.  Check the contents of the new tar with 
   admin/diff-tar-files against an older tar file.

7. Make xdeltas

8. Untar the tar files made in 6, configure, build, install, saving
   the output of these phases with the script command.  Check the
   output, esp. check that Info files aren't built.  (Saving 
   the output of the last release diffing helps spotting problems.)

9. `cvs tag EMACS_PRETEST_21_0_105' in the toplevel Emacs dir.
   (I used `EMACS_21_1' for the release tag.)

10. Increment version numbers in versions.el, README, emacs.texi.
  (See 5a).

11. Upload & announce.
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries (EMACS_21_1_RC on cygwin)
  2004-02-18 23:29                   ` Jason Rumney
@ 2004-02-23 12:14                     ` Harald Maier
  2004-02-23 16:43                       ` Harald Maier
  2004-02-24  8:41                       ` Richard Stallman
  0 siblings, 2 replies; 30+ messages in thread
From: Harald Maier @ 2004-02-23 12:14 UTC (permalink / raw)
  Cc: Eli Zaretskii, emacs-devel


Jason Rumney <jasonr@gnu.org> writes:

> Harald Maier <harald@maierh.de> writes:
>
>> I am not sure if I took the right version (EMACS_21_1_RC), but if this
>> is the current RC branch, then the patch for the discussed problem is
>> _not_ in the branch.
>
> The fix has been committed to EMACS_21_1_RC now, so a cvs update
> should pick it up.

Hallo Jason,

I took the changes and all works fine if emacs is compiled with no
optimizations (--no-opt). If I turn on optimizations then I get the
following re-producable errors. The most time I am using --no-opt, so
that's the reason why it worked for me before. Have you or others an
idea how to verify or debug the problem? I still have here also a MSVC
and a two year old MINGW runtime environment with that I can do some
debugging. Building emacs on that environments still works fine.

Harald

Loading help...
Loading international/mule-cmds...
Loading case-table...
Loading international/utf-8...
Loading international/utf-16...
Loading international/characters...
End of file during parsing: g:/cvs/emacs-cygwin/lisp/international/characters.elc
Signal 127
make.exe[1]: *** [oo-spd/i386/emacs.exe] Error 255
make.exe[1]: Leaving directory `g:/cvs/rc/emacs-cygwin/src'
d:\usr\mingw-make\bin\make.exe: *** [all-other-dirs-gmake] Error 2

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries (EMACS_21_1_RC on cygwin)
  2004-02-23 12:14                     ` [h-e-w] Current word on binaries (EMACS_21_1_RC on cygwin) Harald Maier
@ 2004-02-23 16:43                       ` Harald Maier
  2004-02-24  8:41                       ` Richard Stallman
  1 sibling, 0 replies; 30+ messages in thread
From: Harald Maier @ 2004-02-23 16:43 UTC (permalink / raw)
  Cc: Eli Zaretskii, emacs-devel

Harald Maier <harald@maierh.de> writes:

> Jason Rumney <jasonr@gnu.org> writes:
>
>> Harald Maier <harald@maierh.de> writes:
>>
>>> I am not sure if I took the right version (EMACS_21_1_RC), but if this
>>> is the current RC branch, then the patch for the discussed problem is
>>> _not_ in the branch.
>>
>> The fix has been committed to EMACS_21_1_RC now, so a cvs update
>> should pick it up.
>
> Hallo Jason,
>
> I took the changes and all works fine if emacs is compiled with no
> optimizations (--no-opt). If I turn on optimizations then I get the
> following re-producable errors. The most time I am using --no-opt, so
> that's the reason why it worked for me before. Have you or others an
> idea how to verify or debug the problem? I still have here also a MSVC
> and a two year old MINGW runtime environment with that I can do some
> debugging. Building emacs on that environments still works fine.
>
> Harald
>
> Loading help...
> Loading international/mule-cmds...
> Loading case-table...
> Loading international/utf-8...
> Loading international/utf-16...
> Loading international/characters...
> End of file during parsing: g:/cvs/emacs-cygwin/lisp/international/characters.elc
> Signal 127
> make.exe[1]: *** [oo-spd/i386/emacs.exe] Error 255
> make.exe[1]: Leaving directory `g:/cvs/rc/emacs-cygwin/src'
> d:\usr\mingw-make\bin\make.exe: *** [all-other-dirs-gmake] Error 2

FYI. Just figured out that same problem exists in CVS emacs.

Harald

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [h-e-w] Current word on binaries (EMACS_21_1_RC on cygwin)
  2004-02-23 12:14                     ` [h-e-w] Current word on binaries (EMACS_21_1_RC on cygwin) Harald Maier
  2004-02-23 16:43                       ` Harald Maier
@ 2004-02-24  8:41                       ` Richard Stallman
  1 sibling, 0 replies; 30+ messages in thread
From: Richard Stallman @ 2004-02-24  8:41 UTC (permalink / raw)
  Cc: eliz, emacs-devel, jasonr

    I took the changes and all works fine if emacs is compiled with no
    optimizations (--no-opt). If I turn on optimizations then I get the
    following re-producable errors.

In such a case, it is necessary to track down where in Emacs the code
executes wrong, much as if you were looking for any other kind of Emacs
bug.

Once the problem is localized, you may find code that is not
well-defined C.  Or you may find a line that is miscompiled.  If it is
the latter, we would want to send a GCC bug report.

    I still have here also a MSVC
    and a two year old MINGW runtime environment with that I can do some
    debugging.

If the problem does not happen with them, then they are irrelevant to
it.  The way to find a bug is to debug the case that fails.
Investigating cases that don't fail won't tell you about the failure.

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2004-02-24  8:41 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <009901c3ec70$b3013940$6400a8c0@austin.rr.com>
     [not found] ` <m3broc4fdc.fsf@ate.maierh>
2004-02-14  9:33   ` [h-e-w] Current word on binaries Harald Maier
2004-02-14 11:57     ` Jason Rumney
2004-02-14 12:06     ` Eli Zaretskii
2004-02-14 12:18       ` [h-e-w] " Jason Rumney
2004-02-16 19:52         ` Richard Stallman
2004-02-16 20:38           ` Jason Rumney
2004-02-17  6:50             ` [h-e-w] " Eli Zaretskii
2004-02-17  8:56               ` Jason Rumney
2004-02-17 19:03                 ` Eli Zaretskii
2004-02-18  0:13                   ` Jason Rumney
2004-02-18  6:11                     ` Eli Zaretskii
2004-02-18  8:38             ` Richard Stallman
2004-02-18 10:39               ` [h-e-w] " Eli Zaretskii
2004-02-18 12:30                 ` Harald Maier
2004-02-18 13:37                   ` [h-e-w] " Jason Rumney
2004-02-18 14:28                   ` Eli Zaretskii
2004-02-18 23:29                   ` Jason Rumney
2004-02-23 12:14                     ` [h-e-w] Current word on binaries (EMACS_21_1_RC on cygwin) Harald Maier
2004-02-23 16:43                       ` Harald Maier
2004-02-24  8:41                       ` Richard Stallman
2004-02-18 13:43                 ` Current word on binaries Jason Rumney
2004-02-18 18:54                   ` [h-e-w] " Eli Zaretskii
     [not found]                     ` <m3fzd79ymj.fsf@ate.maierh>
2004-02-21 13:08                       ` Emacs release procedure (Was: [h-e-w] Current word on binaries) Eli Zaretskii
2004-02-14 13:18       ` [h-e-w] Current word on binaries Harald Maier
2004-02-14 13:37         ` Jason Rumney
2004-02-14 15:41           ` Harald Maier
2004-02-14 16:56             ` [h-e-w] " Eli Zaretskii
2004-02-14 17:24               ` Harald Maier
2004-02-14 17:49                 ` Eli Zaretskii
2004-02-14 19:26                   ` Harald Maier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.