From owner-freebsd-current@FreeBSD.ORG Wed Apr 25 19:13:09 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 49635106566C; Wed, 25 Apr 2012 19:13:09 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [IPv6:2a02:6b8:0:801::3]) by mx1.freebsd.org (Postfix) with ESMTP id BC4AC8FC19; Wed, 25 Apr 2012 19:13:08 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward13.mail.yandex.net (Yandex) with ESMTP id 578811414C4; Wed, 25 Apr 2012 23:13:07 +0400 (MSK) Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 1F94F7E035D; Wed, 25 Apr 2012 23:13:07 +0400 (MSK) Received: from 46.38.39.187.tel.ru (46.38.39.187.tel.ru [46.38.39.187]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id D6K0nvqO-D6KWegtL; Wed, 25 Apr 2012 23:13:06 +0400 Message-ID: <4F984CC2.5080404@passap.ru> Date: Wed, 25 Apr 2012 23:13:06 +0400 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111114 Thunderbird/8.0 MIME-Version: 1.0 To: Dimitry Andric References: <4F9703C9.8080503@FreeBSD.org> <4F98492D.8070006@FreeBSD.org> In-Reply-To: <4F98492D.8070006@FreeBSD.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org, =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= Subject: Re: segfault in vfscanf(3): clang and __restrict usage 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: Wed, 25 Apr 2012 19:13:09 -0000 25.04.2012 22:57, Dimitry Andric пишет: > On 2012-04-24 21:49, Jean-Sébastien Pédron wrote: >> Hi everyone, >> >> vfscanf(3) in HEAD (r234606) segfaults when compiled with clang. For >> instance, here is a call made in cmake which crashes: >> fscanf(f, "%*[^\n]\n"); > > Using r234549 here, everything compiled with clang, but I cannot make > that statement crash, whatever I do. Do you have a specific input file > which crashes it? ----- % uname -a FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r234635: Tue Apr 24 11:41:32 SAMT 2012 bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX i386 % sudo gdb smartd smartd.core GNU gdb 6.1.1 [FreeBSD] [...] #0 0x33ebdc2e in vfscanf () from /lib/libc.so.7 (gdb) ----- I think that cupsd also suffer from the bug. BTW, I have the system and almost all ports compiled (tomorrow and today) with clang. -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve