From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97155 invoked by alias); 30 Nov 2018 14:06:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 97146 invoked by uid 89); 30 Nov 2018 14:06:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.6 required=5.0 tests=BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=instructed, entered, D*entry X-HELO: lb2-smtp-cloud7.xs4all.net Received: from lb2-smtp-cloud7.xs4all.net (HELO lb2-smtp-cloud7.xs4all.net) (194.109.24.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Nov 2018 14:05:59 +0000 Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:199]) by smtp-cloud7.xs4all.net with ESMTPA id SjQagA6OnfGaRSjQagV50y; Fri, 30 Nov 2018 15:05:56 +0100 Received: from a83-162-234-136.adsl.xs4all.nl ([83.162.234.136]) by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Fri, 30 Nov 2018 15:05:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 30 Nov 2018 14:06:00 -0000 From: Houder To: cygwin@cygwin.com Subject: Re: MinTTY requires gdiplus.dll ? (2) In-Reply-To: <20181130131918.GI30649@calimero.vinschen.de> References: <1953c30851fd83b67ee9b162b29f4195@xs4all.nl> <20181129195845.GE30649@calimero.vinschen.de> <4286450150901731f39f9514b8044ded@xs4all.nl> <20181130131918.GI30649@calimero.vinschen.de> Message-ID: <4607f540cb6271db6e372d9e11138159@xs4all.nl> X-Sender: houder@xs4all.nl User-Agent: XS4ALL Webmail X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00266.txt.bz2 On 2018-11-30 14:19, Corinna Vinschen wrote: > On Nov 30 13:42, Houder wrote: >> On 2018-11-29 20:58, Corinna Vinschen wrote: >> > On Nov 29 19:41, Houder wrote: >> [snip] >> >> > > --- Process 3112 loaded C:\Windows\System32\winmm.dll at >> > > 000007fefa040000 >> > > --- Process 3112 loaded C:\Windows\System32\winspool.drv at >> > > 000007fef9f10000 >> > > --- Process 3112, exception c0000005 at 0000000180044bb3 >> > > --- Process 3112 exited with status 0xc0000005 >> > > Segmentation fault >> > >> > I can reproduce this but while it's clear *where* it happens, it's >> > unclear *when* and *why* it happens. >> > >> > It only occurs if mintty is the first process in a process tree. I.e., >> > when starting mintty from a shell running in a DOS window, the problem >> > disappears. >> > >> > Worse, the problem also disappears when running mintty under gdb. >> >> (I do not understand _exactly_ what you say here) >> >> Uhm, if I invoke "gdb /usr/bin/mintty" (so, from the "Dos box") the >> problem >> does NOT disappear. >> >> That is: >> >> 2 threads are created ... and that is it; no MinTTY window showing >> up! > > I'm trying to avoid remote debugging so I rather try to reproduce this > @work. However, if you're interested in debugging this, set a > breakpoint to clk_monotonic_t::now() and observe how the call to the > virtual init() method hangs or crashes. If you find out why, I'd be > most grateful. Sorry Corinna, your request is way over my head. I can only confirm, that gdb does not return in clock.c I set a breakpoint as you instructed. Subsequently I entered "run": Thread 1 hit Breakpoint 1, clk_monotonic_t::now ( this=this@entry=0x1802f91b0 , clockid=clockid@entry=0, ts=ts@entry=0xffffc7c0) at /ext/build/mknetrel/src/cygwin-snapshot-20181129-1/winsup/cygwin/clock.cc Then I "stepped" through winsup/cygwin/clock.cc 169 in /ext/build/mknetrel/src/cygwin-snapshot-20181129-1/winsup/cygwin/cloc k.cc (gdb) Here "I lost control" ... Using https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git, I can see that it is "close" to the call of init() in clk_monotonic_t::now(). That is it for the moment. Still curious what Thomas W. has to report about his system. Regards, Henri -- 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