From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31651 invoked by alias); 26 Mar 2011 10:33:36 -0000 Received: (qmail 31642 invoked by uid 22791); 26 Mar 2011 10:33:35 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BG,TW_QR,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f41.google.com (HELO mail-ww0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Mar 2011 10:33:29 +0000 Received: by wwi18 with SMTP id 18so313742wwi.2 for ; Sat, 26 Mar 2011 03:33:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.253.147 with SMTP id f19mr736686wes.19.1301135607959; Sat, 26 Mar 2011 03:33:27 -0700 (PDT) Received: by 10.216.87.212 with HTTP; Sat, 26 Mar 2011 03:33:27 -0700 (PDT) In-Reply-To: <20110326094551.GF24762@calimero.vinschen.de> References: <20110326094551.GF24762@calimero.vinschen.de> Date: Sat, 26 Mar 2011 12:12:00 -0000 Message-ID: Subject: Re: libgfortran3 respin : status and problem From: marco atzeri To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2011-03/txt/msg00760.txt.bz2 On Sat, Mar 26, 2011 at 10:45 AM, Corinna Vinschen wrote: > On Mar 26 06:56, marco atzeri wrote: >> Hi, >> I rebuilt lapack, qrupdate, octave and netcdf with the libgfortran3-4.3.= 4-4. >> >> ( If you wan to try them, install with >> setup.exe -X =A0-O -s http://matzeri.altervista.org ) >> >> lapack tests passed >> netcdf also (i am not 100% sure) >> >> but testing qrupdate I catched another problem. >> The test programs go in a never ending loop: >> >> =A037 =A0 15579 [main] tch1dn_sym 4300 fhandler_tty_slave::write: (746): >> tty output_mutex: waiting -1 ms >> =A031 =A0 15610 [main] tch1dn_sym 4300 fhandler_tty_slave::write: (746): >> tty output_mutex: acquired >> =A033 =A0 15643 [main] tch1dn_sym 4300 fhandler_tty_slave::write: (789): >> tty output_mutex released > > That's not an endless loop as far as Cygwin is concerned. =A0When a > process writes to the console, then every write is atomic. =A0To accompli= sh > that, a mutex is used, like this: > > =A0write() > =A0{ > =A0 =A0acquire mutex > =A0 =A0while (there's still something to write) > =A0 =A0 =A0write it > =A0 =A0release mutex > =A0} > > So, what you see is a supposedly endless stream of calls to the write > function. =A0Usually, if an error occurs, you would also see an error > message. =A0The only reason you don't see it is if an error already > occured in an earlier call to write. =A0The important would be prior to > the endless loop then. =A0Maybe the testcase doesn't check for errors? > > > Corinna the test case is a normal Fortran program that call numerical functions and print output with a really standard "write" command, nothing fancy. It used to work fine with previous libgfortran3-4.3.4-3 and cygwin-1.7.7 --------------------------------------------------------- write (*,*) write (*,*) 'testing Cholesky rank-1 downdate routines.' write (*,*) 'All residual errors are expected to be small.' write (*,*) n =3D 50 write (*,*) 'sch1dn test:' call stest(n) write (*,*) 'dch1dn test:' call dtest(n) write (*,*) 'cch1dn test:' call ctest(n) write (*,*) 'zch1dn test:' call ztest(n) ------------------------------------------------------------- subroutine smdump(name,m,n,A,lda) character(*) name integer m,n,lda real A(lda,n) integer i,j write (*,1001) name do i =3D 1,m do j =3D 1,n write(*,1002) A(i,j) end do write(*,*) end do ------------------------------------------------------------------ The full source is here, and it is a very tiny lib http://matzeri.altervista.org/cygwin-1.7/qrupdate/ May be a mutex problem in Fortran lib ? We already had long time ago.... a "WRITE" problem http://cygwin.com/ml/cygwin/2009-03/msg00428.html Marco -- 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