From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 25 14:53:31 2021 Received: (at submit) by debbugs.gnu.org; 25 Mar 2021 18:53:31 +0000 Received: from localhost ([127.0.0.1]:39625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPV6o-00085x-PW for submit@debbugs.gnu.org; Thu, 25 Mar 2021 14:53:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:54368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPV6n-00085o-9f for submit@debbugs.gnu.org; Thu, 25 Mar 2021 14:53:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPV6m-0005d8-Qo for bug-grep@gnu.org; Thu, 25 Mar 2021 14:53:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:34075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPV6j-0005Xn-Rr for bug-grep@gnu.org; Thu, 25 Mar 2021 14:53:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616698402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=KLU0q4lwcTkd/dPB/z3N0/PYw3QQMRaW88DQGaLLAb0=; b=fOyrPowwW4tzOyjzBTtITRvq3A7v1bth7aH/F6cmrDr1EkzfI+5nvHEKlfieY29qyAp35a eiSTu1wHmYBS7ZT9bYDSszZ8/0Q3m0Q9TQOWg6+iCrK+58Fgz9Ynjeeh+efNCu31WISR5g 1HfeiT5ctPBM3NgY7jA5B+LS+ZsBzDQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-600-pc3S6thwM_mwH2dxxJ16dw-1; Thu, 25 Mar 2021 14:53:20 -0400 X-MC-Unique: pc3S6thwM_mwH2dxxJ16dw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 76FC8801597 for ; Thu, 25 Mar 2021 18:53:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C0D87217B for ; Thu, 25 Mar 2021 18:53:19 +0000 (UTC) Received: from zmail22.collab.prod.int.phx2.redhat.com (zmail22.collab.prod.int.phx2.redhat.com [10.5.83.26]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2F0CB4BB7B for ; Thu, 25 Mar 2021 18:53:19 +0000 (UTC) Date: Thu, 25 Mar 2021 14:53:18 -0400 (EDT) From: Jaroslav Skarvada To: bug-grep@gnu.org Message-ID: <775738526.625006.1616698398887.JavaMail.zimbra@redhat.com> In-Reply-To: <594950660.578001.1616698024396.JavaMail.zimbra@redhat.com> Subject: grep-3.6 stack-overflow test fails on fedora rawhide MIME-Version: 1.0 X-Originating-IP: [10.40.195.162, 10.4.195.18] Thread-Topic: grep-3.6 stack-overflow test fails on fedora rawhide Thread-Index: /7mKCb4ai4E7q1VSmUmcAti8NJO7KQ== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jskarvad@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=jskarvad@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi, on fedora rawhide the stack-overflow test is failing for grep-3.6: ... stack-overflow: failed test: grep never printed "stack overflow" FAIL: stack-overflow .. Manual run: # ASAN_OPTIONS=help=true grep --version 2>&1 | grep -q AddressSanitizer # echo $? 1 # i=3;printf %0${i}0000d 0|tr 0 '(' > in # ./grep -E -f in Segmentation fault (core dumped) Running through valgrind: ==58== Process terminating with default action of signal 11 (SIGSEGV) ==58== Access not within mapped region at address 0x1FFE801FF8 ==58== Stack overflow in thread #1: can't grow stack to 0x1ffe801000 ==58== at 0x49A418A: peek_token (in /usr/lib64/libc-2.33.9000.so) ==58== If you believe this happened as a result of a stack ==58== overflow in your program's main thread (unlikely but ==58== possible), you can try to increase the size of the ==58== main thread stack using the --main-stacksize= flag. ==58== The main thread stack size used in this run was 8388608. Compiled with: CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' thanks & regards Jaroslav From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 07:28:28 2021 Received: (at 47396) by debbugs.gnu.org; 9 Aug 2021 11:28:28 +0000 Received: from localhost ([127.0.0.1]:56103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD3SG-0006ck-En for submit@debbugs.gnu.org; Mon, 09 Aug 2021 07:28:28 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD3SE-0006cW-QW for 47396@debbugs.gnu.org; Mon, 09 Aug 2021 07:28:28 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 96C951600F3; Mon, 9 Aug 2021 04:28:20 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 13_sLoqtiTJZ; Mon, 9 Aug 2021 04:28:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B52A81600F7; Mon, 9 Aug 2021 04:28:19 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Kmm25L443xwp; Mon, 9 Aug 2021 04:28:19 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 92CCC1600F3; Mon, 9 Aug 2021 04:28:19 -0700 (PDT) From: Paul Eggert To: Jaroslav Skarvada References: <775738526.625006.1616698398887.JavaMail.zimbra@redhat.com> Organization: UCLA Computer Science Department Subject: Re: bug#47396: grep-3.6 stack-overflow test fails on fedora rawhide Message-ID: <9549134e-a661-9d33-40ab-6e6cb906e29c@cs.ucla.edu> Date: Mon, 9 Aug 2021 04:28:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <775738526.625006.1616698398887.JavaMail.zimbra@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 47396 Cc: 47396@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 3/25/21 11:53 AM, Jaroslav Skarvada wrote: > on fedora rawhide the stack-overflow test is failing for grep-3.6: Thanks for reporting the problem. I'm not seeing it on Fedora 34 x86-64=20 with the current Savannah master grep: 23-penguin $ i=3D3;printf %0${i}0000d 0|tr 0 '(' > in 24-penguin $ ./grep -E -f in grep: stack overflow which is the expected behavior. We're planning to release a new grep, and it uses current Gnulib which=20 has some bug fixes in the stack-overflow area, so perhaps the bug is=20 fixed now. You can see if it works for you by building from a very=20 recent snapshot as per this email: https://lists.gnu.org/r/grep-devel/2021-08/msg00003.html I configured using the flags you specified: ./configure CFLAGS=3D'-O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g=20 -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security=20 -Wp,-_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS=20 -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong= =20 -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric=20 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'=20 LDFLAGS=3D'-Wl,-z,relro -Wl,--as-needed -Wl,-z,now=20 -specs=3D/usr/lib/rpm/redhoat/redhat-hardened-ld ' Since I was building from .git and warnings are enabled, I needed to=20 build with: make WERROR_CFLAGS=3D to prevent diagnostics from stopping the build. I did not have time to=20 investigate whether the warnings are bogus, as they usually are. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 18:29:25 2021 Received: (at 47396-done) by debbugs.gnu.org; 9 Aug 2021 22:29:25 +0000 Received: from localhost ([127.0.0.1]:57988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDDlt-0000tm-Ji for submit@debbugs.gnu.org; Mon, 09 Aug 2021 18:29:25 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDDlr-0000tY-6J for 47396-done@debbugs.gnu.org; Mon, 09 Aug 2021 18:29:24 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2DD2B160051; Mon, 9 Aug 2021 15:29:17 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 7VP-i5pWdo50; Mon, 9 Aug 2021 15:29:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 83A8D1600EF; Mon, 9 Aug 2021 15:29:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id a_Tei1diFdl6; Mon, 9 Aug 2021 15:29:16 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5F271160051; Mon, 9 Aug 2021 15:29:16 -0700 (PDT) Subject: Re: bug#47396: grep-3.6 stack-overflow test fails on fedora rawhide To: Jaroslav Skarvada References: <775738526.625006.1616698398887.JavaMail.zimbra@redhat.com> <9549134e-a661-9d33-40ab-6e6cb906e29c@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Mon, 9 Aug 2021 15:29:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 47396-done Cc: 47396-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 8/9/21 3:23 PM, Jaroslav Skarvada wrote: > I resolved it downstream by backporting gnulib patches from the gnulib > git [1], so I think the new grep release with the up-to-date gnulib > should resolve it. Thanks. Closing the grep bug report. From unknown Sun Jun 22 19:07:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 07 Sep 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator