delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/03/06/04:12:53

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEC3A3874C06
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1615021971;
bh=YEjYi6n1PA5meACMhbhRXYiIlNuES4wR4j30Aflu2wY=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=MvMIwINzP0Jj4HxR6jmfIVrF0ENHExdbv32FZwzIHDdH3vNywcL5IRVnbKe5VCbm4
QIb5MWSsO8QbBzSnXYU4qoJa/+mDP94vfr1oOhnfaxEFyxCYEXm8GxtkU6hBgsYA6e
mFHxebmrYW78X1sNTEKNZ8AqAR2fszhqqIcDmQrg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3C15438618CC
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=24Qh1KMJ0lbkCNLbGw30a5uiJuznVELvZI656oKUfRE=;
b=ptEWjYeh1lyvcEAEqV4eD6brQDpCKfQ2IFomAgsWdZ8Zrmsa4uwOEv+S3cYm7ahvrD
iQBFnSr25uQqHXru+aNbQ49IXy45CC756YLhz4oWSKCt5TJUXKSMNNxAolFKft4jCAaX
R/+LN21pkx7XYjQwTfF26D5Je5k5X6MUm+idq+dQSSAsN6KdUmBmcy/yPR7yuK7gGyj2
w1U40ESv3qAHPtsmT3267LV0TTjzyisTki9VyUYgujeyzOvjOGkGMQgrAHjgjiTcrY1k
pOAsLPSWMLqUSKWOqDNVvkG1u8j0fuBkxEw2HpF9RuJ56+v4y8Ab99AMhhidevlB74aD
waAQ==
X-Gm-Message-State: AOAM530hnAq5No0MaBNhfF5G2rdsYxL0DHzcPzKVQDJY4GJx4PV/1wok
EgzDBtJvasT7GtTUfrV+jF4OhGNXA7pYTA==
X-Google-Smtp-Source: ABdhPJzud7/SR5kz3wahvHOaK9e0l8GBmVfsZKCO+YcDSNtfchYFYeyHDNTkf/X3e0ltVlKSTqLXbA==
X-Received: by 2002:a17:906:7f84:: with SMTP id
f4mr5951048ejr.525.1615021967397;
Sat, 06 Mar 2021 01:12:47 -0800 (PST)
Subject: Re: stack grow direction wrongly detected
To: cygwin AT cygwin DOT 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>
<20210306100657 DOT 135a86aacf935a7f9e9a7847 AT nifty DOT ne DOT jp>
Message-ID: <1cdde1c9-6db4-dff0-4488-28d8245d8d51@gmail.com>
Date: Sat, 6 Mar 2021 10:12:46 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.8.0
MIME-Version: 1.0
In-Reply-To: <20210306100657.135a86aacf935a7f9e9a7847@nifty.ne.jp>
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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
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: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 06.03.2021 02:06, Takashi Yano via Cygwin wrote:
> On Fri, 5 Mar 2021 21:29:49 +0100
> Marco Atzeri wrote:

>>     dir = depth ? find_stack_direction (addr, depth - 1) : 0;
>                     ^^^^^^^^^^^^^^^^^^^^
> This calls find_stack_direction() recursively, isn't it?

yeah. Never write when tired ...

> 
>>     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.

probably to produce a portable result without going inline



--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019