From owner-freebsd-stable@freebsd.org Thu Dec 8 16:57:43 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42765C6D4F5 for ; Thu, 8 Dec 2016 16:57:43 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0462DA8E; Thu, 8 Dec 2016 16:57:43 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1cF20p-0001yV-Gt; Thu, 08 Dec 2016 19:57:39 +0300 Date: Thu, 8 Dec 2016 19:57:39 +0300 From: Slawa Olhovchenkov To: "K. Macy" Cc: freebsd-stable@freebsd.org Subject: Re: gdb broken on stable/11 and current? Message-ID: <20161208165739.GC99742@zxy.spb.ru> References: <20161208145259.GR57876@zxy.spb.ru> <20161208162909.GA99742@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2016 16:57:43 -0000 On Thu, Dec 08, 2016 at 04:52:35PM +0000, K. Macy wrote: > kgdb7111 is what you use for kernel. It works fine for me. kgdb7111 don't find .debug under /usr/lib/debug/ gdb found it. > On Thu, Dec 8, 2016 at 08:29 Slawa Olhovchenkov wrote: > > > On Thu, Dec 08, 2016 at 04:01:04PM +0000, K. Macy wrote: > > > > > > > > > In tree gdb doesn't work for much of anything these days. It can't even > > > > > consistently give a complete kernel backtrace. Jhb is graciously > > > > > maintaining gdb in ports. It will be installed as the awkwardly named > > > > > gdb7111 IIRC. > > > > > > > > 1. gdb7111 badly integrated w/ 11 and up (don't see kernel debug > > > > symbols) > > > > 2. all included in base systems can't be core dumped. > > > > > > > > > On Thu, Dec 8, 2016 at 06:53 Slawa Olhovchenkov wrote: > > > > > > > > > > > % gdb ./edge_stat > > > > > > > > > > > > GNU gdb 6.1.1 [FreeBSD] > > > > > > > > > > > > Copyright 2004 Free Software Foundation, Inc. > > > > > > > > > > > > GDB is free software, covered by the GNU General Public License, and > > you > > > > > > are > > > > > > > > > > > > welcome to change it and/or distribute copies of it under certain > > > > > > conditions. > > > > > > > > > > > > Type "show copying" to see the conditions. > > > > > > > > > > > > There is absolutely no warranty for GDB. Type "show warranty" for > > details. > > > > > > > > > > > > This GDB was configured as "amd64-marcel-freebsd"... > > > > > > > > > > > > (gdb) break main > > > > > > > > > > > > Segmentation fault (core dumped) > > > > > > > > > > > > > > > > > > > > > > > > % gdb /usr/bin/gdb /tmp/gdb.13573.core > > > > > > > > > > > > GNU gdb 6.1.1 [FreeBSD] > > > > > > > > > > > > Copyright 2004 Free Software Foundation, Inc. > > > > > > > > > > > > GDB is free software, covered by the GNU General Public License, and > > you > > > > > > are > > > > > > > > > > > > welcome to change it and/or distribute copies of it under certain > > > > > > conditions. > > > > > > > > > > > > Type "show copying" to see the conditions. > > > > > > > > > > > > There is absolutely no warranty for GDB. Type "show warranty" for > > details. > > > > > > > > > > > > This GDB was configured as "amd64-marcel-freebsd"...(no debugging > > symbols > > > > > > found)... > > > > > > > > > > > > Core was generated by `gdb'. > > > > > > > > > > > > Program terminated with signal 11, Segmentation fault. > > > > > > > > > > > > Reading symbols from /lib/libm.so.5...(no debugging symbols > > found)...done. > > > > > > > > > > > > Loaded symbols for /lib/libm.so.5 > > > > > > > > > > > > Reading symbols from /lib/libncursesw.so.8...(no debugging symbols > > > > > > found)...done. > > > > > > > > > > > > Loaded symbols for /lib/libncursesw.so.8 > > > > > > > > > > > > Reading symbols from /usr/lib/libgnuregex.so.5...(no debugging symbols > > > > > > found)...done. > > > > > > > > > > > > Loaded symbols for /usr/lib/libgnuregex.so.5 > > > > > > > > > > > > Reading symbols from /lib/libc.so.7...(no debugging symbols > > found)...done. > > > > > > > > > > > > Loaded symbols for /lib/libc.so.7 > > > > > > > > > > > > Reading symbols from /usr/lib/libthread_db.so...(no debugging symbols > > > > > > found)...done. > > > > > > > > > > > > Loaded symbols for /usr/lib/libthread_db.so > > > > > > > > > > > > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols > > > > > > found)...done. > > > > > > > > > > > > Loaded symbols for /libexec/ld-elf.so.1 > > > > > > > > > > > > #0 0x00000000005da00b in cplus_demangle_v3_callback () > > > > > > > > > > > > (gdb) bt > > > > > > > > > > > > #0 0x00000000005da00b in cplus_demangle_v3_callback () > > > > > > > > > > > > #1 0x00000000005d9f9c in cplus_demangle_v3 () > > > > > > > > > > > > #2 0x00000000005ca13c in cplus_demangle () > > > > > > > > > > > > #3 0x0000000000487454 in class_name_from_physname () > > > > > > > > > > > > #4 0x000000000053a4f3 in dwarf2_read_section () > > > > > > > > > > > > #5 0x000000000053a0cc in dwarf2_read_section () > > > > > > > > > > > > #6 0x0000000000539bd9 in dwarf2_read_section () > > > > > > > > > > > > #7 0x0000000000537395 in dwarf2_read_section () > > > > > > > > > > > > #8 0x0000000000539c21 in dwarf2_read_section () > > > > > > > > > > > > #9 0x0000000000539643 in dwarf2_read_section () > > > > > > > > > > > > #10 0x0000000000538a6c in dwarf2_read_section () > > > > > > > > > > > > #11 0x00000000005352fb in dwarf2_read_section () > > > > > > > > > > > > #12 0x0000000000533bfd in dwarf2_read_section () > > > > > > > > > > > > #13 0x00000000004cfc46 in psymtab_to_symtab () > > > > > > > > > > > > #14 0x00000000004c9cfb in lookup_symbol_global () > > > > > > > > > > > > #15 0x0000000000482273 in cp_lookup_symbol_namespace () > > > > > > > > > > > > #16 0x0000000000482059 in cp_lookup_symbol_nonlocal () > > > > > > > > > > > > #17 0x0000000000481f63 in cp_lookup_symbol_nonlocal () > > > > > > > > > > > > #18 0x00000000004c9780 in lookup_symbol () > > > > > > > > > > > > #19 0x00000000005035cf in find_imps () > > > > > > > > > > > > #20 0x0000000000514df9 in decode_line_1 () > > > > > > > > > > > > #21 0x0000000000514589 in decode_line_1 () > > > > > > > > > > > > #22 0x000000000046eff9 in _initialize_breakpoint () > > > > > > > > > > > > #23 0x000000000046f48b in _initialize_breakpoint () > > > > > > > > > > > > #24 0x00000000004ab289 in catch_exceptions () > > > > > > > > > > > > #25 0x00000000004ab368 in catch_exceptions_with_msg () > > > > > > > > > > > > #26 0x000000000046b169 in break_command () > > > > > > > > > > > > #27 0x00000000004ab996 in execute_command () > > > > > > > > > > > > #28 0x0000000000465293 in gdb_disable_readline () > > > > > > > > > > > > #29 0x0000000000465182 in gdb_setup_readline () > > > > > > > > > > > > #30 0x00000000005e266f in rl_callback_read_char () > > > > > > > > > > > > #31 0x0000000000464c79 in gdb_setup_readline () > > > > > > > > > > > > #32 0x0000000000465a46 in gdb_do_one_event () > > > > > > > > > > > > #33 0x00000000004ab289 in catch_exceptions () > > > > > > > > > > > > #34 0x00000000004ab42a in catch_errors () > > > > > > > > > > > > #35 0x0000000000551168 in _initialize_tui_interp () > > > > > > > > > > > > #36 0x0000000000448689 in gdb_main () > > > > > > > > > > > > #37 0x00000000004ab289 in catch_exceptions () > > > > > > > > > > > > #38 0x00000000004ab42a in catch_errors () > > > > > > > > > > > > #39 0x0000000000448526 in gdb_main () > > > > > > > > > > > > #40 0x00000000004ab289 in catch_exceptions () > > > > > > > > > > > > #41 0x00000000004ab42a in catch_errors () > > > > > > > > > > > > #42 0x0000000000447977 in gdb_main () > > > > > > > > > > > > #43 0x0000000000447931 in main () > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > freebsd-stable@freebsd.org mailing list > > > > > > > > > > > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > > > > > > > > > > > > To unsubscribe, send any mail to " > > freebsd-stable-unsubscribe@freebsd.org" > > > > > > > > > > > > > > > >