public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/30362] New: [gdb/cli] segfault on gdb -eiex "show <something>"
@ 2023-04-17  9:35 vries at gcc dot gnu.org
  2023-04-21  7:59 ` [Bug cli/30362] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-04-17  9:35 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30362
           Summary: [gdb/cli] segfault on gdb -eiex "show <something>"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

...
$ gdb -eiex "show data-directory"

Fatal signal: Segmentation fault
----- Backtrace -----
0x596558 gdb_internal_backtrace_1
        /data/vries/gdb/src/gdb/bt-utils.c:122
0x5965fb _Z22gdb_internal_backtracev
        /data/vries/gdb/src/gdb/bt-utils.c:168
0x788116 handle_fatal_signal
        /data/vries/gdb/src/gdb/event-top.c:962
0x788282 handle_sigsegv
        /data/vries/gdb/src/gdb/event-top.c:1035
0x7fbccac758bf ???
0xca1c28 _ZNK6ui_out12is_mi_like_pEv
        /data/vries/gdb/src/gdb/ui-out.c:812
0x60ccfe _Z15do_show_commandPKciP16cmd_list_element
        /data/vries/gdb/src/gdb/cli/cli-setshow.c:671
0xc527d9 _Z15execute_commandPKci
        /data/vries/gdb/src/gdb/top.c:681
0x90c88f catch_command_errors
        /data/vries/gdb/src/gdb/main.c:517
0x90ca9b execute_cmdargs
        /data/vries/gdb/src/gdb/main.c:616
0x90d3bb captured_main_1
        /data/vries/gdb/src/gdb/main.c:1042
0x90df99 captured_main
        /data/vries/gdb/src/gdb/main.c:1308
0x90e038 _Z8gdb_mainP18captured_main_args
        /data/vries/gdb/src/gdb/main.c:1337
0x41a9bd main
        /data/vries/gdb/src/gdb/gdb.c:32
...

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

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

* [Bug cli/30362] [gdb/cli] segfault on gdb -eiex "show <something>"
  2023-04-17  9:35 [Bug cli/30362] New: [gdb/cli] segfault on gdb -eiex "show <something>" vries at gcc dot gnu.org
@ 2023-04-21  7:59 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-04-21  7:59 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
In the docs we have:
...
Only set or source commands should be placed into an early initialization file,
and the only set commands that can be used are those that control how GDB
starts up.
...
so the command is not allowed, it's just that the failure mode is a bit severe.

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

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

end of thread, other threads:[~2023-04-21  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17  9:35 [Bug cli/30362] New: [gdb/cli] segfault on gdb -eiex "show <something>" vries at gcc dot gnu.org
2023-04-21  7:59 ` [Bug cli/30362] " vries at gcc dot gnu.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).