mysecmailboks at gmail dot com
2018-04-12 08:55:34 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23051
Bug ID: 23051
Summary: internal-error for printing the contents of an
allocated pointer of a derived type that contains an
allocated pointer array
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
Assignee: unassigned at sourceware dot org
Reporter: mysecmailboks at gmail dot com
Target Milestone: ---
Hello,
this is similar to the bug report 15821 and I confirm that the 15821 has been
resolved in the release 8.1. I have modified the code sample given in 15821 and
I have a problem with it using release 8.1 (or the latest git master pulled
12th March 2018).
The code is the following:
1 PROGRAM allocate_array
2
3 TYPE L_BUFFER
4 REAL, DIMENSION(:), POINTER :: ALPHA
5 END TYPE L_BUFFER
6 TYPE(L_BUFFER), POINTER :: BUFFER
7
8 ALLOCATE(BUFFER)
9
10 ALLOCATE(BUFFER%ALPHA(5))
11
12 BUFFER%ALPHA(5)=0.0078
13 print *, buffer%alpha
14
15 END PROGRAM allocate_array
gdb:
Breakpoint 1, allocate_array () at allocate_array.F90:13
13 print *, buffer%alpha
(gdb) i lo
buffer = 0x603f80
(gdb) p *buffer
$1 = (
value.c:3116: internal-error: value* value_primitive_field(value*, LONGEST,
int, type*): Assertion `PROP_CONST == TYPE_DATA_LOCATION_KIND (type)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
This is a bug, please report it. For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.
value.c:3116: internal-error: value* value_primitive_field(value*, LONGEST,
int, type*): Assertion `PROP_CONST == TYPE_DATA_LOCATION_KIND (type)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Command aborted.
Please advice
Bug ID: 23051
Summary: internal-error for printing the contents of an
allocated pointer of a derived type that contains an
allocated pointer array
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
Assignee: unassigned at sourceware dot org
Reporter: mysecmailboks at gmail dot com
Target Milestone: ---
Hello,
this is similar to the bug report 15821 and I confirm that the 15821 has been
resolved in the release 8.1. I have modified the code sample given in 15821 and
I have a problem with it using release 8.1 (or the latest git master pulled
12th March 2018).
The code is the following:
1 PROGRAM allocate_array
2
3 TYPE L_BUFFER
4 REAL, DIMENSION(:), POINTER :: ALPHA
5 END TYPE L_BUFFER
6 TYPE(L_BUFFER), POINTER :: BUFFER
7
8 ALLOCATE(BUFFER)
9
10 ALLOCATE(BUFFER%ALPHA(5))
11
12 BUFFER%ALPHA(5)=0.0078
13 print *, buffer%alpha
14
15 END PROGRAM allocate_array
gdb:
Breakpoint 1, allocate_array () at allocate_array.F90:13
13 print *, buffer%alpha
(gdb) i lo
buffer = 0x603f80
(gdb) p *buffer
$1 = (
value.c:3116: internal-error: value* value_primitive_field(value*, LONGEST,
int, type*): Assertion `PROP_CONST == TYPE_DATA_LOCATION_KIND (type)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
This is a bug, please report it. For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.
value.c:3116: internal-error: value* value_primitive_field(value*, LONGEST,
int, type*): Assertion `PROP_CONST == TYPE_DATA_LOCATION_KIND (type)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Command aborted.
Please advice
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.