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] New: segv when printing symbols for gdb.ada/access_to_packed_array/foo Date: Fri, 13 Mar 2020 08:34:27 +0000 [thread overview] Message-ID: <bug-25666-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=25666 Bug ID: 25666 Summary: segv when printing symbols for gdb.ada/access_to_packed_array/foo Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: ada Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- When running the gdb testsuite with target board unix/-flto/-O0/-flto-partition=none, I run into: ... Running src/gdb/testsuite/gdb.ada/access_to_packed_array.exp ... PASS: gdb.ada/access_to_packed_array.exp: compilation foo.adb PASS: gdb.ada/access_to_packed_array.exp: maint expand-symtabs PASS: gdb.ada/access_to_packed_array.exp: set logging file PASS: gdb.ada/access_to_packed_array.exp: set logging redirect on PASS: gdb.ada/access_to_packed_array.exp: set logging on ERROR: GDB process no longer exists UNRESOLVED: gdb.ada/access_to_packed_array.exp: maint print symbols ... This can be manually reproduced using: ... $ gdb gdb.ada/access_to_packed_array/foo -ex 'set pagination off' -ex 'maint expand-symtabs' -ex 'maint print symbols' Reading symbols from /data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.ada/access_to_packed_array/foo... Symtab for file init.c Compilation directory is /home/abuild/rpmbuild/BUILD/glibc-2.26/csu Read from object file /data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.ada/access_to_packed_array/foo (0x2600ad0) Language: c Blockvector: block #000, object at 0x2eb1a10, 1 syms/buckets in 0x0..0x0 const int _IO_stdin_used; static at 0x40dca0 section .rodata block #001, object at 0x2eb1960 under 0x2eb1a10, 2 syms/buckets in 0x0..0x0 typedef short unsigned int short unsigned int; typedef signed char signed char; typedef int int; typedef long int long int; typedef char char; typedef unsigned char unsigned char; typedef unsigned int unsigned int; typedef long unsigned int long unsigned int; typedef short int short int; Symtab for file <artificial> Compilation directory is /data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.ada/access_to_packed_array Read from object file /data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.ada/access_to_packed_array/foo (0x2600ad0) Language: ada Blockvector: block #000, object at 0x2eb0950, 2 syms/buckets in 0x401dc8..0x401f98 procedure ada_main.adafinal; block object 0x2f99b80, 0x401dc8..0x401ded procedure ada_main.adainit; block object 0x2f99d10, 0x401dee..0x401f19 function main (a1: integer; a2: access void; a3: access void) return integer; block object 0x2f9a5c0, 0x401f1a..0x401f7d procedure pack.do_nothing (a1: pack.array_access); block object 0x2eb0540, 0x401f7e..0x401f88 procedure foo; block object 0x2eb07c0, 0x401f88..0x401f98 block #001, object at 0x2eb0820 under 0x2eb0950, 17 syms/buckets in 0x401dc8..0x401f98 typedef character: <character>; ada_main.u00001: <4-byte integer>; static at 0x40dcd4 section .rodata ada_main.u00012: <4-byte integer>; static at 0x40dd00 section .rodata ada_main.u00023: <4-byte integer>; static at 0x40dd2c section .rodata ada_main.u00034: <4-byte integer>; static at 0x40dd58 section .rodata ada_main.u00045: <4-byte integer>; static at 0x40dd84 section .rodata ada_main.u00002: <4-byte integer>; static at 0x40dcd8 section .rodata ada_main.u00013: <4-byte integer>; static at 0x40dd04 section .rodata ada_main.u00024: <4-byte integer>; static at 0x40dd30 section .rodata ada_main.u00035: <4-byte integer>; static at 0x40dd5c section .rodata ada_main.u00046: <4-byte integer>; static at 0x40dd88 section .rodata pack.aa: access warning: could not find bounds information on packed array array (<undecipherable array type>; static at 0x40ddb0 section .rodata ada_main.u00003: <4-byte integer>; static at 0x40dcdc section .rodata ada_main.u00014: <4-byte integer>; static at 0x40dd08 section .rodata ada_main.u00025: <4-byte integer>; static at 0x40dd34 section .rodata ada_main.u00036: <4-byte integer>; static at 0x40dd60 section .rodata ada_main.u00047: <4-byte integer>; static at 0x40dd8c section .rodata typedef boolean: (false, true); pack.a: warning: could not find bounds information on packed array array (<undecipherable array type>; static at 0x614290 section .data typedef ada_main.version_32: <4-byte integer>; typedef ada_main.version_32: <4-byte integer>; ada_main.u00004: <4-byte integer>; static at 0x40dce0 section .rodata ada_main.u00015: <4-byte integer>; static at 0x40dd0c section .rodata ada_main.u00026: <4-byte integer>; static at 0x40dd38 section .rodata ada_main.u00037: <4-byte integer>; static at 0x40dd64 section .rodata ada_main.u00048: <4-byte integer>; static at 0x40dd90 section .rodata ada_main.u00005: <4-byte integer>; static at 0x40dce4 section .rodata ada_main.u00016: <4-byte integer>; static at 0x40dd10 section .rodata ada_main.u00027: <4-byte integer>; static at 0x40dd3c section .rodata ada_main.u00038: <4-byte integer>; static at 0x40dd68 section .rodata ada_main.u00049: <4-byte integer>; static at 0x40dd94 section .rodata array (1 .. 0) of character; ada_main.u00006: <4-byte integer>; static at 0x40dce8 section .rodata ada_main.u00017: <4-byte integer>; static at 0x40dd14 section .rodata ada_main.u00028: <4-byte integer>; static at 0x40dd40 section .rodata ada_main.u00039: <4-byte integer>; static at 0x40dd6c section .rodata ada_main.local_priority_specific_dispatching: array (1 .. 0) of character; static at 0x40dda8 section .rodata array (1 .. 0) of character; ada_main.ada_main_program_name: array (1 .. 9) of character; static at 0x40dcc8 section .rodata ada_main.u00007: <4-byte integer>; static at 0x40dcec section .rodata ada_main.u00018: <4-byte integer>; static at 0x40dd18 section .rodata ada_main.u00029: <4-byte integer>; static at 0x40dd44 section .rodata ada_main.local_interrupt_states: array (1 .. 0) of character; static at 0x40dda9 section .rodata ada_main.is_elaborated: (false, true); static at 0x6145ca section .bss typedef system.address: <8-byte integer>; typedef system.address: <8-byte integer>; typedef pack.small: mod 256; typedef pack.small: mod 256; typedef <pack__small: <1-byte integer>; ada_main.u00008: <4-byte integer>; static at 0x40dcf0 section .rodata ada_main.u00019: <4-byte integer>; static at 0x40dd1c section .rodata typedef ada_main.no_param_proc: access procedure; ada_main.u00009: <4-byte integer>; static at 0x40dcf4 section .rodata typedef <long unsigned int>: <8-byte integer>; record LB0: int; UB0: int; end record; record LB0: int; UB0: int; end record; Aborted (core dumped) ... -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2020-03-13 8:34 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-13 8:34 vries at gcc dot gnu.org [this message] 2020-03-13 8:41 ` [Bug ada/25666] " vries at gcc dot gnu.org 2020-04-19 6:12 ` 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@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: linkBe 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).