delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/12/10:30:57

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:subject:to:references:from:cc:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=JWB5wOdSvzf1B+Kq
O9gfQGZFuU8E5LvyxT6QRcqUaq7QGgpnJ9tKWUcvBdXGcFIjqVcxYXUODM8Jyiht
xhXfxvZECNnP7KfmQKz47bZjdCXQZEEFex3ISkYK1bUj11mxhTfUsrAukobAPGhz
QwDn6JpcToZ4CaUw/xxliX36A5k=
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:subject:to:references:from:cc:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=87707iVkENxOm5DJASYmu8
JGA3o=; b=qcwC0W8W64Bxe48iy3L8O8AFkMgcQibh+2AqJaJtd5D9SGXNnAHRzl
k5i96ciLcaj5NIA1GUjo+Fo0PdQp5sboHuPMM5MyzjwcJhry2ERu4vMpQ7j4FqKc
sxXWk+wTQIXqwc9puP+HvXjvW/2wmC7h0pegsIWhcY01tWQmP/Xpk=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: out3-smtp.messagingengine.com
Subject: Re: run.exe fails to start XWin on Windows 8.1 through the shortcut
To: Jaakov Jaakov <j_k_v AT ro DOT ru>, cygwin AT cygwin DOT com
References: <1439383412 DOT 552964 DOT 1315 DOT 31567 AT mail DOT rambler DOT ru>
From: Jon TURNEY <jon DOT turney AT dronecode DOT org DOT uk>
Cc: Stromeko AT nexgo DOT de
Message-ID: <55CB5887.2050607@dronecode.org.uk>
Date: Wed, 12 Aug 2015 15:30:31 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
MIME-Version: 1.0
In-Reply-To: <1439383412.552964.1315.31567@mail.rambler.ru>

On 12/08/2015 13:43, Jaakov Jaakov wrote:
>
> XWin fails to start again (previously reported half a year ago or so).

Thanks for following up on this.

> The command issued by a shortcut is
> C:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd;
> /usr/bin/startxwin"
> Upon starting the shortcut, there is some disc acitivty, but no window
> opens, and no XWin processes show up (according to the later-called Task
> Manager).
> No files in the directory /var/log/xwin are updated.
> The file C:\cygwin64\run.exe.stackdump is generated, containing
> Stack trace:
[...]

mumble mumble abracadabra!

> 0x000000018007256a    signal_exit                                                     exceptions.cc:1358
> 0x0000000180073d33    _cygtls::call_signal_handler()                                  exceptions.cc:1828
> 0x000000018012dfef    sig_send(_pinfo*, siginfo_t&, _cygtls*)                         sigproc.cc:714
> 0x000000018012ad90    _pinfo::kill(siginfo_t&)                                        signal.cc:252
> 0x000000018012b259    kill0                                                           signal.cc:303
> 0x000000018012b42c    raise                                                           signal.cc:289
> 0x000000018012b6ef    abort                                                           signal.cc:376
> 0x00000001801612da    dlfree                                                          malloc.cc:4717
> 0x00000001800cd933    free                                                            sync.h:36
> 0x0000000180126d5b    ??                                                              sigfe.s:43
> 0x00000001004011cc    file_exists_multi                                               run.c:877
> 0x0000000100404da8    main                                                            run.c:300
> 0x0000000180048410    dll_crt0_1(void*)                                               dcrt0.cc:1047
> 0x00000001800460dc    _cygtls::call2(unsigned int (*)(void*, void*), void*, void*)    cygtls.cc:112
> 0x0000000180046174    _cygtls::call(unsigned int (*)(void*, void*), void*)            cygtls.cc:30
> 0x00000001004036d1    cygwin_crt0                                                     cygwin_crt0.c:22

Achim,

Not sure if this is the cause of this problem, but after a bit of 
staring at file_exists_multi(), I notice that run2_fileExits() doesn't 
initialize t when it returns FALSE, so perhaps the following is a good idea?

> diff --git a/src/run.c b/src/run.c
> index e88441b..0985571 100644
> --- a/src/run.c
> +++ b/src/run.c
> @@ -880,7 +880,7 @@ file_exists_multi(char* fullname, const char* path,
>      fullname[0] = '\0';
>      for (i = 0; i < extcnt; i++)
>      {
> -        char* t;
> +        char* t = NULL;
>          strcpy(tryName,name_noext);
>          strcat(tryName,exts[i]);
>          if ((run2_fileExists(&t, path, tryName) == TRUE) && t && *t)


-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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