From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 13 13:50:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2A531893 for ; Tue, 13 Aug 2013 13:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 155922887 for ; Tue, 13 Aug 2013 13:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7DDo1vZ022462 for ; Tue, 13 Aug 2013 13:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7DDo13u022460; Tue, 13 Aug 2013 13:50:01 GMT (envelope-from gnats) Date: Tue, 13 Aug 2013 13:50:01 GMT Message-Id: <201308131350.r7DDo13u022460@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Rafal W." Subject: Re: bin/181263: grep crashes at memchr/__sfvwrite when using colors X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Rafal W." List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2013 13:50:02 -0000 The following reply was made to PR bin/181263; it has been noted by GNATS. From: "Rafal W." To: bug-followup@freebsd.org Cc: Rafal Wieczorek Subject: Re: bin/181263: grep crashes at memchr/__sfvwrite when using colors Date: Tue, 13 Aug 2013 14:46:58 +0100 --bcaec520f4d5be5d4e04e3d47ac5 Content-Type: text/plain; charset=ISO-8859-1 Backtraces: Unix: Program received signal SIGSEGV, Segmentation fault. 0x0000000801007ff2 in memchr (s=0x61167a, c=10, n=18446744073707490297) at /usr/src/lib/libc/string/memchr.c:48 48 if (*p++ == (unsigned char)c) (gdb) bt #0 0x0000000801007ff2 in memchr (s=0x61167a, c=10, n=18446744073707490297) at /usr/src/lib/libc/string/memchr.c:48 #1 0x0000000801007b03 in __sfvwrite (fp=0x801247770, uio=0x7fffffffd8f0) at /usr/src/lib/libc/stdio/fvwrite.c:170 #2 0x0000000801007698 in fwrite (buf=0x608c03, size=18446744073709551606, count=1, fp=0x801247770) at /usr/src/lib/libc/stdio/fwrite.c:95 #3 0x0000000000405498 in printline (line=0x7fffffffdb70, sep=58, matches=0x7fffffffd990, m=9) at /usr/src/usr.bin/grep/util.c:500 #4 0x0000000000404f51 in procline (l=0x7fffffffdb70, nottext=0) at /usr/src/usr.bin/grep/util.c:381 OSX: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_c.dylib 0x00007fff8a8da1b3 memchr + 15 1 libsystem_c.dylib 0x00007fff8a90b45a __sfvwrite + 578 2 libsystem_c.dylib 0x00007fff8a90b861 fwrite + 114 3 grep 0x000000010a4a3138 0x10a4a0000 + 12600 4 grep 0x000000010a4a2988 0x10a4a0000 + 10632 5 grep 0x000000010a4a1c28 0x10a4a0000 + 7208 6 libdyld.dylib 0x00007fff8daf77e1 start + 1 --bcaec520f4d5be5d4e04e3d47ac5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Backtraces:

Unix:

Program received signal SIGSEGV, Segmentation fault.
=A0 0x0= 000000801007ff2 in memchr (s=3D0x61167a, c=3D10, n=3D18446744073707490297) = at /usr/src/lib/libc/string/memchr.c:48
=A0 48 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (*p++ = =3D=3D (unsigned char)c)
=A0 (gdb) bt
=A0 #0 =A00x0000000801007ff2 in= memchr (s=3D0x61167a, c=3D10, n=3D18446744073707490297) at /usr/src/lib/li= bc/string/memchr.c:48
=A0 #1 =A00x0000000801007b03 in __sfvwrite (fp=3D0= x801247770, uio=3D0x7fffffffd8f0) at /usr/src/lib/libc/stdio/fvwrite.c:170<= br> =A0 #2 =A00x0000000801007698 in fwrite (buf=3D0x608c03, size=3D184467440737= 09551606, count=3D1, fp=3D0x801247770)
=A0 =A0 =A0 at /usr/src/lib/libc/= stdio/fwrite.c:95
=A0 #3 =A00x0000000000405498 in printline (line=3D0x7f= ffffffdb70, sep=3D58, matches=3D0x7fffffffd990, m=3D9)
=A0 =A0 =A0 at /usr/src/usr.bin/grep/util.c:500
=A0 #4 =A00x000000000040= 4f51 in procline (l=3D0x7fffffffdb70, nottext=3D0) at /usr/src/usr.bin/grep= /util.c:381

OSX:
Th= read 0 Crashed:: Dispatch queue: com.apple.main-thread
0 =A0 libsystem_c.dylib =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x00007fff8a8da1b3 memc= hr + 15
1 =A0 libsystem_c.dylib =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x00007fff8a= 90b45a __sfvwrite + 578
2 =A0 libsystem_c.dylib =A0 =A0 =A0 =A0 =A0 =A0 = =A0 0x00007fff8a90b861 fwrite + 114
3 =A0 grep =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00x000000010a4a3138 0x10a4a0000 + 12600
4 =A0 grep =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00x0000000= 10a4a2988 0x10a4a0000 + 10632
5 =A0 grep =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A00x000000010a4a1c28 0x10a4a0000 + 7208
6 =A0 libd= yld.dylib =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x00007fff8daf77e1 start + 1<= /font>
--bcaec520f4d5be5d4e04e3d47ac5--