From owner-freebsd-stable@freebsd.org Thu Dec 8 18:46:17 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 E8DC6C6DB65 for ; Thu, 8 Dec 2016 18:46:17 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DA20116F for ; Thu, 8 Dec 2016 18:46:16 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-qk0-f181.google.com with SMTP id n204so458525434qke.2 for ; Thu, 08 Dec 2016 10:46:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a743QXGHsk0DJLHet0IlC5xyEyR7FQkNgfyL4njYWM8=; b=YTjT2e/eHKdv/vUuM8c16H4BIAoKIB5OiHsR4GdP3+T/fG88dIVZzt88QWC2zRwVGZ ATXIrK1gn7S21dC+uwv56ZQEtEdiiHe78SPOX33ZzcuJkxbNxop1KP9TSHPVmvKRlqpl muNxE9RQaYht7kN8vjigmXZOHFykMpLWLzW/VsVXPQLq4FFsgAlTBCjlCUEdaeVmTOd/ mpaxcYmvx8vIr87pNeMLLvKRE1isnUbW5RNHsy6q+eH25dMaHfkxrapSPIodiPdmPqBT WRvVTAap1nuzkMFRQfGTQZT8fv8fp1rvJBeU/JbzQg3o/snO9S3lf6vgiWN29MPlLpVK rX7A== X-Gm-Message-State: AKaTC02nCE7IE9tl8b/ntd/dPyF7oPRboaJxl/k4ADdOb1PqIe5NK3pWrwcI1ZAwzgb6q4vz2i8I1Hg62SS+vw== X-Received: by 10.55.217.209 with SMTP id q78mr1452870qkl.287.1481219455184; Thu, 08 Dec 2016 09:50:55 -0800 (PST) MIME-Version: 1.0 References: <20161208145259.GR57876@zxy.spb.ru> <20161208162909.GA99742@zxy.spb.ru> <20161208165739.GC99742@zxy.spb.ru> In-Reply-To: <20161208165739.GC99742@zxy.spb.ru> From: "K. Macy" Date: Thu, 08 Dec 2016 17:50:44 +0000 Message-ID: Subject: Re: gdb broken on stable/11 and current? To: Slawa Olhovchenkov Cc: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 18:46:18 -0000 It does, the path arguments are different. I've used kgdb7111 for the last year. On Thu, Dec 8, 2016 at 08:57 Slawa Olhovchenkov wrote: > 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" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >