X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=Evsywpx5QRMXh/hjhsL70/PAYmrqPTyMZX7gphK8pbn
	lBnwpoQEMiqHDXst8EOtGc+uhvUkZ7xtucoCU4mRDr+9yVq/HLFDg/UFMkeC/A55
	vSFTuGhDNDHfTv0r+VL2vLhb/4qH2GTZBCYGKFlRWnA+atMXPSolSl7LALTnVurE
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=yd4OnULigk8EEx//8MFWgubTkhw=; b=mfB/lmaRl/5moAJm4
	lG6CpQYfd12Lwp8sZY3OkX2WYExMAkO0uKFqQ0KqhY9DznVmSnFtH3K8leSk/5XF
	ij4WxPnzWcspsJXBDA366qDsDPrT1h/ib+yWkaifz6E///jkOuTSSFPaPXlzNiSH
	19hgIKbHoehKnV0REhVeD7SxiA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-10.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=D*jp, H*MI:sk:08ac898, H*MI:sk:878sluh, H*MI:sk:0fb5712
X-HELO: conssluserg-01.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 00TDkmGv011089
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;	s=dec2015msa; t=1580305609;	bh=wlw3mT3Svmc1Vg6yGsA2ZQxNnG9O5Iwcoe8YI8HFUC4=;	h=Date:From:To:Subject:In-Reply-To:References:From;	b=gh9HqT9jzBOEfAkQNwuMKz34MkLMejD1ue8mA+NzMEd1/+G7pyhS6FRmmYJOS5yon	 R/WdjyKW6KnuJuPolv+D3Z9PRGuzVTViXI8ugwliIoJqarPqaQfSP+D6196dg1oIwn	 TX/sZd3ILy4bUgJpgzzPtU7UayuP1P8VZz6x/hsCYQccvxrjkZmxgG74E2LYmX6W3P	 iPEgh0Y0THesLVlsfd4ExnsmVdmC5zTm3eKW/6al63s4VQYd556HEZ30hrabyemZ1J	 bRMZeUYEvYyr6Mo9WinUr43H87f+6Hj1chMkr6FSzgIFzqu702E9agKpZWxpILHn57	 w4YB5tNpmqZ+g==
Date: Wed, 29 Jan 2020 22:46:53 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: headache on build repeatibility: octave vs BLODA ?
Message-Id: <20200129224653.b3238736661d3c95fc30ee5f@nifty.ne.jp>
In-Reply-To: <9e66f9f1-109f-7a3c-2c86-abd3ef7fc628@gmail.com>
References: <2904b4fa-6349-bd3e-c4ff-4b32a0bb3838@gmail.com>	<87y2tvs278.fsf@Rainer.invalid>	<9b370970-fcfe-cca9-321f-973de777642a@gmail.com>	<878sluhcc1.fsf@Otto.invalid>	<08ac898e-e7f9-c8e9-91ba-d4ee33f2e27c@gmail.com>	<0fb5712c-7d57-d5cb-56b7-3a0d2f44d8a2@gmail.com>	<20200127203346.1c8e3657d7283e3aa2c617d8@nifty.ne.jp>	<85ddac25-0b4a-5e01-7885-0d2855c37a45@gmail.com>	<20200129094427.GI3549@calimero.vinschen.de>	<9e66f9f1-109f-7a3c-2c86-abd3ef7fc628@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Hi Marco,

On Wed, 29 Jan 2020 13:19:11 +0100
Marco Atzeri wrote:
> As Octave uses gnulib, it is possible that the changes in MS are causing
> a different subset of gnulib to be used than before, may be exposing
> a latent bug or race.
> 
> Unfortunately my old build tree was polluted by mistake, so I can
> not directly compare a good build tree versus a failing one.

I found suspicious difference between the working build and the
not-working build.

The not-working build has fflush.o, fseek.o and fseeko.o in
build/libgnu/.libs
directory, while the working build does not.

Also, cygoctave-7.dll of not-working build exports rpl_fflush,
rpl_fseek and rpl_fseeko, while that of the working build does
not.

As a test, I used following patch to forcibly remove the code
setting REPLACE_FSEEKO to 1 in configure script, and rebuilt
octave. This works without segmentation fault.

I do not look into the reason why this difference causes yet.

I would be happy if this could help.

--- m4/fseeko.m4.orig   2020-01-29 21:39:37.280507900 +0900
+++ m4/fseeko.m4        2020-01-29 21:36:29.263747100 +0900
@@ -30,16 +30,19 @@
     HAVE_FSEEKO=0
   else
     if test $WINDOWS_64_BIT_OFF_T = 1; then
-      REPLACE_FSEEKO=1
+      dnl REPLACE_FSEEKO=1
+      REPLACE_FSEEKO=0
     fi
     if test $gl_cv_var_stdin_large_offset = no; then
-      REPLACE_FSEEKO=1
+      dnl REPLACE_FSEEKO=1
+      REPLACE_FSEEKO=0
     fi
     m4_ifdef([gl_FUNC_FFLUSH_STDIN], [
       gl_FUNC_FFLUSH_STDIN
       case "$gl_cv_func_fflush_stdin" in
         *yes) ;;
-        *) REPLACE_FSEEKO=1 ;;
+        dnl *) REPLACE_FSEEKO=1 ;;
+        *) REPLACE_FSEEKO=0 ;;
       esac
     ])
   fi
--- m4/fflush.m4.orig   2020-01-29 21:40:07.546238000 +0900
+++ m4/fflush.m4        2020-01-29 21:38:02.079793700 +0900
@@ -16,7 +16,8 @@
   gl_FUNC_FFLUSH_STDIN
   case "$gl_cv_func_fflush_stdin" in
     *yes) ;;
-    *) REPLACE_FFLUSH=1 ;;
+    dnl *) REPLACE_FFLUSH=1 ;;
+    *) REPLACE_FFLUSH=0 ;;
   esac
 ])
 

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

