public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15326] New: Problem inspecting recursive Derived Data Type
@ 2013-03-30 16:31 Phil.M.Fischer at googlemail dot com
  2013-03-30 16:32 ` [Bug fortran/15326] " Phil.M.Fischer at googlemail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Phil.M.Fischer at googlemail dot com @ 2013-03-30 16:31 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15326

             Bug #: 15326
           Summary: Problem inspecting recursive Derived Data Type
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned@sourceware.org
        ReportedBy: Phil.M.Fischer@googlemail.com
    Classification: Unclassified


Hi all,

I am using GDB and GFortran within an Eclipse development environment. Right
now, i have come across an issue concerning GDB. This issue makes it impossible
for me to use GDB within Eclipse for the moment. So I tried to see if I can
reproduce this issue. I am running Eclipse on a 32 bit Windows Vista Computer
as well as on 64bit Windows 8 Machine. I am using GFortran and GDB with the
latest MinGW installation. Both computers show the same issues. So here is what
happens. 

Step 1: I have code that contains a Derived Type for a linked list:

1 : PROGRAM GDB_Fail
2 :
3 :    IMPLICIT NONE
4 :
5 :    TYPE :: Test_Node
6 :        TYPE(Test_Node), POINTER :: next => null()
7 :        INTEGER data
8 :    END TYPE
9 :
10:    TYPE(Test_Node) :: node_test
11:
12:    node_test%data = 4
13:
14: END PROGRAM GDB_Fail

Step 2: Setting a breakpoint at line 12
(gdb) br 12

Step 3: Run the program
Step 4: Inspect the node on its next item
(gdb) print node_test%next
PTR TO -> (     Type test_node
PTR TO -> (         Type test_node
PTR TO -> (             Type test_node
PTR TO -> (                 Type test_node
PTR TO -> (                     Type test_node
PTR TO -> (                         Type test_node
PTR TO -> (                             Type test_node
PTR TO -> (                                 Type test_node
PTR TO -> (                                     Type test_node
PTR TO -> (                                         Type test_node
PTR TO -> (                                             Type test_node
PTR TO -> (                                                 Type test_node
PTR TO -> (                                                     Type test_node

This is the point where it fails and GDB apparently tries to evaluate the next
pointer of the next pointer of the next pointer. The only way to stop is
Ctrl-C. The output is exactly what I get from within Eclipse as well.

The same program written in C can be debugged without any trouble. 

For me it looks like there is an issue with GDB inspecting recursive Derived
Types. 

Cheers

Phil

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


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

* [Bug fortran/15326] Problem inspecting recursive Derived Data Type
  2013-03-30 16:31 [Bug fortran/15326] New: Problem inspecting recursive Derived Data Type Phil.M.Fischer at googlemail dot com
@ 2013-03-30 16:32 ` Phil.M.Fischer at googlemail dot com
  2013-04-12 17:19 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Phil.M.Fischer at googlemail dot com @ 2013-03-30 16:32 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15326

Phil M. Fischer <Phil.M.Fischer at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Phil.M.Fischer at
                   |                            |googlemail dot com

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


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

* [Bug fortran/15326] Problem inspecting recursive Derived Data Type
  2013-03-30 16:31 [Bug fortran/15326] New: Problem inspecting recursive Derived Data Type Phil.M.Fischer at googlemail dot com
  2013-03-30 16:32 ` [Bug fortran/15326] " Phil.M.Fischer at googlemail dot com
@ 2013-04-12 17:19 ` tromey at redhat dot com
  2022-11-12 13:07 ` gnikit at duck dot com
  2023-03-07 14:21 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2013-04-12 17:19 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15326

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-04-12 17:19:19 UTC ---
I feel like I have seen this bug before, but I can't find it now.

Can you say what ptype should actually print here?
That would help.

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


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

* [Bug fortran/15326] Problem inspecting recursive Derived Data Type
  2013-03-30 16:31 [Bug fortran/15326] New: Problem inspecting recursive Derived Data Type Phil.M.Fischer at googlemail dot com
  2013-03-30 16:32 ` [Bug fortran/15326] " Phil.M.Fischer at googlemail dot com
  2013-04-12 17:19 ` tromey at redhat dot com
@ 2022-11-12 13:07 ` gnikit at duck dot com
  2023-03-07 14:21 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: gnikit at duck dot com @ 2022-11-12 13:07 UTC (permalink / raw)
  To: gdb-prs

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

Giannis Nikiteas <gnikit at duck dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gnikit at duck dot com

--- Comment #3 from Giannis Nikiteas <gnikit at duck dot com> ---
This is now fixed so it should probably be marked as FIXED.
Tested with the gdb 12.1 and gfortran 11.3.0

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

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

* [Bug fortran/15326] Problem inspecting recursive Derived Data Type
  2013-03-30 16:31 [Bug fortran/15326] New: Problem inspecting recursive Derived Data Type Phil.M.Fischer at googlemail dot com
                   ` (2 preceding siblings ...)
  2022-11-12 13:07 ` gnikit at duck dot com
@ 2023-03-07 14:21 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2023-03-07 14:21 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.1
         Resolution|---                         |FIXED
                 CC|                            |tromey at sourceware dot org
             Status|NEW                         |RESOLVED

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Giannis Nikiteas from comment #3)
> This is now fixed so it should probably be marked as FIXED.
> Tested with the gdb 12.1 and gfortran 11.3.0

Thanks, I'm closing it.

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

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

end of thread, other threads:[~2023-03-07 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-30 16:31 [Bug fortran/15326] New: Problem inspecting recursive Derived Data Type Phil.M.Fischer at googlemail dot com
2013-03-30 16:32 ` [Bug fortran/15326] " Phil.M.Fischer at googlemail dot com
2013-04-12 17:19 ` tromey at redhat dot com
2022-11-12 13:07 ` gnikit at duck dot com
2023-03-07 14:21 ` 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).