From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD4BD3940CF5; Fri, 13 Mar 2020 08:34:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD4BD3940CF5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1584088467; bh=iZ22iehqkdy2X/BBqyJR7BB+APW/kzmFinpaOox9jhI=; h=From:To:Subject:Date:From; b=txyZ2GcMkAP35Z+DWaBB+Ywye5WTwFqiKKrwnZ6ozm3gps+yqXs6kkJZ4IUKxjH0T srlzxWsxDYPRJtpEMExj3qLpCs3rOElobd11wWD88dc28caXLHrtiXwUNpCPw6UVHV obGPjMvhy/fQQtpoACpmhGmTIqfOvsRFLw668+qk= From: "vries at gcc dot gnu.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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: ada X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2020 08:34:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25666 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=3Dnone, 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_pack= ed_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_pack= ed_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..0= x0 typedef short unsigned int short unsigned int;=20 typedef signed char signed char;=20 typedef int int;=20 typedef long int long int;=20 typedef char char;=20 typedef unsigned char unsigned char;=20 typedef unsigned int unsigned int;=20 typedef long unsigned int long unsigned int;=20 typedef short int short int;=20 Symtab for file Compilation directory is /data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.ada/access_to_pack= ed_array Read from object file /data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.ada/access_to_pack= ed_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 integ= er; 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: ;=20 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 arr= ay array (; 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);=20 pack.a: warning: could not find bounds information on packed array array (; static at 0x614290 section .data typedef ada_main.version_32: <4-byte integer>;=20 typedef ada_main.version_32: <4-byte integer>;=20 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 characte= r; 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>;=20 typedef system.address: <8-byte integer>;=20 typedef pack.small: mod 256;=20 typedef pack.small: mod 256;=20 typedef ;=20 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;=20 ada_main.u00009: <4-byte integer>; static at 0x40dcf4 section .rodata typedef : <8-byte integer>;=20 record LB0: int; UB0: int; end record; record LB0: int; UB0: int; end record; Aborted (core dumped) ... --=20 You are receiving this mail because: You are on the CC list for the bug.=