public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "tnozicka at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug c++/17656] New: segmentation fault while loading symbols Date: Thu, 27 Nov 2014 15:56:00 -0000 [thread overview] Message-ID: <bug-17656-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=17656 Bug ID: 17656 Summary: segmentation fault while loading symbols Product: gdb Version: 7.8 Status: NEW Severity: critical Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: tnozicka at gmail dot com Hi, symbol _ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE will cause gdb(demangler) to crash with segmentation fault. The symbol has been generated by custom build g++-4.9. Backtrace: #0 0x000000000083b91a in d_print_comp_inner (dpi=<error reading variable: Cannot access memory at address 0x7fffff3feec8>, options=<error reading variable: Cannot access memory at address 0x7fffff3feec4>, dc=<error reading variable: Cannot access memory at address 0x7fffff3feeb8>) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:4294 #1 0x000000000083e221 in d_print_comp (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffcf08) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:5368 #2 0x000000000083ba8b in d_print_comp_inner (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffcf80) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:4332 #3 0x000000000083e221 in d_print_comp (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffcf80) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:5368 #4 0x000000000083c9db in d_print_comp_inner (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffcf98) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:4769 #5 0x000000000083e221 in d_print_comp (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffcf38) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:5368 #6 0x000000000083d048 in d_print_comp_inner (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffcf50) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:4950 ... #43656 0x000000000083beac in d_print_comp_inner (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffd0d0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:4442 #43657 0x000000000083e221 in d_print_comp (dpi=0x7fffffffcaa0, options=259, dc=0x7fffffffd0d0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:5368 #43658 0x000000000083b3ff in cplus_demangle_print_callback (options=259, dc=0x7fffffffd0d0, callback=0x83ae2c <d_growable_string_callback_adapter>, opaque=0x7fffffffde50) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:4071 #43659 0x000000000083f1db in d_demangle_callback (mangled=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", options=259, callback=0x83ae2c <d_growable_string_callback_adapter>, opaque=0x7fffffffde50) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:5898 #43660 0x000000000083f233 in d_demangle (mangled=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", options=259, palc=0x7fffffffdea8) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:5919 #43661 0x000000000083f29d in cplus_demangle_v3 (mangled=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", options=259) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cp-demangle.c:6076 #43662 0x000000000082dcf8 in cplus_demangle (mangled=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", options=3) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/libiberty/cplus-dem.c:858 #43663 0x000000000077205f in bfd_demangle (abfd=0x0, name=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", options=3) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/bfd/bfd.c:1885 #43664 0x0000000000730014 in gdb_demangle (name=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", options=3) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/cp-support.c:1490 ---Type <return> to continue, or q <return> to quit--- #43665 0x00000000005c65b2 in symbol_find_demangled_name (gsymbol=0xf1ae58, mangled=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE") at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symtab.c:661 #43666 0x00000000005c6afa in symbol_set_names (gsymbol=0xf1ae58, linkage_name=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", len=77, copy_name=0, objfile=0xe938a0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symtab.c:871 #43667 0x000000000065674e in prim_record_minimal_symbol_full (name=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", name_len=77, copy_name=0, address=4218913, ms_type=mst_file_text, section=12, objfile=0xe938a0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/minsyms.c:960 #43668 0x000000000053ce9c in record_minimal_symbol (name=0x7ffff5aacc85 "_ZSt7forwardIRN15SuperiorMySqlppUlOT_E_EES2_RNSt16remove_referenceIS1_E4typeE", name_len=77, copy_name=0, address=4218913, ms_type=mst_file_text, bfd_section=0xea7f38, objfile=0xe938a0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/elfread.c:206 #43669 0x000000000053d734 in elf_symtab_read (objfile=0xe938a0, type=0, number_of_symbols=5945, symbol_table=0xf0e540, copy_names=0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/elfread.c:543 #43670 0x000000000053f19f in elf_read_minimal_symbols (objfile=0xe938a0, symfile_flags=6, ei=0x7fffffffe3d0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/elfread.c:1148 #43671 0x000000000053f446 in elf_symfile_read (objfile=0xe938a0, symfile_flags=6) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/elfread.c:1264 #43672 0x00000000005d52f8 in read_symbols (objfile=0xe938a0, add_flags=6) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:877 #43673 0x00000000005d58ec in syms_from_objfile_1 (objfile=0xe938a0, addrs=0xe7e240, add_flags=6) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:1080 #43674 0x00000000005d5934 in syms_from_objfile (objfile=0xe938a0, addrs=0x0, add_flags=6) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:1096 #43675 0x00000000005d5b2c in symbol_file_add_with_addrs (abfd=0xe99b80, name=0x7fffffffec21 "tester", add_flags=6, addrs=0x0, flags=0, parent=0x0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:1193 #43676 0x00000000005d5d22 in symbol_file_add_from_bfd (abfd=0xe99b80, name=0x7fffffffec21 "tester", add_flags=6, addrs=0x0, flags=0, parent=0x0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:1282 #43677 0x00000000005d5d7d in symbol_file_add (name=0x7fffffffec21 "tester", add_flags=6, addrs=0x0, flags=0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:1297 #43678 0x00000000005d5e0c in symbol_file_add_main_1 (args=0x7fffffffec21 "tester", from_tty=1, flags=0) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:1322 #43679 0x00000000005d5db8 in symbol_file_add_main (args=0x7fffffffec21 "tester", from_tty=1) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/symfile.c:1313 #43680 0x000000000060d13c in catch_command_errors_const (command=0x5d5d93 <symbol_file_add_main>, arg=0x7fffffffec21 "tester", from_tty=1, mask=RETURN_MASK_ALL) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/main.c:378 #43681 0x000000000060e1e8 in captured_main (data=0x7fffffffe890) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/main.c:1057 #43682 0x0000000000608c2d in catch_errors (func=0x60d3d2 <captured_main>, func_args=0x7fffffffe890, errstring=0x8ccd93 "", mask=RETURN_MASK_ALL) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/exceptions.c:506 #43683 0x000000000060e569 in gdb_main (args=0x7fffffffe890) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/main.c:1172 #43684 0x000000000045d3c3 in main (argc=2, argv=0x7fffffffe998) at /tmp/tmp.rz3lynF6C7/gdb-7.8.1/gdb/gdb.c:33 -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2014-11-27 15:56 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-11-27 15:56 tnozicka at gmail dot com [this message] 2023-12-29 17:12 ` [Bug c++/17656] " ssbssa at sourceware dot 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-17656-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).