public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26155] New: p cos(alat(j)) command make gdb Aborted (core dumped)
@ 2020-06-23  1:26 yansendao at huawei dot com
  2021-02-03 12:40 ` [Bug fortran/26155] " vries at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: yansendao at huawei dot com @ 2020-06-23  1:26 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26155

            Bug ID: 26155
           Summary: p cos(alat(j)) command make gdb Aborted (core dumped)
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
          Assignee: unassigned at sourceware dot org
          Reporter: yansendao at huawei dot com
  Target Milestone: ---

Created attachment 12646
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12646&action=edit
fortran been debug

$ gfortran licm-print.F90 -g3 -O0
$ gdb a.out 
GNU gdb (GDB) 10.0.50.20200508-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from a.out...
(gdb) b 16
Breakpoint 1 at 0x400a20: file licm-print.F90, line 16.
(gdb) r
Starting program: /home/yansendao/tmp/alias/a.out 

Breakpoint 1, mydepart (rr0=..., alat=..., n=10) at licm-print.F90:16
16                if (rr0(k,j) <= 0.0d0) rr0(k,j) = rr0(k,j) + 2.0*cos(alat(j))
(gdb) p j
$1 = 1
(gdb) p alat(j)
$3 = 10
(gdb) p cos(alat(j))
Aborted (core dumped)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-25 14:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23  1:26 [Bug fortran/26155] New: p cos(alat(j)) command make gdb Aborted (core dumped) yansendao at huawei dot com
2021-02-03 12:40 ` [Bug fortran/26155] " vries at gcc dot gnu.org
2021-02-03 12:49 ` vries at gcc dot gnu.org
2021-02-25 10:33 ` cvs-commit at gcc dot gnu.org
2021-02-25 10:43 ` andrew.burgess at embecosm dot com
2021-02-25 11:58 ` vries at gcc dot gnu.org
2021-02-25 12:00 ` vries at gcc dot gnu.org
2021-02-25 14:45 ` tromey at sourceware dot org

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).