This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Add $pdir as entry for libthread-db-search-path.


On Fri, 29 Apr 2011 05:58:37 +0200, Doug Evans wrote:
> A better default is to look in the directory of libpthread first - that is
> the best default.

This is insecure default.  It is something like the FSF GDB insecure .gdbinit
behavior which many distros (at least Fedora but even others) have to patch.

While it is always insecure to run a foreign binary it should be secure to for
example load a foreign binary and its core file.


> (2) If the user overrides libthread-db-search-path we want to obey the
> user's choice.

I agree if the user explicitly wishes so it should be followed.


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]