[sudo-workers] 1.8.6p3 plugins/visudo and plugins/testsudoers segfault on FreeBSD-10 ia64 (Itanium)

Anton Shterenlikht mexas at bristol.ac.uk
Thu Dec 27 16:31:55 EST 2012


	From Todd.Miller at courtesan.com Thu Dec 27 21:26:51 2012

	On Thu, 27 Dec 2012 21:06:24 GMT, Anton Shterenlikht wrote:

	> --disable-pie does help, e.g.:
	> 
	> # ./plugins/sudoers/testsudoers
	> usage: testsudoers [-dt] [-G sudoers_gid] [-g group] [-h host] [-p grfile] [-
	> p p
	> wfile] [-U sudoers_uid] [-u user] <user> <command> [args]
	> #
	> 
	> This is built with the default system compiler:
	> 
	> gcc (GCC) 4.2.1 20070831 patched [FreeBSD]

	It sounds like while gcc supports the -fPIE and -pie options they
	don't actually work properly.  The simple solution is to add
	--disable-pie to the configure args for ia64 in the port's Makefile.
	I'll also add a configure check to disable PIE on FreeBSD/ia64 in
	the next sudo release.

	However, you might want to involve the FreeBSD/ia64 folks and see
	if they can fix the underlying issues that prevent PIE from working
	properly.

ok, will do, thanks

Anton



More information about the sudo-workers mailing list