X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D91EA386188A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo AT towo DOT net Subject: Re: Failed assertion dialog box ATTN: Takashi Yano To: cygwin AT cygwin DOT com References: <20201114034504 DOT GD2905 AT dimstar DOT local DOT net> <20201115044613 DOT GE2905 AT dimstar DOT local DOT net> From: Thomas Wolff Message-ID: <6d8262e3-4206-a05b-5252-f77bef27b0db@towo.net> Date: Thu, 19 Nov 2020 19:30:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K1:FVh50RqK8jy/qzc+E2cmRfgRcnp8xgFxJMKBI8tlEG/eB4A9kH1 NBdjAdb2FSda0uUocucm22JgrZYQQcgp2fTq7nteBR03idj28/2KfCnSNtSB2lnU4W817Mx 1P8VjtwGXZXBtCWVI0+V3stZTJuO1uIWUn3EpWXrXY1tYgq/QUjkHzfCWDRLsjVHyB6Iv3O hEK+EpuII4K7eYDPSpGLA== X-UI-Out-Filterresults: notjunk:1;V03:K0:tu6BgPlprWE=:rr3XvmyBKpEk8d+OhdW++S c704G9tT+eHxwr7oJ9cT3zG85fKuQ2hm5tNEhHW3dJOILArKHFRyPXEkaqEzF5ChWM5FeeGUP 4cshQbJp7CDlhi59O43aust8sQvw9luBio+QJ5Zwb3OQBle0TUn36GElphPd+vyamRjM4IFx7 eSz1XXamo14aR/2KRXhs9N+uPy0AVRLRx9YdavTrTbMO5RJLjPOdJfJ0kFykihK7xaJQIFSWC XioIEBhOl2MDz6cyz2rvvQNGH5KtLXhoXEuMESvbASaBvFQnqBtntn2AcUgF29VOssoRp6FIo KxDvq4ZeVsHpZjvHbwFpLG5Nf6qgZWHs5hsanrzvPDxWb2GiQ4q7Pdmh0nc/gIa0gtDSikExs 9vO8rHzHLShvPPjs/LdI6tuVJKlxTs7HTuAp9QvJS0Wz++Cvh/UWA3gSeX2PO X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_ASCII_DIVIDERS, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0AJIUoQL020102 Am 19.11.2020 um 15:21 schrieb André Bleau via Cygwin: > ... > Here's some more info: > > It seems the bug is related to pseudo-console support; that explains why it is Windows 10 specific. > > Experiment: > > CYGWIN=disable_pcon /usr/bin/mintty & > > In the newly created window: > > $ ./a.exe output.txt 2>&1 > Aborted (core dumped) > > No message box popup. > > $ cat output.txt > assertion "false" failed: file "assert.cpp", line 3, function: int main() > > In the original mintty window, with empty CYGWIN env variable: > > $ ./a.exe output.txt 2>&1 > Aborted (core dumped) > > A message box pops > > AND: > > $ cat output.txt > >  output.txt  is empty > > So, 2 problems here. > > In a CMD Window: > > set path=%PATH%D:\Cygwin\bin; > a.exe outcmd.txt 2>&1 >       1 [main] a 759 cygwin_exception::open_stackdumpfile: Dumping stack trace to a.exe.stackdump > > type outcmd.txt > assertion "false" failed: file "assert.cpp", line 3, function: int main() >       1 [main] a 759 cygwin_exception::open_stackdumpfile: Dumping stack trace to a.exe.stackdump > > The bug could be in cygwin or in mintty. Maybe this is something that Thomas Wolff (mintty author) or Takashi Yano  (pseudo-console support expert) would want to look at. > --------------------------------------------------------------------------------------- > > OK, I opened an issue for mintty and it was quickly closed with that quote: > > "Quick generic answer: if it's caused by ConPTY support, it's not related to mintty; also mintty never shows any popups. > Funny thing, though, but really: assert isn't handled by the terminal." > > So the issue can only be with pseudo-console support in cygwin. It does not seem to happen in xterm which is weird. It does however also happen in rxvt-unicode, xfce4-terminal, and vte. The message text of the popup can be easily found in cygwin code. Thomas -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple