Re: gdb broken on stable/11 and current?

2016-12-08 Thread Slawa Olhovchenkov
On Thu, Dec 08, 2016 at 07:56:03PM +0200, Andriy Gapon wrote:

> On 08/12/2016 18:57, Slawa Olhovchenkov wrote:
> > kgdb7111 don't find .debug under /usr/lib/debug/
> > gdb found it.
> 
> $ gdb7111 bhyve /var/coredumps/bhyve.0.0.core
> GNU gdb (GDB) 7.11.1 [GDB v7.11.1 for FreeBSD]
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-portbld-freebsd11.0".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> .
> Find the GDB manual and other documentation resources online at:
> .
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from bhyve...Reading symbols from
> /usr/lib/debug//usr/sbin/bhyve.debug...done.
> 
> Something is wrong in your environment.

May be outdated information, last unsuccess try will be about august.
Now work ok.
Thanks for point.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: gdb broken on stable/11 and current?

2016-12-08 Thread K. Macy
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 +, 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 +, 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  0x005da00b in cplus_demangle_v3_callback ()
>
> > >
>
> > > > >
>
> > >
>
> > > > > (gdb) bt
>
> > >
>
> > > > >
>
> > >
>
> > > > > #0  0x005da00b in cplus_demangle_v3_callback ()
>
> > >
>
> > > > >
>
> > >
>
> > > > > #1  0x005d9f9c in cplus_demangle_v3 ()
>
> > >
>
> > > > >
>
> > >
>
> > > > > #2  0x005ca13c in cplus_demangle ()
>
> > >
>
> > > > >
>
> > >
>
> > > > > #3  0x00487454 in class_name_from_physname ()
>
> > >
>
> > > > >
>
> > >
>
> > > > > #4  0x0053a4f3 in 

Re: gdb broken on stable/11 and current?

2016-12-08 Thread Andriy Gapon
On 08/12/2016 18:57, Slawa Olhovchenkov wrote:
> kgdb7111 don't find .debug under /usr/lib/debug/
> gdb found it.

$ gdb7111 bhyve /var/coredumps/bhyve.0.0.core
GNU gdb (GDB) 7.11.1 [GDB v7.11.1 for FreeBSD]
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd11.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bhyve...Reading symbols from
/usr/lib/debug//usr/sbin/bhyve.debug...done.

Something is wrong in your environment.

-- 
Andriy Gapon
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: gdb broken on stable/11 and current?

2016-12-08 Thread Slawa Olhovchenkov
On Thu, Dec 08, 2016 at 04:52:35PM +, 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 +, 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  0x005da00b in cplus_demangle_v3_callback ()
> >
> > > >
> >
> > > > (gdb) bt
> >
> > > >
> >
> > > > #0  0x005da00b in cplus_demangle_v3_callback ()
> >
> > > >
> >
> > > > #1  0x005d9f9c in cplus_demangle_v3 ()
> >
> > > >
> >
> > > > #2  0x005ca13c in cplus_demangle ()
> >
> > > >
> >
> > > > #3  0x00487454 in class_name_from_physname ()
> >
> > > >
> >
> > > > #4  0x0053a4f3 in dwarf2_read_section ()
> >
> > > >
> >
> > > > #5  0x0053a0cc in dwarf2_read_section ()
> >
> > > >
> >
> > > > #6  0x00539bd9 in dwarf2_read_section ()
> >
> > > >
> >
> > > > #7  0x00537395 in dwarf2_read_section ()
> >
> > > >
> >
> > > > #8  0x00539c21 in dwarf2_read_section ()
> >
> > > >
> >
> > > > #9  0x00539643 in dwarf2_read_section ()
> >
> > > >
> >
> > > > #10 0x00538a6c in dwarf2_read_section ()
> >
> > > >
> >
> > > > #11 0x005352fb in dwarf2_read_section ()
> >
> > > >
> >
> > > > #12 0x00533bfd in dwarf2_read_section ()
> >
> > > >
> >
> > > > #13 0x004cfc46 in psymtab_to_symtab ()
> >
> > > >
> >
> > > > #14 0x004c9cfb in lookup_symbol_global ()
> >
> > > >
> >
> > > > #15 0x00482273 in cp_lookup_symbol_namespace ()
> >
> > > >
> >
> > > > #16 0x00482059 in cp_lookup_symbol_nonlocal ()
> >
> > > >
> >
> > > > #17 0x00481f63 in cp_lookup_symbol_nonlocal ()
> >
> > > >
> >
> > > > #18 

Re: gdb broken on stable/11 and current?

2016-12-08 Thread K. Macy
kgdb7111 is what you use for kernel. It works fine for me.


On Thu, Dec 8, 2016 at 08:29 Slawa Olhovchenkov  wrote:

> On Thu, Dec 08, 2016 at 04:01:04PM +, 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  0x005da00b in cplus_demangle_v3_callback ()
>
> > >
>
> > > (gdb) bt
>
> > >
>
> > > #0  0x005da00b in cplus_demangle_v3_callback ()
>
> > >
>
> > > #1  0x005d9f9c in cplus_demangle_v3 ()
>
> > >
>
> > > #2  0x005ca13c in cplus_demangle ()
>
> > >
>
> > > #3  0x00487454 in class_name_from_physname ()
>
> > >
>
> > > #4  0x0053a4f3 in dwarf2_read_section ()
>
> > >
>
> > > #5  0x0053a0cc in dwarf2_read_section ()
>
> > >
>
> > > #6  0x00539bd9 in dwarf2_read_section ()
>
> > >
>
> > > #7  0x00537395 in dwarf2_read_section ()
>
> > >
>
> > > #8  0x00539c21 in dwarf2_read_section ()
>
> > >
>
> > > #9  0x00539643 in dwarf2_read_section ()
>
> > >
>
> > > #10 0x00538a6c in dwarf2_read_section ()
>
> > >
>
> > > #11 0x005352fb in dwarf2_read_section ()
>
> > >
>
> > > #12 0x00533bfd in dwarf2_read_section ()
>
> > >
>
> > > #13 0x004cfc46 in psymtab_to_symtab ()
>
> > >
>
> > > #14 0x004c9cfb in lookup_symbol_global ()
>
> > >
>
> > > #15 0x00482273 in cp_lookup_symbol_namespace ()
>
> > >
>
> > > #16 0x00482059 in cp_lookup_symbol_nonlocal ()
>
> > >
>
> > > #17 0x00481f63 in cp_lookup_symbol_nonlocal ()
>
> > >
>
> > > #18 0x004c9780 in lookup_symbol ()
>
> > >
>
> > > #19 0x005035cf in find_imps ()
>
> > >
>
> > > #20 0x00514df9 in decode_line_1 ()
>
> > >
>
> > > #21 0x00514589 in decode_line_1 ()
>
> > >
>
> > > #22 0x0046eff9 in _initialize_breakpoint ()
>
> > >
>
> > > #23 0x0046f48b in _initialize_breakpoint ()
>
> > >
>
> > > #24 0x004ab289 in catch_exceptions ()
>
> > >
>
> > > #25 0x004ab368 in catch_exceptions_with_msg ()
>
> > >
>
> > > #26 0x0046b169 in break_command ()
>
> > >
>
> > > #27 0x004ab996 in execute_command ()
>
> > >
>
> > > #28 0x00465293 in gdb_disable_readline ()
>

Re: gdb broken on stable/11 and current?

2016-12-08 Thread Slawa Olhovchenkov
On Thu, Dec 08, 2016 at 04:01:04PM +, 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  0x005da00b in cplus_demangle_v3_callback ()
> >
> > (gdb) bt
> >
> > #0  0x005da00b in cplus_demangle_v3_callback ()
> >
> > #1  0x005d9f9c in cplus_demangle_v3 ()
> >
> > #2  0x005ca13c in cplus_demangle ()
> >
> > #3  0x00487454 in class_name_from_physname ()
> >
> > #4  0x0053a4f3 in dwarf2_read_section ()
> >
> > #5  0x0053a0cc in dwarf2_read_section ()
> >
> > #6  0x00539bd9 in dwarf2_read_section ()
> >
> > #7  0x00537395 in dwarf2_read_section ()
> >
> > #8  0x00539c21 in dwarf2_read_section ()
> >
> > #9  0x00539643 in dwarf2_read_section ()
> >
> > #10 0x00538a6c in dwarf2_read_section ()
> >
> > #11 0x005352fb in dwarf2_read_section ()
> >
> > #12 0x00533bfd in dwarf2_read_section ()
> >
> > #13 0x004cfc46 in psymtab_to_symtab ()
> >
> > #14 0x004c9cfb in lookup_symbol_global ()
> >
> > #15 0x00482273 in cp_lookup_symbol_namespace ()
> >
> > #16 0x00482059 in cp_lookup_symbol_nonlocal ()
> >
> > #17 0x00481f63 in cp_lookup_symbol_nonlocal ()
> >
> > #18 0x004c9780 in lookup_symbol ()
> >
> > #19 0x005035cf in find_imps ()
> >
> > #20 0x00514df9 in decode_line_1 ()
> >
> > #21 0x00514589 in decode_line_1 ()
> >
> > #22 0x0046eff9 in _initialize_breakpoint ()
> >
> > #23 0x0046f48b in _initialize_breakpoint ()
> >
> > #24 0x004ab289 in catch_exceptions ()
> >
> > #25 0x004ab368 in catch_exceptions_with_msg ()
> >
> > #26 0x0046b169 in break_command ()
> >
> > #27 0x004ab996 in execute_command ()
> >
> > #28 0x00465293 in gdb_disable_readline ()
> >
> > #29 0x00465182 in gdb_setup_readline ()
> >
> > #30 0x005e266f in rl_callback_read_char ()
> >
> > #31 0x00464c79 in gdb_setup_readline ()
> >
> > #32 0x00465a46 in gdb_do_one_event ()
> >
> > #33 0x004ab289 in catch_exceptions ()
> >
> > #34 0x004ab42a in catch_errors ()
> >
> > #35 0x00551168 in _initialize_tui_interp ()
> >
> > #36 0x00448689 in gdb_main ()
> >
> > #37 0x004ab289 in catch_exceptions ()
> >
> > #38 0x004ab42a in catch_errors ()
> >
> > #39 0x00448526 in gdb_main ()
> >
> > #40 0x004ab289 in catch_exceptions ()
> >
> > #41 0x004ab42a in catch_errors ()
> >
> > #42 0x00447977 in gdb_main ()
> >
> 

Re: gdb broken on stable/11 and current?

2016-12-08 Thread K. Macy
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.


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  0x005da00b in cplus_demangle_v3_callback ()
>
> (gdb) bt
>
> #0  0x005da00b in cplus_demangle_v3_callback ()
>
> #1  0x005d9f9c in cplus_demangle_v3 ()
>
> #2  0x005ca13c in cplus_demangle ()
>
> #3  0x00487454 in class_name_from_physname ()
>
> #4  0x0053a4f3 in dwarf2_read_section ()
>
> #5  0x0053a0cc in dwarf2_read_section ()
>
> #6  0x00539bd9 in dwarf2_read_section ()
>
> #7  0x00537395 in dwarf2_read_section ()
>
> #8  0x00539c21 in dwarf2_read_section ()
>
> #9  0x00539643 in dwarf2_read_section ()
>
> #10 0x00538a6c in dwarf2_read_section ()
>
> #11 0x005352fb in dwarf2_read_section ()
>
> #12 0x00533bfd in dwarf2_read_section ()
>
> #13 0x004cfc46 in psymtab_to_symtab ()
>
> #14 0x004c9cfb in lookup_symbol_global ()
>
> #15 0x00482273 in cp_lookup_symbol_namespace ()
>
> #16 0x00482059 in cp_lookup_symbol_nonlocal ()
>
> #17 0x00481f63 in cp_lookup_symbol_nonlocal ()
>
> #18 0x004c9780 in lookup_symbol ()
>
> #19 0x005035cf in find_imps ()
>
> #20 0x00514df9 in decode_line_1 ()
>
> #21 0x00514589 in decode_line_1 ()
>
> #22 0x0046eff9 in _initialize_breakpoint ()
>
> #23 0x0046f48b in _initialize_breakpoint ()
>
> #24 0x004ab289 in catch_exceptions ()
>
> #25 0x004ab368 in catch_exceptions_with_msg ()
>
> #26 0x0046b169 in break_command ()
>
> #27 0x004ab996 in execute_command ()
>
> #28 0x00465293 in gdb_disable_readline ()
>
> #29 0x00465182 in gdb_setup_readline ()
>
> #30 0x005e266f in rl_callback_read_char ()
>
> #31 0x00464c79 in gdb_setup_readline ()
>
> #32 0x00465a46 in gdb_do_one_event ()
>
> #33 0x004ab289 in catch_exceptions ()
>
> #34 0x004ab42a in catch_errors ()
>
> #35 0x00551168 in _initialize_tui_interp ()
>
> #36 0x00448689 in gdb_main ()
>
> #37 0x004ab289 in catch_exceptions ()
>
> #38 0x004ab42a in catch_errors ()
>
> #39 0x00448526 in gdb_main ()
>
> #40 0x004ab289 in catch_exceptions ()
>
> #41 0x004ab42a in catch_errors ()
>
> #42 0x00447977 in gdb_main ()
>
> #43 0x00447931 in main ()
>
> ___
>
> freebsd-stable@freebsd.org mailing list
>
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
>
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>
>
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


gdb broken on stable/11 and current?

2016-12-08 Thread Slawa Olhovchenkov
% 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  0x005da00b in cplus_demangle_v3_callback ()
(gdb) bt
#0  0x005da00b in cplus_demangle_v3_callback ()
#1  0x005d9f9c in cplus_demangle_v3 ()
#2  0x005ca13c in cplus_demangle ()
#3  0x00487454 in class_name_from_physname ()
#4  0x0053a4f3 in dwarf2_read_section ()
#5  0x0053a0cc in dwarf2_read_section ()
#6  0x00539bd9 in dwarf2_read_section ()
#7  0x00537395 in dwarf2_read_section ()
#8  0x00539c21 in dwarf2_read_section ()
#9  0x00539643 in dwarf2_read_section ()
#10 0x00538a6c in dwarf2_read_section ()
#11 0x005352fb in dwarf2_read_section ()
#12 0x00533bfd in dwarf2_read_section ()
#13 0x004cfc46 in psymtab_to_symtab ()
#14 0x004c9cfb in lookup_symbol_global ()
#15 0x00482273 in cp_lookup_symbol_namespace ()
#16 0x00482059 in cp_lookup_symbol_nonlocal ()
#17 0x00481f63 in cp_lookup_symbol_nonlocal ()
#18 0x004c9780 in lookup_symbol ()
#19 0x005035cf in find_imps ()
#20 0x00514df9 in decode_line_1 ()
#21 0x00514589 in decode_line_1 ()
#22 0x0046eff9 in _initialize_breakpoint ()
#23 0x0046f48b in _initialize_breakpoint ()
#24 0x004ab289 in catch_exceptions ()
#25 0x004ab368 in catch_exceptions_with_msg ()
#26 0x0046b169 in break_command ()
#27 0x004ab996 in execute_command ()
#28 0x00465293 in gdb_disable_readline ()
#29 0x00465182 in gdb_setup_readline ()
#30 0x005e266f in rl_callback_read_char ()
#31 0x00464c79 in gdb_setup_readline ()
#32 0x00465a46 in gdb_do_one_event ()
#33 0x004ab289 in catch_exceptions ()
#34 0x004ab42a in catch_errors ()
#35 0x00551168 in _initialize_tui_interp ()
#36 0x00448689 in gdb_main ()
#37 0x004ab289 in catch_exceptions ()
#38 0x004ab42a in catch_errors ()
#39 0x00448526 in gdb_main ()
#40 0x004ab289 in catch_exceptions ()
#41 0x004ab42a in catch_errors ()
#42 0x00447977 in gdb_main ()
#43 0x00447931 in main ()
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"