delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/07/08:35:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=m/DyfatKJZTFF8gvSsyf1OhAtowi3
Vq1G/DGpe7HueHjSybVTyrwKeckVvUvaJpb4Llj3q6kTWnVMcKCJG3G+Rd3M45j4
Sg01YrxAcmHEamK0gdHuYcleHSADxtkgyNoVOsb9j/obWGRzX01DdO2SDjf/ujWe
fT72lz1vo7L9dg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=Je65gwPCY+leZf2EOkQDucwsrsU=; b=vt7
UP1pfCslLmmtj4dcW5HgPOQBAAcu5mCW6n7E6RrKptYUw2KrGgE76xGA7be4iWLk
t9QP+oXvOcHo5f1TI9AA4GFIzHrGNc71WgQ4B1GcYVzWLbhUgP86Oi0jYr+KnSbp
YrCkgXCoslJ3qduTSqKfmCvYqg+eUxFyjHATgm/w=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_JX,TW_XV,TW_YG autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.152.28.40 with SMTP id y8mr2068297lag.15.1370608518226; Fri, 07 Jun 2013 05:35:18 -0700 (PDT)
Date: Fri, 7 Jun 2013 14:35:18 +0200
Message-ID: <CAHYyVz4oA-66v2Ukb+yiQMQL2qj2+jJ9fQY+hxhhwqtvc8F6vg@mail.gmail.com>
Subject: Cygwin64: mkshortcut - Segmentation fault
From: Vasiliy <testtest_2005 AT ukr DOT net>
To: cygwin AT cygwin DOT com

Original suspect:
~~~~~~~~~~~~
user AT host /etc/postinstall
$ cat /etc/postinstall/xinit.sh
/usr/bin/mkdir -p "$(/usr/bin/cygpath $CYGWINFORALL -P)/Cygwin-X"
/usr/bin/mkshortcut $CYGWINFORALL -P -i /usr/bin/XWin.exe -n
"Cygwin-X/XWin Server" -a "/usr/bin/bash.exe -l -c
/usr/bin/startxwin.exe" /usr/bin/run.exe

user AT host /etc/postinstall
$ env V=2 VERBOSE=2 xinit.sh
./xinit.sh: line 2: 22136 Aborted                 (core dumped)
/usr/bin/mkshortcut $CYGWINFORALL -P -i /usr/bin/XWin.exe -n
"Cygwin-X/XWin Server" -a "/usr/bin/bash.exe -l -c
/usr/bin/startxwin.exe" /usr/bin/run.exe

Real cause:
~~~~~~~~
user AT host /etc/postinstall
$ /usr/bin/mkdir -p "$(/usr/bin/cygpath $CYGWINFORALL -P)/Cygwin-X"

user AT host /etc/postinstall
$ /usr/bin/mkshortcut $CYGWINFORALL -P -i /usr/bin/XWin.exe -n
"Cygwin-X/XWin Server" -a "/usr/bin/bash.exe -l -c
/usr/bin/startxwin.exe" /usr/bin/run.exe
Aborted (core dumped)

$ cygcheck -f /usr/bin/mkshortcut.exe
cygutils-1.4.12-1

$ /bin/tar -C/ -jxvf cygutils-1.4.12-2.tar.bz2
usr/bin/cygstart.exe
usr/bin/mkshortcut.exe
usr/bin/readshortcut.exe
usr/share/man/man1/cygstart.1.gz
usr/share/man/man1/mkshortcut.1.gz
usr/share/man/man1/readshortcut.1.gz

???:
$ cygcheck -f /usr/bin/mkshortcut.exe
cygutils-1.4.12-1

$ /usr/bin/mkdir -p "$(/usr/bin/cygpath $CYGWINFORALL -P)/Cygwin-X"

$ /usr/bin/mkshortcut $CYGWINFORALL -P -i /usr/bin/XWin.exe -n
"Cygwin-X/XWin Server" -a "/usr/bin/bash.exe -l -c
/usr/bin/startxwin.exe" /usr/bin/run.exe
      4 [main] mkshortcut (9880) C:\cygwin64\bin\mkshortcut.exe: ***
fatal error - cygheap base mismatch detected - 0x0/0x61272950.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
Segmentation fault

$ uname -a
CYGWIN_NT-6.1 Luminous 1.7.20(0.266/5/3) 2013-06-06 17:36 x86_64 Cygwin

--
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