From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11842 invoked by alias); 29 Apr 2011 16:59:07 -0000 Received: (qmail 11809 invoked by uid 22791); 29 Apr 2011 16:59:06 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Apr 2011 16:58:53 +0000 From: "stephan.kramer at imperial dot ac.uk" To: gdb-prs@sourceware.org Subject: [Bug fortran/11354] error in evaluating variable length fortran strings causes stalls X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stephan.kramer at imperial dot ac.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 7.1 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 29 Apr 2011 16:59:00 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q2/txt/msg00254.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=11354 --- Comment #5 from Stephan Kramer 2011-04-29 16:58:38 UTC --- The below example actually reproduces the stalling behaviour by creating some artificial memory contents. (compiled with gfortran 4.5.2, using gdb 4.2). Put a breakpoint on line 14: print *, string program main implicit none integer, parameter::n=10*1000*1000 character(len=11):: hello_world="hello_world" ! some filler for memory character(len=3*n):: str call print_string(hello_world) ! make sure the strings don't get optimized out: hello_world(1:3)='bar' str(1:3)='bar' contains subroutine print_string(string) character(len=*):: string print *, string end subroutine print_string end program main -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.