From owner-freebsd-current@FreeBSD.ORG Tue Oct 6 11:04:04 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CDAB106566B; Tue, 6 Oct 2009 11:04:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id EC0538FC19; Tue, 6 Oct 2009 11:04:03 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n96B3xh6016246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Oct 2009 14:04:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n96B3xoh007745; Tue, 6 Oct 2009 14:03:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n96B3xVC007744; Tue, 6 Oct 2009 14:03:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 6 Oct 2009 14:03:59 +0300 From: Kostik Belousov To: Boris Samorodov Message-ID: <20091006110359.GH2259@deviant.kiev.zoral.com.ua> References: <78132948@bb.ipt.ru> <20091005190710.GW2259@deviant.kiev.zoral.com.ua> <22767770@bb.ipt.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nwn6wlxaqfRJxJFc" Content-Disposition: inline In-Reply-To: <22767770@bb.ipt.ru> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: bz@freebsd.org, freebsd-current@freebsd.org Subject: Re: abort acroread at today's -current, but OK at 03-Oct -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 11:04:04 -0000 --Nwn6wlxaqfRJxJFc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 06, 2009 at 12:49:09PM +0400, Boris Samorodov wrote: > On Mon, 5 Oct 2009 22:07:10 +0300 Kostik Belousov wrote: > > On Mon, Oct 05, 2009 at 10:46:51PM +0400, Boris Samorodov wrote: > > >=20 > > > today I updated my computer from 03-Oct CURRENT to -current and > > > some ports were updated. And have got an error: > > > ----- > > > % acroread > > > zsh: abort acroread > > > % /bin/sh -x `which acroread` > > > + echo '' > > > + tr a-z A-Z > > > + ADOBE_LANG=3D'' > > > + : ENU > > > + BN=3Dacroread > > > + VN=3D'' > > > + [ -d /usr/local/Adobe/Reader8 ] > > > + ADOBE_VER=3D8 > > > + [ -d /usr/local/Adobe/Reader9 ] > > > + ACROBASE=3DAdobe/Reader8 > > > + BINPREFIX=3DAdobe/Reader8/bin > > > + MOZILLA_COMP_PATH=3D/..//usr/local/lib/linux-nvu > > > + export MOZILLA_COMP_PATH > > > + GTK_IM_MODULE=3Dxim > > > + export GTK_IM_MODULE > > > + UNAME_s=3DLinux > > > + export UNAME_s > > > + [ -x /usr/local/Adobe/Reader8/ENU/Adobe/Reader8/bin/acroread ] > > > + exec /compat/linux/bin/sh /usr/local/Adobe/Reader8/ENU/Adobe/Reader= 8/bin/acroread > > > zsh: abort /bin/sh -x `which acroread` > > > ----- > > >=20 > > > Loading old kernel gives a working acroread. What did I miss? > > > Thanks. >=20 > > Try this. >=20 > > diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c > > index 4ed7382..e958214 100644 > > --- a/sys/kern/imgact_elf.c > > +++ b/sys/kern/imgact_elf.c > > @@ -635,7 +635,8 @@ __elfN(load_file)(struct proc *p, const char *file,= u_long *addr, > > } > > =20 > > for (i =3D 0, numsegs =3D 0; i < hdr->e_phnum; i++) { > > - if (phdr[i].p_type =3D=3D PT_LOAD) { /* Loadable segment */ > > + if (phdr[i].p_type =3D=3D PT_LOAD && phdr[i].p_memsz !=3D 0) { > > + /* Loadable segment */ > > prot =3D 0; > > if (phdr[i].p_flags & PF_X) > > prot |=3D VM_PROT_EXECUTE; > > @@ -764,6 +768,8 @@ __CONCAT(exec_, __elfN(imgact))(struct image_params= *imgp) > > for (i =3D 0; i < hdr->e_phnum; i++) { > > switch (phdr[i].p_type) { > > case PT_LOAD: /* Loadable segment */ > > + if (phdr[i].p_memsz =3D=3D 0) > > + break; > > prot =3D 0; > > if (phdr[i].p_flags & PF_X) > > prot |=3D VM_PROT_EXECUTE; >=20 > Thanks. Unfortunately there is no changes. Acroread works only with > security.bsd.map_at_zero=3D1. I see, with the help from bz@. Do you have amd64 or i386 system ? Anyway, please try http://people.freebsd.org/~kib/misc/pie.3.patch --Nwn6wlxaqfRJxJFc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkrLJB0ACgkQC3+MBN1Mb4gH+wCeINesfp8Ee4WEpfsL3qEeLsOB NToAn2blq3kBdBlvqt7GcWMtXNXdPn00 =5nO9 -----END PGP SIGNATURE----- --Nwn6wlxaqfRJxJFc--