delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/12/15:16:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <87aazwkhyl.fsf@uwakimon.sk.tsukuba.ac.jp>
References: <20a807210910071714t45136fd7hc36108c990377bc4 AT mail DOT gmail DOT com> <87pr8yqmdt DOT fsf AT uwakimon DOT sk DOT tsukuba DOT ac DOT jp> <20a807210910080843k50c4cbddtb06ad474b3195a03 AT mail DOT gmail DOT com> <87ws35pwbg DOT fsf AT uwakimon DOT sk DOT tsukuba DOT ac DOT jp> <20a807210910081950v80a4da9ga5ed1265dfca07ef AT mail DOT gmail DOT com> <416096c60910082305y2f0783a5i95b2adac872831bd AT mail DOT gmail DOT com> <873a5sn3sk DOT fsf AT uwakimon DOT sk DOT tsukuba DOT ac DOT jp> <416096c60910100842s44cf8038y9c8a2c4f0b7c8abe AT mail DOT gmail DOT com> <87aazwkhyl DOT fsf AT uwakimon DOT sk DOT tsukuba DOT ac DOT jp>
Date: Mon, 12 Oct 2009 15:16:00 -0400
Message-ID: <20a807210910121216u71ee04f7o4061480c49f14b06@mail.gmail.com>
Subject: Re: Segfault under cygwin 1.7.62
From: Vin Shelton <acs AT xemacs DOT org>
To: "Stephen J. Turnbull" <stephen AT xemacs DOT org>
Cc: Andy Koppe <andy DOT koppe AT gmail DOT com>, cygwin AT cygwin DOT com,
XEmacs developers <xemacs-beta AT xemacs DOT org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, Oct 12, 2009 at 6:46 AM, Stephen J. Turnbull <stephen AT xemacs DOT org> w=
rote:
> Andy Koppe writes:
>
> =A0> Meanwhile, Corinna has implemented support for the latter on
> =A0> cygwin-cvs, so that mad filename works fine now:
> =A0>
> =A0> $ touch $'=EF\202\201=D0\201=D0\201=D0\201=EF\203\22002ABFxi-string)=
g)=C0=E2w\001\200=D1H\001=C2\200\t'
> =A0> $ ls
> =A0> =EF??=D0?=D0?=D0?=EF??02ABFxi-string)g)=C0=E2w??=D1H?=C2??
> =A0> $ ls --quoting-style=3Descape
> =A0> =EF\202\201=D0\201=D0\201=D0\201=EF\203\22002ABFxi-string)g)=C0=E2w\=
001\200=D1H\001=C2\200\t
>
> Thank you!
>
> N.B. =A0I think that those names appeared in Emacs string APIs. =A0Emacs
> strings are not NUL-terminated, so most likely the tail wasn't part of
> the actual file name. =A0It's pretty amazing that even the parentheses
> don't mess things up!
>
> Vin, let us know if you have further problems after upgrading to the
> next Cygwin.

The new behavior is different, but the problem is not yet fixed.
Here's what happened:

1. Rather than building cygwin1.dll from CVS, I waited until Corinna
had cut a new snapshot.  I downloaded cygwin1-20091012.dll.bz2 and
installed it.  'uname -a' reports "CYGWIN_NT-5.1 gandalf-xp
1.7.0s(0.215/5/3) 20091012 10:21:06 i686 Cygwin".

2. At the same time, I noticed that Aidan checked in some fixes for
the mule tests, so I upgraded to those.

3. I fired up a build of the new XEmacs sources, running against the
new cygwin1.dll.  When I run 'make check' against that XEmacs, I get
the now-familiar failure:

Testing /usr/local/src/xemacs-21.5-test-2009-10-12-mule/tests/automated/mul=
e-tests.el...
FAIL: Assertion failed: (file-exists-p name2)
FAIL: Assertion failed: (equal (file-truename name2) name1)

Fatal error: assertion failed, file
/usr/local/src/xemacs-21.5-test-2009-10-12-mule/src/unicode.c, line
2358, RECORD_TYPEP (obj, lrecord_type_charset)
make[1]: *** [check] Segmentation fault (core dumped)
make[1]: Leaving directory
`/usr/local/build/xemacs-21.5-test-2009-10-12-mule/src'
make: *** [check] Error 2


4.  But when I try to run that XEmacs under gdb, I get different
results: gdb doesn't detect a segfault, and the test seems to run to
completion:

...

SUMMARY for /usr/local/build/xemacs-21.5-test-2009-10-12-mule/tests/automat=
ed/mule-tests.el:
	  682 passes
	    6 assertion failures
	    0 errors that should have been generated, but weren't
	    0 wrong-error failures
	    0 missing-message failures
	    0 other failures

but I get the following messages (read from bottom to top):

Test suite execution failed unexpectedly.
mule-tests.el:            682 of   688 tests successful ( 99%).
Test suite execution aborted.
Unexpected error (invalid-argument "Invalid (GNU Emacs) key format
(see doc of define-key)" C-f9) while executing byte-compiled code.
(New file)
(New file)
(New file)
(New file)
Loading byte-optimize...done
Loading byte-optimize...
Test suite execution aborted.
Unexpected error (structure-formation-error "Invalid prefix keys in
sequence" ?S [?S -]) while executing interpreted code.
Loading iso-with-esc...done
Loading iso-with-esc...
Loading ccl...done
Loading ccl...
(New file)
(New file)
(New file)
(New file)
Loading efs-cu...done
Loading efs-cu...
Testing /usr/local/build/xemacs-21.5-test-2009-10-12-mule/tests/automated/m=
ule-tests.el...


Note the "Test suite execution failed unexpectedly." message.

I see similar results with a version of XEmacs built without Aidan's
changes: crash at the command line when running 'make check' but no
crash under gdb.

Do I need some additional cygwin changes other than the dll?  Corinna
- I noticed that you changed the "DEFAULT_LOCALE" in
include/cygwin/config.h (DEFAULT_LOCALE) to  "C.UTF-8". Do I need to
import that change into my compile-time environment somehow?  Or is
there an environment variable that needs to be set to alter runtime
behavior?

  - Vin

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019