[trimmed CC list - please don't copy both misc@ and ports@]
Like I mentioned in my first mail:
bt full
On 2019/10/04 14:48, dmitry.sensei wrote:
> ORLOV-NB# egdb /usr/local/bin/net
> GNU gdb (GDB) 7.12.1
> Copyright (C) 2017 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> 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-unknown-openbsd6.6".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/local/bin/net...(no debugging symbols found)...done.
> (gdb) set args ads testjoin
> (gdb) run
> Starting program: /usr/local/bin/net ads testjoin
> net(20104) in free(): bogus pointer (double free?) 0xffffffffffffffff
>
> Program received signal SIGABRT, Aborted.
> thrkill () at -:3
> 3 -: No such file or directory.
> (gdb)
>
> пт, 4 окт. 2019 г. в 14:31, Stuart Henderson <stu@spacehopper.org>:
>
> On 2019/10/04 14:25, dmitry.sensei wrote:
> > How to debug net with parameters&
> >
> > пт, 4 окт. 2019 г. в 13:49, Stuart Henderson <stu@spacehopper.org>:
> >
> > On 2019/10/04 08:32, Sebastien Marie wrote:
> > > On Fri, Oct 04, 2019 at 09:24:12AM +0500, dmitry.sensei wrote:
> > > > Bugged net utility from samba package/
> > > > ktrace is attached
> > >
> > > PLEASE DON'T SEND RAW KTRACE DATA ! (it would be the same for core file too).
> > >
> > > in case you don't figure, you send to everyone a trace of all syscalls with
> > > arguments and return of what the program did, including:
> > >
> > > - file description and content for any opened file (hello
> > > /var/samba/private/secrets.tdb and /etc/samba/smb.conf)
> > > - all network communication with the program (hello ldap, kerberos and smb
> > > services)
> > >
> > > It means that any secrets in readed file or sent/received on the network should
> > > be considered compromised.
> > >
> > > Just don't do that.
> > >
> > > Thanks.
> > > --
> > > Sebastien Marie
> > >
> >
> > Plus, it's not really useful anyway. A backtrace would be the normal
> > starting point for a segfault. (In case "gdb" in base doesn't work,
> > pkg_add gdb and use "egdb" instead).
> >
> > egdb `which net` net.core
> > bt full
> >
> >
> >
> >
> > --
> > Dmitry Orlov
>
> The command I showed is to look at the coredump from your previous crash which
> already happened with parameters.
>
> If you need to run it "live" in gdb then omit "net.core" from the command line
> and use "set args <whatever>" and "run".
>
>
>
>
> --
> Dmitry Orlov
No comments:
Post a Comment