X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4923F384A026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1614992848; bh=sTUFBQpLhUSCQ6UVSNsqFxFp5zaodnGIy1Ou/tFK4Hs=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=FaUlzBRXoigdkMWqzF9RWonE7qUdyiaNf/9uWPsBo6s9L6FS0yGD9K95rLy2S1Gay 6XpEQonhX2dfYi5LOvSOV0XvqoozxysiHATIFPR9JdozUCBBWxoxBpf4vDraPyhYh/ njHFLVhrxs9gADH8cE3xI3sUM4wWxPfnuy45GiuI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 71F643857010 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 12616mK9018188 X-Nifty-SrcIP: [118.243.85.178] Date: Sat, 6 Mar 2021 10:06:57 +0900 To: cygwin AT cygwin DOT com Subject: Re: stack grow direction wrongly detected Message-Id: <20210306100657.135a86aacf935a7f9e9a7847@nifty.ne.jp> In-Reply-To: <b9285d42-1400-dabf-83a5-2e244f1efe81@gmail.com> References: <6eded5d3-93f3-7c98-5055-ee5ac2566bc8 AT gmail DOT com> <cb59246a-5dd9-b45d-96da-45ba392b2978 AT SystematicSw DOT ab DOT ca> <b9285d42-1400-dabf-83a5-2e244f1efe81 AT gmail DOT com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com> List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> List-Archive: <https://cygwin.com/pipermail/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help> List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>, <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com> Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com> On Fri, 5 Mar 2021 21:29:49 +0100 Marco Atzeri wrote: > guile 1.8.8 is 10 years old, but it is still used by some programs > as all the guile 2.x series were slower. > the code on recent guile 3.0.x is different, with no recursion at all. > > SCM_I_GSC_STACK_GROWS_UP=0 > AC_RUN_IFELSE([AC_LANG_SOURCE( > [AC_INCLUDES_DEFAULT > int > find_stack_direction (int *addr, int depth) > { > int dir, dummy = 0; > if (! addr) > addr = &dummy; > *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; > dir = depth ? find_stack_direction (addr, depth - 1) : 0; ^^^^^^^^^^^^^^^^^^^^ This calls find_stack_direction() recursively, isn't it? > return dir + dummy; > } > > int > main (int argc, char **argv) > { > return find_stack_direction (0, argc + !argv + 20) < 0; > }])], Recursion depth seems to be increased to more than 20. -- Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple