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:date:from:reply-to:to:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=dmSpFxu1g38Qf/wk yZUCTZwfSxNHnJvhQBfvwP2NYL4swMZq0I+LBI4XvMqKJ5ogCYSGe5yI6eDlPikl QG4cbIxLgCZNnVG7LGeyhwJ5kYyXsqv4X8ZpfPmka46YUbgolWNodowBaj+XDWrn KTIBa/6efyeizcAFPH4XGBS21FY= 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:date:from:reply-to:to:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=zV2jh6epSsHqtj3HXL6vvT uGNx4=; b=jAnclr2K5k7T3H51BGvGNuza/VW4EOrGtr6X3+aOWaphWWNAAY+6BR eo633tBiQW8Qwk7TtGkpdS3iBP4TCB5GF3LnHi8DhwXGh7eHglIFuVpWNwdhXRKN /09TU5oxIeRnDJMtAGP67gIVS/quCxpw1M7NWB6q8A2OFbMetC1h4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 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 15:51:31 +0900 (JST) 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 DOT 1866573 DOT 1551653028041 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT co DOT jp> <1439412702 DOT 1866573 DOT 1551653028041 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> <0faa5fb55a0af4803fcdff786dba8be440355609 DOT camel AT cygwin DOT com> <2014394607 DOT 770377 DOT 1552264089735 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> <72f4ecd86329b97d1c3cc1b796bf9393d02228f0 DOT camel AT cygwin DOT com> <881759885 DOT 934635 DOT 1552275216926 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> <30cae96a-7c70-5634-85ce-3fe6b36a7d21 AT maxrnd DOT com> <1243194053 DOT 986269 DOT 1552290997597 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> <3bcd29c3-b533-e63c-ff7d-8912f80dbe39 AT maxrnd DOT 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 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x2C6plQd007515 ----- 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) > >T atsuro MATSUOKA wrote: >> ----- Original Message ----- >> >>> 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) >>> >>> T atsuro MATSUOKA wrote: >>>>   ----- Original Message ----- >>>> >>>>>   From: Yaakov Selkowitz >>>>   To: cygwin >>>>>   Cc: >>>>>   Date: 2019/3/11, Mon 09:53 >>>>>   Subject: Re: Patch request to qt 5.9.4 (Re: [ANNOUNCEMENT] Qt > 5.9.4) >>>>> >>>>>   On Mon, 2019-03-11 at 09:28 +0900, Tatsuro MATSUOKA wrote: >>>>>>   > On Mon, 2019-03-04 at 07:43 +0900, Tatsuro MATSUOKA > wrote: >>>>>>   > >  I ask alpply a patch the below which enables > to use qt >>> terminal >>>>>   on gnuplot >>>>>>   > for Cygwin. >>>>>>   > >  (cygQt5Network-5.dll is affected.) >>>>>>   > > >>>>>>   > >  --- >>>>>   > a/qtbase-opensource-src-5.9.4/src/network/socket/qlocalsocket_unix.cpp >>>>>>   > >  +++ >>>>>   > b/qtbase-opensource-src-5.9.4/src/network/socket/qlocalsocket_unix.cpp >>>>>>   > >  @@ -239,7 +239,7 @@ void >>> QLocalSocket::connectToServer(OpenM >>>>>>   > >      } >>>>>>   > >      // create the socket >>>>>>   > >  -    if (-1 == (d->connectingSocket = >>> qt_safe_socket(PF_UNIX, >>>>>   SOCK_STREAM, 0, O_NONBLOCK))) { >>>>>>   > >  +    if (-1 == (d->connectingSocket = >>> qt_safe_socket(PF_UNIX, >>>>>   SOCK_STREAM, 0))) { >>>>>>   > > >>> d->errorOccurred(UnsupportedSocketOperationError, >>>>>   QLatin1String("QLocalSocket::connectToServer")); >>>>>>   > >          return; >>>>>>   > > >>>>>>   > >>>>>>   > It seems we keep going in circles on this point.  If > there is >>> a bug in >>>>>>   > O_NONBLOCK, then please either narrow it down to an > STC, or >>> provide a >>>>>>   > patch to Cygwin. >>>>>> >>>>>>   Very basic question. What is STC? >>>>>>   I googled but I cannot find what is it. >>>>> >>>>>   https://cygwin.com/acronyms/#STC >>>> >>>> >>>>   Sorry I cannot make STC due to lack of knowledge of QT. >>>>   In stead, I explain what gnuplot do. >>>> >>>>   On gnuplot for qt, >>>>   plot is done by child process named gnuplot_qt. >>>> >>>>   When gnuplot connect with gnuplot with >>>>     qt->socket.connectToServer(server); >>>> >>>> >>>>   without the above patch () >>>>   qt_safe_socket(PF_UNIX, SOCK_STREAM, 0, O_NONBLOCK))) >>>>   gnuplot cannot connect with gnuplot_qt. >>>> >>>>   with the above patch () >>>>   qt_safe_socket(PF_UNIX, SOCK_STREAM, 0)) >>>>   gnuplot can connect with gnuplot_qt. >>>> >>>>   Perhaps qt with O_NONBLOCK is some wrong with process connection. >>> >>> Hi Tatsuro, >>> For the record, what Enrico supplied is what we'd call an STC, a > Simple Test >>> >>> Case.  Unfortunately his STC dealt with select() on a named pipe. >>> >>> Your gnuplot issue has to do with "Unix sockets", a form of > IPC >>> between >>> processes.  Cygwin uses Windows named pipes to implement "Unix >>> sockets" on >>> Windows.  This means we are mapping Unix/Linux socket constructs onto a >>> dissimilar feature of Windows, and there are many opportunities for > mismatch. >>> >>> Can you run your gnuplot under strace?  You would set up your > environment as >>> needed to reproduce the issue, then launch gnuplot as so: >>>       strace -o gnuplot.trace gnuplot >>> This will create a trace file of Cygwin syscalls and operations.  Let > us know >>> how big (how many lines) are in the trace file and we'll see > what's >>> next. >>> >>> ..mark >>> >> >> I send xz commpress gnuplot.trace. > > Next time we'll arrange private email for large things.  I'm now poring > over the > strace; thanks for sending it. > > If it's not too much trouble, could you show what you tell gnuplot and how > you > set up the Qt environment?  Are you running gnuplot from inside qterminal? > > ..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); in gnuplot.exe code but fails to connect with gnuplot_qt.exe.  Tatsuro -- 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