From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19145 invoked by alias); 12 Mar 2019 06:51:38 -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 19119 invoked by uid 89); 12 Mar 2019 06:51:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*r:NNFMP, explain X-HELO: nh505-vm6.bullet.mail.kks.yahoo.co.jp Received: from nh505-vm6.bullet.mail.kks.yahoo.co.jp (HELO nh505-vm6.bullet.mail.kks.yahoo.co.jp) (183.79.57.108) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Tue, 12 Mar 2019 06:51:35 +0000 Received: from [183.79.100.138] by nh505.bullet.mail.kks.yahoo.co.jp with NNFMP; 12 Mar 2019 06:51:32 -0000 Received: from [183.79.100.134] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 12 Mar 2019 06:51:32 -0000 Received: from [127.0.0.1] by omp503.mail.kks.yahoo.co.jp with NNFMP; 12 Mar 2019 06:51:32 -0000 Received: from jws701104.mail.ssk.yahoo.co.jp by sendmailws616.mail.ssk.yahoo.co.jp; Tue, 12 Mar 2019 15:51:31 +0000; 1552373491.737 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1552373492; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=IahxCDudgY9ire5xxZw8nHSU1FdBp9JdKXohvNWiESg=; b=WB2ImEJfg4ZMY5jnceXfSi8fM39j+C4rUOSS+3vkWwHLX08VhR/A6VaT+Bpr5eJV M6IiZ1dOEaS4SYgKzjVf0sezzw7FsYk2jT9LJGIUhwBOe8grp7CQPbqtk4zj93MJfeZ HKvzdrfnUGof9G9fhvad6Aq6G9smkPjkxkQU7lPY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=g5LZOcH5ttvlfUj5UkEM3dyOiqoJWNtfxyfkPhVllJpz9aCcaPZbKxpu4JOiG7AL UMOfdW7jau7gaU0c9cItGgDvl0GlMvyo2IODneuYZ/ldKrvlkQQWIf+w80RKMrjTkox wAn3RSx45eYAn2DPfeRaqnTY1MFQQXyrHkX8zvUM=; Date: Tue, 12 Mar 2019 06:51:00 -0000 From: Tatsuro MATSUOKA Reply-To: Tatsuro MATSUOKA To: Mark Geisert , Message-ID: <1896876564.419596.1552373491409.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <3bcd29c3-b533-e63c-ff7d-8912f80dbe39@maxrnd.com> References: <1439412702.1866573.1551653028041.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1439412702.1866573.1551653028041.JavaMail.yahoo@mail.yahoo.co.jp> <0faa5fb55a0af4803fcdff786dba8be440355609.camel@cygwin.com> <2014394607.770377.1552264089735.JavaMail.yahoo@mail.yahoo.co.jp> <72f4ecd86329b97d1c3cc1b796bf9393d02228f0.camel@cygwin.com> <881759885.934635.1552275216926.JavaMail.yahoo@mail.yahoo.co.jp> <30cae96a-7c70-5634-85ce-3fe6b36a7d21@maxrnd.com> <1243194053.986269.1552290997597.JavaMail.yahoo@mail.yahoo.co.jp> <3bcd29c3-b533-e63c-ff7d-8912f80dbe39@maxrnd.com> Subject: Re: Patch request to qt 5.9.4 (Re: [ANNOUNCEMENT] Qt 5.9.4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00276.txt.bz2 ----- Original Message ----- > From: Mark Geisert > To: cygwin > Date: 2019/3/12, Tue 13:20 > Subject: Re: Patch request to qt 5.9.4 (Re: [ANNOUNCEMENT] Qt 5.9.4) >=20 >T atsuro MATSUOKA wrote: >> ----- Original Message ----- >>=20 >>> From: Mark Geisert >>> To: cygwin >>> Cc: >>> Date: 2019/3/11, Mon 16:21 >>> Subject: Re: Patch request to qt 5.9.4 (Re: [ANNOUNCEMENT] Qt 5.9.4) >>>=20 >>> T atsuro MATSUOKA wrote: >>>> =C2=A0 ----- Original Message ----- >>>>=20 >>>>> =C2=A0 From: Yaakov Selkowitz >>>> =C2=A0 To: cygwin >>>>> =C2=A0 Cc: >>>>> =C2=A0 Date: 2019/3/11, Mon 09:53 >>>>> =C2=A0 Subject: Re: Patch request to qt 5.9.4 (Re: [ANNOUNCEMENT] Qt= =20 > 5.9.4) >>>>>=20 >>>>> =C2=A0 On Mon, 2019-03-11 at 09:28 +0900, Tatsuro MATSUOKA wrote: >>>>>> =C2=A0 > On Mon, 2019-03-04 at 07:43 +0900, Tatsuro MATSUOKA=20 > wrote: >>>>>> =C2=A0 > >=C2=A0 I ask alpply a patch the below which enables=20 > to use qt >>> terminal >>>>> =C2=A0 on gnuplot >>>>>> =C2=A0 > for Cygwin. >>>>>> =C2=A0 > >=C2=A0 (cygQt5Network-5.dll is affected.) >>>>>> =C2=A0 > > >>>>>> =C2=A0 > >=C2=A0 --- >>>>> =C2=A0=20 > a/qtbase-opensource-src-5.9.4/src/network/socket/qlocalsocket_unix.cpp >>>>>> =C2=A0 > >=C2=A0 +++ >>>>> =C2=A0=20 > b/qtbase-opensource-src-5.9.4/src/network/socket/qlocalsocket_unix.cpp >>>>>> =C2=A0 > >=C2=A0 @@ -239,7 +239,7 @@ void >>> QLocalSocket::connectToServer(OpenM >>>>>> =C2=A0 > >=C2=A0 =C2=A0 =C2=A0 } >>>>>> =C2=A0 > >=C2=A0 =C2=A0 =C2=A0 // create the socket >>>>>> =C2=A0 > >=C2=A0 -=C2=A0 =C2=A0 if (-1 =3D=3D (d->connectingSocket = =3D >>> qt_safe_socket(PF_UNIX, >>>>> =C2=A0 SOCK_STREAM, 0, O_NONBLOCK))) { >>>>>> =C2=A0 > >=C2=A0 +=C2=A0 =C2=A0 if (-1 =3D=3D (d->connectingSocket = =3D >>> qt_safe_socket(PF_UNIX, >>>>> =C2=A0 SOCK_STREAM, 0))) { >>>>>> =C2=A0 > > >>> d->errorOccurred(UnsupportedSocketOperationError, >>>>> =C2=A0 QLatin1String("QLocalSocket::connectToServer")); >>>>>> =C2=A0 > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return; >>>>>> =C2=A0 > > >>>>>> =C2=A0 > >>>>>> =C2=A0 > It seems we keep going in circles on this point.=C2=A0 If= =20 > there is >>> a bug in >>>>>> =C2=A0 > O_NONBLOCK, then please either narrow it down to an=20 > STC, or >>> provide a >>>>>> =C2=A0 > patch to Cygwin. >>>>>>=20 >>>>>> =C2=A0 Very basic question. What is STC? >>>>>> =C2=A0 I googled but I cannot find what is it. >>>>>=20 >>>>> =C2=A0 https://cygwin.com/acronyms/#STC=20 >>>>=20 >>>>=20 >>>> =C2=A0 Sorry I cannot make STC due to lack of knowledge of QT. >>>> =C2=A0 In stead, I explain what gnuplot do. >>>>=20 >>>> =C2=A0 On gnuplot for qt, >>>> =C2=A0 plot is done by child process named gnuplot_qt. >>>>=20 >>>> =C2=A0 When gnuplot connect with gnuplot with >>>> =C2=A0 =C2=A0 qt->socket.connectToServer(server); >>>>=20 >>>>=20 >>>> =C2=A0 without the above patch () >>>> =C2=A0 qt_safe_socket(PF_UNIX, SOCK_STREAM, 0, O_NONBLOCK))) >>>> =C2=A0 gnuplot cannot connect with gnuplot_qt. >>>>=20 >>>> =C2=A0 with the above patch () >>>> =C2=A0 qt_safe_socket(PF_UNIX, SOCK_STREAM, 0)) >>>> =C2=A0 gnuplot can connect with gnuplot_qt. >>>>=20 >>>> =C2=A0 Perhaps qt with O_NONBLOCK is some wrong with process connectio= n. >>>=20 >>> Hi Tatsuro, >>> For the record, what Enrico supplied is what we'd call an STC, a=20 > Simple Test >>>=20 >>> Case.=C2=A0 Unfortunately his STC dealt with select() on a named pipe. >>>=20 >>> Your gnuplot issue has to do with "Unix sockets", a form of=20 > IPC >>> between >>> processes.=C2=A0 Cygwin uses Windows named pipes to implement "Unix >>> sockets" on >>> Windows.=C2=A0 This means we are mapping Unix/Linux socket constructs = onto a >>> dissimilar feature of Windows, and there are many opportunities for=20 > mismatch. >>>=20 >>> Can you run your gnuplot under strace?=C2=A0 You would set up your=20 > environment as >>> needed to reproduce the issue, then launch gnuplot as so: >>> =C2=A0 =C2=A0 =C2=A0 strace -o gnuplot.trace gnuplot >>> This will create a trace file of Cygwin syscalls and operations.=C2=A0= Let=20 > us know >>> how big (how many lines) are in the trace file and we'll see=20 > what's >>> next. >>>=20 >>> ..mark >>>=20 >>=20 >> I send xz commpress gnuplot.trace. >=20 > Next time we'll arrange private email for large things.=C2=A0 I'm now por= ing=20 > over the=20 > strace; thanks for sending it. >=20 > If it's not too much trouble, could you show what you tell gnuplot and ho= w=20 > you=20 > set up the Qt environment?=C2=A0 Are you running gnuplot from inside qter= minal? >=20 > ..mark For qt graphics gnuplot.exe uses driver process named gnuplot_qt.exe. gnuplot.exe tries connect with gnuplot_qt.exe by qt->socket.connectToServer(server);=20 in gnuplot.exe code but fails to connect with gnuplot_qt.exe. =C2=A0Tatsuro -- 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