public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/11354] New: error in evaluating variable length fortran strings causes stalls
@ 2010-03-07 22:06 stephan dot kramer at imperial dot ac dot uk
2010-09-14 19:21 ` [Bug fortran/11354] " stephan dot kramer at imperial dot ac dot uk
0 siblings, 1 reply; 2+ messages in thread
From: stephan dot kramer at imperial dot ac dot uk @ 2010-03-07 22:06 UTC (permalink / raw)
To: gdb-prs
The below simple test program was compiled with gfortran 4.4.1, -g. After
putting a breakpoint on the print line, the displayed frame looks as follows:
Breakpoint 1, print_string (string=Cannot access memory at address 0x80487eb
) at string.f90:11
I don't mind so much the string not being printed correctly (lots of things in
fortran aren't), but in particular for big executables this seems to cause huge
waiting times for the frame to be printed out (several minutes). This makes gdb
7.0 and 7.1 currently unusable for our project.
After a digging a little deeper, the cause seems to be the length of the string
not being picked up correctly from stack. Putting a breakpoint on valops.c (cvs
1.237 of the gdb_7_1-branch) on line 942 value_fetch_lazy(), the length of the
value it tries to read is some random big number. It then tries to read this
from the debugged process memory, and fails reaching the end which takes quite a
while for a large process.
The sample program:
program main
implicit none
call print_string("hello world")
contains
subroutine print_string(string)
character(len=*):: string
print *, string
end subroutine print_string
end program main
--
Summary: error in evaluating variable length fortran strings
causes stalls
Product: gdb
Version: 7.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at sourceware dot org
ReportedBy: stephan dot kramer at imperial dot ac dot uk
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11354
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-14 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-07 22:06 [Bug fortran/11354] New: error in evaluating variable length fortran strings causes stalls stephan dot kramer at imperial dot ac dot uk
2010-09-14 19:21 ` [Bug fortran/11354] " stephan dot kramer at imperial dot ac dot uk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).