From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29798 invoked by alias); 23 Nov 2001 04:36:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 29775 invoked by uid 71); 23 Nov 2001 04:36:02 -0000 Date: Mon, 19 Nov 2001 08:26:00 -0000 Message-ID: <20011123043602.29774.qmail@sourceware.cygnus.com> To: toon@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Tim Prince" Subject: Re: libf2c/4931: Code hangs while computing log of specific complex number Reply-To: "Tim Prince" X-SW-Source: 2001-11/txt/msg00541.txt.bz2 List-Id: The following reply was made to PR libf2c/4931; it has been noted by GNATS. From: "Tim Prince" To: , Cc: "Stefano Simonucci" Subject: Re: libf2c/4931: Code hangs while computing log of specific complex number Date: Thu, 22 Nov 2001 20:22:22 -0800 Running this with g77-3.1 under gdb on cygwin, it's hanging in the final do{..}while(s>s0) in z_log(). Attempting to display the values of local variables crashes gdb. If this awkward looking code is to be preserved, it looks like the loop ending condition needs to change to something like while(s > s0 +DBL_EPSILON). ----- Original Message ----- From: To: Cc: "Stefano Simonucci" Sent: Thursday, November 22, 2001 2:14 PM Subject: libf2c/4931: Code hangs while computing log of specific complex number > > >Number: 4931 > >Category: libf2c > >Synopsis: Code hangs while computing log of specific complex number > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: unassigned > >State: open > >Class: sw-bug > >Submitter-Id: net > >Arrival-Date: Thu Nov 22 14:16:01 PST 2001 > >Closed-Date: > >Last-Modified: > >Originator: Stefano Simonucci > >Release: g77-3.0.x (release), g77-3.1 (experimental) > >Organization: > >Environment: > Not relevant. > >Description: > The following code hangs: > > double complex a,b > a=(-0.992198783,-0.0275850352) > write(6,*) ' A',a > b=log(a) > write(6,*) ' B',b > stop > end > > before printing B. > >How-To-Repeat: > > >Fix: > > >Release-Note: > >Audit-Trail: > >Unformatted: