From owner-freebsd-current@FreeBSD.ORG Sat Nov 7 12:58:34 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 5AC20106566C for ; Sat, 7 Nov 2009 12:58:34 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 1579D8FC08 for ; Sat, 7 Nov 2009 12:58:33 +0000 (UTC) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1N6ksC-0003mL-08; Sat, 07 Nov 2009 15:58:32 +0300 To: Kostik Belousov References: <65275688@bb.ipt.ru> <20091103154747.GC2331@deviant.kiev.zoral.com.ua> <77755531@h30.sp.ipt.ru> <20091103214032.GF2331@deviant.kiev.zoral.com.ua> <99188273@bb.ipt.ru> <20091104172931.GI2331@deviant.kiev.zoral.com.ua> From: Boris Samorodov Date: Sat, 07 Nov 2009 15:58:31 +0300 In-Reply-To: <20091104172931.GI2331@deviant.kiev.zoral.com.ua> (Kostik Belousov's message of "Wed\, 4 Nov 2009 19\:29\:31 +0200") Message-ID: <20586408@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org Subject: Re: [current] acroread: SIGSEGV 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: Sat, 07 Nov 2009 12:58:34 -0000 On Wed, 4 Nov 2009 19:29:31 +0200 Kostik Belousov wrote: > On Wed, Nov 04, 2009 at 05:19:10PM +0300, Boris Samorodov wrote: > > On Tue, 3 Nov 2009 23:40:32 +0200 Kostik Belousov wrote: > > > On Wed, Nov 04, 2009 at 12:37:08AM +0300, Boris Samorodov wrote: > > > > On Tue, 3 Nov 2009 17:47:47 +0200 Kostik Belousov wrote: > > > > > On Tue, Nov 03, 2009 at 05:05:11PM +0300, Boris Samorodov wrote: > > > > > > Hello List, > > > > > > > > > > > > print/acroread8 doesn't work for me at 9-CURRENT: > > > > > > ----- > > > > > > % uname -a > > > > > > FreeBSD host.ipt.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Mon Nov 2 15:15:13 MSK 2009 root@host.ipt.ru:/usr/obj/usr/src/sys/HOST > > > > > > % sysctl compat.linux > > > > > > compat.linux.oss_version: 198144 > > > > > > compat.linux.osrelease: 2.6.16 > > > > > > compat.linux.osname: Linux > > > > > > ------ > > > > > > > > > > > > Setting security.bsd.map_at_zero to 1 doesn't change anything. There is > > > > > > nothing at console/log files. Here is the tail of linux_kdump: > > > > > > ----- > > > > > > ... > > > > > > 78586 ld-2.9.so CALL linux_open(0x16fcd80,0,0x80d93000) > > > > > > 78586 ld-2.9.so NAMI "/compat/linux/var/db/fontconfig/bde7b0a0234dc04d93e9475cbf44698a-x86.cache-2" > > > > > > 78586 ld-2.9.so NAMI "/var/db/fontconfig/bde7b0a0234dc04d93e9475cbf44698a-x86.cache-2" > > > > > > 78586 ld-2.9.so RET linux_open JUSTRETURN > > > > > > 78586 ld-2.9.so CALL linux_open(0x16fcd80,0,0x80d93000) > > > > > > 78586 ld-2.9.so NAMI "/compat/linux/home/bsam/.fontconfig/bde7b0a0234dc04d93e9475cbf44698a-x86.cache-2" > > > > > > 78586 ld-2.9.so NAMI "/home/bsam/.fontconfig/bde7b0a0234dc04d93e9475cbf44698a-x86.cache-2" > > > > > > 78586 ld-2.9.so RET linux_open 4 > > > > > > 78586 ld-2.9.so CALL linux_fstat64(0x4,0xbfbfcf8c,0x2e482ff4) > > > > > > 78586 ld-2.9.so RET linux_fstat64 0 > > > > > > 78586 ld-2.9.so CALL read(0x4,0x16fe160,0x60) > > > > > > 78586 ld-2.9.so GIO fd 4 read 96 bytes > > > > > > "\^D\M-|\^B\M-|\^B\0\0\0`\0\0\0 \0\0\0P\0\0\0\0\0\0\0P\0\0\0\^[b\M-TJ/usr/local/lib/X11/fonts/encodings/large\0\0\0\0\0\0\0\0\0\0\ > > > > > > \0\0\0\0\0\0\^Q\0\0\0\0\0\0\000" > > > > > > 78586 ld-2.9.so RET read 96/0x60 > > > > > > 78586 ld-2.9.so CALL close(0x4) > > > > > > 78586 ld-2.9.so RET close 0 > > > > > > 78586 ld-2.9.so CALL linux_mmap2(0,0x25000,0x3,0x22,0xffffffff,0) > > > > > > 78586 ld-2.9.so RET linux_mmap2 833982464/0x31b59000 > > > > > > 78586 ld-2.9.so PSIG SIGSEGV caught handler=0x83814b6 mask=0x0 code=0x0 > > > > > > 78586 ld-2.9.so CALL linux_rt_sigaction(0x6,0xbfbfcbf0,0xbfbfcb64,0x8) > > > > > > 78586 ld-2.9.so RET linux_rt_sigaction 0 > > > > > > 78586 ld-2.9.so CALL linux_exit_group(0x1) > > > > > > > > > It would be interesting to see which address faulted. > > > > > If not, can you do search for a kernel revision that broke acroread ? > > > > > Good starting points are r198507 and r198554. > > > > > > > > Were those revisions MFCed to RELENG_8_0? I've got the same for 8.0: > > > > ----- > > > > % uname -a > > > > FreeBSD h30.sp.ipt.ru 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Nov 1 18:57:33 MSK 2009 root@h30.sp.ipt.ru:/usr/obj/usr/src/sys/IN > > > > DUS i386 > > > > ----- > > > No. > > > It might be easier to bisect on releng/8.0 then. > > > > OK, I've found out that acroread works at 8-RC1 as of 2009-10-04 > > (with security.bsd.map_at_zero=1): > > ----- > > h31% uname -a 16:24 pts/0 > > FreeBSD h31.sp.ipt.ru 8.0-RC1 FreeBSD 8.0-RC1 #1: Sun Oct 4 02:19:42 MSD 2009 bsam@h31.sp.ipt.ru:/usr/obj/usr/src/sys/SHURAM i386 > > h31% sysctl security.bsd.map_at_zero 16:24 pts/0 > > security.bsd.map_at_zero: 1 > > ----- > > > > Can you give me suspisiuos commits to RELENG_8 to test (I don't have > > time ATM to do bisect builds)? > I do not have good guess. I would put a finger in the direction of the > imgact_elf.c changes. But, since the issue appears at run-time, after > the binary started, I doubt it. With the help from mezz@ it was found out that it's not a kernel but a new fontconfig (from marcurcom site) is to blame. Downgrading of fontconfig from 2.7.3 to 2.6.0 (from current ports tree) made acroread to work again. Seems not to be a kernel fault. Thanks for your help. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve