public inbox for gdb-testers@sourceware.org help / color / mirror / Atom feed
From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Subject: [binutils-gdb] Fix "set architecture mips:10000" crash Date: Mon, 07 Mar 2016 16:52:00 -0000 [thread overview] Message-ID: <e6c2f47b45315ba13f25fb57e51389d0c5ed0701@gdb-build> (raw) *** TEST RESULTS FOR COMMIT e6c2f47b45315ba13f25fb57e51389d0c5ed0701 *** Author: Pedro Alves <palves@redhat.com> Branch: master Commit: e6c2f47b45315ba13f25fb57e51389d0c5ed0701 Fix "set architecture mips:10000" crash Fix this GDB crash: $ gdb -ex "set architecture mips:10000" Segmentation fault (core dumped) Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0000000000495b1b in mips_gdbarch_init (info=..., arches=0x0) at /home/pedro/gdb/mygit/cxx-convertion/src/gdb/mips-tdep.c:8436 8436 if (bfd_get_flavour (info.abfd) == bfd_target_elf_flavour (top-gdb) bt #0 0x0000000000495b1b in mips_gdbarch_init (info=..., arches=0x0) at .../src/gdb/mips-tdep.c:8436 #1 0x00000000007348a6 in gdbarch_find_by_info (info=...) at .../src/gdb/gdbarch.c:5155 #2 0x000000000073563c in gdbarch_update_p (info=...) at .../src/gdb/arch-utils.c:522 #3 0x0000000000735585 in set_architecture (ignore_args=0x0, from_tty=1, c=0x26bc870) at .../src/gdb/arch-utils.c:496 #4 0x00000000005f29fd in do_sfunc (c=0x26bc870, args=0x0, from_tty=1) at .../src/gdb/cli/cli-decode.c:121 #5 0x00000000005fd3f3 in do_set_command (arg=0x7fffffffdcdd "mips:10000", from_tty=1, c=0x26bc870) at .../src/gdb/cli/cli-setshow.c:455 #6 0x0000000000836157 in execute_command (p=0x7fffffffdcdd "mips:10000", from_tty=1) at .../src/gdb/top.c:460 #7 0x000000000071abfb in catch_command_errors (command=0x835f6b <execute_command>, arg=0x7fffffffdccc "set architecture mips:10000", from_tty=1) at .../src/gdb/main.c:368 #8 0x000000000071bf4f in captured_main (data=0x7fffffffd750) at .../src/gdb/main.c:1132 #9 0x0000000000716737 in catch_errors (func=0x71af44 <captured_main>, func_args=0x7fffffffd750, errstring=0x106b9a1 "", mask=RETURN_MASK_ALL) at .../src/gdb/exceptions.c:240 #10 0x000000000071bfe6 in gdb_main (args=0x7fffffffd750) at .../src/gdb/main.c:1164 #11 0x000000000040a6ad in main (argc=4, argv=0x7fffffffd858) at .../src/gdb/gdb.c:32 (top-gdb) We already check whether info.abfd is NULL before all other bfd_get_flavour calls in the same function. Just this one case was missing. (This was exposed by a WIP test that tries all "set architecture ARCH" values.) gdb/ChangeLog: 2016-03-07 Pedro Alves <palves@redhat.com> * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL before calling bfd_get_flavour.
next reply other threads:[~2016-03-07 16:52 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-03-07 16:52 sergiodj+buildbot [this message] 2016-03-07 16:53 ` Failures on RHEL-s390x-m64, branch master sergiodj+buildbot 2016-03-07 17:16 ` Failures on AIX-POWER7-plain, " sergiodj+buildbot 2016-03-07 17:16 ` Failures on Fedora-s390x-m64, " sergiodj+buildbot 2016-03-07 17:17 ` Failures on Debian-s390x-native-gdbserver-m64, " sergiodj+buildbot 2016-03-07 17:39 ` Failures on Debian-s390x-m64, " sergiodj+buildbot 2016-03-07 18:05 ` Failures on Debian-s390x-native-extended-gdbserver-m64, " sergiodj+buildbot 2016-03-07 18:10 ` Failures on Debian-i686, " sergiodj+buildbot 2016-03-07 18:30 ` Failures on Fedora-ppc64be-cc-with-index, " sergiodj+buildbot 2016-03-07 18:39 ` Failures on Debian-i686-native-gdbserver, " sergiodj+buildbot 2016-03-07 19:03 ` Failures on Debian-i686-native-extended-gdbserver, " sergiodj+buildbot 2016-03-07 19:07 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " sergiodj+buildbot 2016-03-07 19:08 ` Failures on Fedora-x86_64-cc-with-index, " sergiodj+buildbot 2016-03-07 19:14 ` Failures on Fedora-ppc64be-native-gdbserver-m64, " sergiodj+buildbot 2016-03-07 19:20 ` Failures on Debian-x86_64-native-extended-gdbserver-m64, " sergiodj+buildbot 2016-03-07 19:21 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " sergiodj+buildbot 2016-03-07 19:27 ` Failures on Fedora-x86_64-native-gdbserver-m64, " sergiodj+buildbot 2016-03-07 19:30 ` Failures on Fedora-ppc64le-native-extended-gdbserver-m64, " sergiodj+buildbot 2016-03-07 19:34 ` Failures on Fedora-ppc64be-native-extended-gdbserver-m64, " sergiodj+buildbot 2016-03-07 19:37 ` Failures on Fedora-x86_64-m64, " sergiodj+buildbot 2016-03-07 19:43 ` Failures on Fedora-x86_64-native-gdbserver-m32, " sergiodj+buildbot 2016-03-07 19:52 ` Failures on Debian-x86_64-m64, " sergiodj+buildbot 2016-03-07 20:25 ` Failures on Fedora-ppc64le-cc-with-index, " sergiodj+buildbot 2016-03-07 20:53 ` Failures on Fedora-ppc64le-native-gdbserver-m64, " sergiodj+buildbot 2016-03-07 20:54 ` Failures on Fedora-ppc64le-m64, " sergiodj+buildbot
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=e6c2f47b45315ba13f25fb57e51389d0c5ed0701@gdb-build \ --to=sergiodj+buildbot@sergiodj.net \ --cc=gdb-testers@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).