delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/08/03:28:40

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:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=iNwZ9SW/pvFKh+rz
a4tfsMI0gTdlGoSvnpxDk1OHZ+VyF/15am5x91s1/XtCoopM6gyNSCf+qSWKZTaS
jKuERbYvXfWlh7rX4F8SvuoWJWBavbKawiHEahhabGmWgdXec29Buj1hUFNp/KuF
ceyySfdvSLL1L63it+tsIAqZsFs=
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:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=mMXnF7L5CiGWtjgRh56lz/
AkA7k=; b=x7RsriBREtybBz0UmHVVahs+WFdA7rbU/TjnbkMZtaaOnD2RgRtJW9
LCeeEPYSTtWADFoyNizttuPvXFGyVxiuodsOwu80J5FXQwROW0J/FGfRW+qapvLV
7zirIAiB85PQRSlESTE3ppM97y/p2JeZlm4N9gWSKtBj1SIiT1vxE=
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-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=
X-HELO: atfriesa01.ssi-schaefer.com
Subject: Re: Fork problem with hexchat if cygserver is running
To: cygwin AT cygwin DOT com
References: <d9f9e3b4-23ff-d5ae-d0b9-26f6ab752c7a AT cornell DOT edu>
From: Michael Haubenwallner <michael DOT haubenwallner AT ssi-schaefer DOT com>
Openpgp: preference=signencrypt
Message-ID: <64c75d09-0771-901d-21bf-3ce10beecb38@ssi-schaefer.com>
Date: Thu, 8 Aug 2019 09:27:39 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
MIME-Version: 1.0
In-Reply-To: <d9f9e3b4-23ff-d5ae-d0b9-26f6ab752c7a@cornell.edu>

On 8/7/19 7:41 PM, Ken Brown wrote:
> Roughly 1 out of 3 times that I try to use hexchat, I get a fork failure:
> 
> 31143510 [main] hexchat 12392 dofork: child 12399 - died waiting for dll 
> loading, errno 11
> 
> It only happens if cygserver is running.  I caught it under strace and saw the 
> following:
> 
>     29   25558 [main] hexchat 12399 frok::child: hParent 0xAF0, load_dlls 1
>     43   25601 [main] hexchat 12399 open_shared: name cygpid.12392, n 12392, 
> shared 0x1100000 (wanted 0x0), h 0x10C, *m 6
>     35   25636 [main] hexchat 12399 getpid: 12399 = getpid()
>     65   25701 [main] hexchat 12399 transport_layer_pipes::connect: Try to 
> connect to named pipe: \\.\pipe\cygwin-e022582115c10879-lpc
>    363   26064 [main] hexchat 12399 C:\cygwin64\bin\hexchat.exe: *** fatal error 
> in forked process - fixup_shms_after_fork: NtMapViewOfSection (0x7FF4EE130000), 
> status 0xC0000018.  Terminating.
> 
> [status 0xC0000018 is STATUS_CONFLICTING_ADDRESSES.]
> 
> This was under cygwin-3.0.7-1.  It also happens with cygwin1.dll built from the 
> current master branch, and it also happens with cygwin-3.0.6-1.  Not being 
> familiar with this part of the Cygwin code, my first thought was to do a 
> bisection.  But I haven't yet found a good revision to start with.  I will still 
> try to do that, but in the meantime I thought I should report it.

I doubt there is a commit that introduces this problem.  Instead, this feels
like an address conflict with some (internal) memory allocated for some Windows
(or even Cygwin) object.
So I'd wonder if early memory reservation like is done for dynamically loaded
DLLs may help for SHMs as well.

/haubi/

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