public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug ada/25666] segv when printing symbols for gdb.ada/access_to_packed_array/foo
Date: Fri, 13 Mar 2020 08:41:52 +0000	[thread overview]
Message-ID: <bug-25666-4717-YqWDRkOy0c@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-25666-4717@http.sourceware.org/bugzilla/>

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brobecker at adacore dot com,
                   |                            |tromey at sourceware dot org

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Doing a backtrace at the point of the segv:
...
(gdb) bt
#0  0x00000000006628e7 in make_qualified_type (
    type=<error reading variable: Cannot access memory at address
0x7fffff7feff8>, 
    new_flags=<error reading variable: Cannot access memory at address
0x7fffff7feff4>, 
    storage=<error reading variable: Cannot access memory at address
0x7fffff7fefe8>)
    at /data/gdb_versions/devel/src/gdb/gdbtypes.c:621
#1  0x000000000066742f in check_typedef (type=0x1ca3370) at
/data/gdb_versions/devel/src/gdb/gdbtypes.c:2642
#2  0x000000000042ee78 in ada_check_typedef (type=0x1ca3370) at
/data/gdb_versions/devel/src/gdb/ada-lang.c:9063
#3  0x000000000041eb8c in desc_base_type (type=0x1ca3370) at
/data/gdb_versions/devel/src/gdb/ada-lang.c:1532
#4  0x000000000041ec0a in is_thin_pntr (type=0x1ca3370) at
/data/gdb_versions/devel/src/gdb/ada-lang.c:1550
#5  0x000000000041f13e in desc_data_target_type (type=0x1ca3370)
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:1721
#6  0x000000000041f61f in ada_is_array_descriptor_type (type=0x1ca3370)
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:1885
#7  0x000000000041fca5 in ada_is_constrained_packed_array_type (type=0x1ca3370)
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:2075
#8  0x000000000042c775 in find_parallel_type_by_descriptive_type
(type=0x1ca3370, 
    name=0x7fffff7ff210 "pack__Tarray_typeB___XP6___XUT___XVE")
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:7957
#9  0x000000000042c7db in ada_find_parallel_type_with_name (type=0x1ca3370, 
    name=0x7fffff7ff210 "pack__Tarray_typeB___XP6___XUT___XVE")
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:7973
#10 0x000000000042c8ca in ada_find_parallel_type (type=0x1ca3370,
suffix=0xb38568 "___XVE")
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:8000
#11 0x000000000041ecbc in thin_descriptor_type (type=0x1ca3370)
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:1567
--Type <RET> for more, q to quit, c to continue without paging--
#12 0x000000000041f153 in desc_data_target_type (type=0x1ca3370)
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:1722
#13 0x000000000041f61f in ada_is_array_descriptor_type (type=0x1ca3370)
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:1885
#14 0x000000000041fca5 in ada_is_constrained_packed_array_type (type=0x1ca3370)
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:2075
#15 0x000000000042c775 in find_parallel_type_by_descriptive_type
(type=0x1ca3370, 
    name=0x7fffff7ff3c0 "pack__Tarray_typeB___XP6___XUT___XVE")
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:7957
#16 0x000000000042c7db in ada_find_parallel_type_with_name (type=0x1ca3370, 
    name=0x7fffff7ff3c0 "pack__Tarray_typeB___XP6___XUT___XVE")
    at /data/gdb_versions/devel/src/gdb/ada-lang.c:7973
#17 0x000000000042c8ca in ada_find_parallel_type (type=0x1ca3370,
suffix=0xb38568 "___XVE")
...

We find repetition in the call stack, f.i. this frame:
...
 0x000000000042c8ca in ada_find_parallel_type (type=0x1ca3370, suffix=0xb38568
"___XVE")
...
occurs twice, at #10 and #17.

This works, so we probably segv because of running out of stack:
...
(gdb) up 100000
...

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

  reply	other threads:[~2020-03-13  8:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13  8:34 [Bug ada/25666] New: " vries at gcc dot gnu.org
2020-03-13  8:41 ` vries at gcc dot gnu.org [this message]
2020-04-19  6:12 ` [Bug ada/25666] " vries at gcc dot gnu.org
2022-08-04 15:15 ` tromey at sourceware dot org
2023-08-06 12:07 ` vries at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-25666-4717-YqWDRkOy0c@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).