Date: Sun, 16 Jun 2002 02:44:18 -0400 (EDT) From: Robert Watson <rwatson@freebsd.org> To: Munehiro Matsuda <haro@h4.dion.ne.jp> Cc: haro@tt.kubota.co.jp, current@freebsd.org Subject: Re: Zsh dumps core after cap_get_proc() removal Message-ID: <Pine.NEB.3.96L.1020616023847.96439G-100000@fledge.watson.org> In-Reply-To: <20020616124652V.haro@h4.dion.ne.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 16 Jun 2002, Munehiro Matsuda wrote: > Hello Robert Watson, > > After removal of cap_get_proc() and friends from libc, zsh from the ports > started to dump core: > > <snip> > #0 0x28172333 in __sys___cap_get_proc () from /usr/lib/libc.so.5 > (gdb) where > #0 0x28172333 in __sys___cap_get_proc () from /usr/lib/libc.so.5 > #1 0x2816003e in cap_get_proc () from /usr/lib/libc.so.5 > #2 0x280ca331 in privasserted () from /usr/local/lib/zsh/libzsh-4.0.4.so > #3 0x28080099 in evalcond () from /usr/local/lib/zsh/libzsh-4.0.4.so > #4 0x2807e5d7 in bin_test () from /usr/local/lib/zsh/libzsh-4.0.4.so > <snip> > I had to manually disable HAVE_CAP_GET_PROC in config.h for zsh. > > Can't we have some kind of HEADS-UP or version-bump for this matter. __cap_get_proc() has always returned ENOSYS in the base system (indicating that it was not implemented), as we never committed the implementation of the system call. It looks like your binary is picking up cap_get_proc() from libc, which suggests your libc isn't in sync with the source tree, since libc no longer contains cap_get_proc(). It may be that zsh's autoconf picked up on the library calls (now removed), and built in a dependency on them. You might need to rebuild zsh to work around this once libc is rebuilt. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1020616023847.96439G-100000>