From owner-freebsd-current Sat Jun 15 23:44:50 2002 Delivered-To: freebsd-current@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 934BE37B40D for ; Sat, 15 Jun 2002 23:44:47 -0700 (PDT) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.3/8.12.3) with SMTP id g5G6iIb5096803; Sun, 16 Jun 2002 02:44:20 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 16 Jun 2002 02:44:18 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Munehiro Matsuda Cc: haro@tt.kubota.co.jp, current@freebsd.org Subject: Re: Zsh dumps core after cap_get_proc() removal In-Reply-To: <20020616124652V.haro@h4.dion.ne.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: > > > #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 > > 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