From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 393593858400 for ; Fri, 26 Nov 2021 04:48:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 393593858400 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id qCuVmOSW9ztEjqT9km4ItF; Fri, 26 Nov 2021 04:48:16 +0000 Received: from [192.168.1.105] ([68.147.0.90]) by cmsmtp with ESMTP id qT9km84xjd5UnqT9kmMYdT; Fri, 26 Nov 2021 04:48:16 +0000 X-Authority-Analysis: v=2.4 cv=FrgWQknq c=1 sm=1 tr=0 ts=61a06710 a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=uYT-Tk0qkVT609LjNaIA:9 a=QEXdDO2ut3YA:10 a=2VBt_P1JwLMA:10 a=_FVE-zBwftR9WsbkzFJk:22 Message-ID: <67402271-05db-11f3-97e9-661083137ef1@SystematicSw.ab.ca> Date: Thu, 25 Nov 2021 21:48:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Reply-To: cygwin-apps@cygwin.com Subject: Re: gnulib m4/threadlib.m4 bug crashing package tests Content-Language: en-CA To: cygwin-apps@cygwin.com References: <04185622-bfb1-9828-a720-716fbdd2e0ab@cornell.edu> From: Brian Inglis Organization: Systematic Software In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfP3OAdOR7Mcg1W5a22YuVNCjyhBMdMAN5UY3IDHbTTfBmjID1lYj63PuoPGcvg+U1BiGIIuz3e7UgCSuJfnOB7sGO15xO2L7irhqUdG92qGcalJClm4j NVfxVwpx3weB7okJhHQkRhsNw2Aqz0np278VKn2C2sFLuGthvMzn8KhuGyIVP5Yeo25okwxYbyXO+YFzJJ1VbR1fUkgHZZ5XuRs= X-Spam-Status: No, score=-1165.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2021 04:48:18 -0000 On 2021-11-25 11:25, Yaakov Selkowitz via Cygwin-apps wrote: > On Thu, 2021-11-25 at 11:26 -0500, Ken Brown via Cygwin-apps wrote: >> On 9/29/2021 7:46 PM, Brian Inglis wrote: >>> There is a gnulib bug in threadlib.m4 from at least serial 29 to serial >>> 31 that incorrectly configures Cygwin support of weak references. >>> >>> This leads to SIGSEGV stack smashing crashes with no backtrace >>> @ 0x00000000100000000 or 0x0000000500000000 etc. normally during tests. >>> >>> Akim Demaille on bug-bison referred the issue to bug-gnulib where >>> Bruno Haible diagnosed and patched the problem to appear in >>> m4/threadlib.m4 serial 32: >>> >>> * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Force a "guessing no" result on >>> Cygwin >>> https://lists.gnu.org/archive/html/bug-gnulib/2021-09/msg00068.html >>> [gl_cv_have_weak="guessing no"] >>> >>> The patch has now been applied to bison, wget, and wget2, and I >>> have attached my patches for the copies in those packages, in >>> case anyone else has this issue in their (mainly GNU) packages >>> which may incorporate by inclusion recently updated gnulib m4 >>> macros used in autotools builds. >> I'm writing to reinforce this warning. I just spent 2 days trying >> to debug mysterious texinfo crashes that were caused by this bug. I >> could have saved a lot of time if I had remembered your email and >> had checked the gnulib version being used by texinfo. >> For anyone else who bumps into this, gdb and strace are of no use >> in debugging this crash. I finally thought to look at the >> stackdump file, and the second address from the top was in a gnulib >> file. That was the key clue. > Add gl_cv_have_weak=no to cygconf? or gl_cv_have_weak="guessing no" or patch [gl_cv_have_weak="guessing no"] above -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]