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:from:reply-to:to:subject:date:message-id
	:content-type:content-transfer-encoding:mime-version; q=dns; s=
	default; b=ZTgP3u8p4ptw26sNPiXdPBBpMxuTfvGbtDkhDalKDpJsjQlnI8nWs
	nIn0KZFb6UXMRWyLYJC4SvntkF4SbWEUSCSR4mhoqa0XxDGDVr2RNpFTya8GKjOb
	NTZesqayFAHyGuUNy7NoL4P/47vHVbih+okJuleLvxTi3y+7SBS6KI=
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:from:reply-to:to:subject:date:message-id
	:content-type:content-transfer-encoding:mime-version; s=default;
	 bh=te1a90ehezCWUXiUqmQEupC8W/I=; b=usUrq6M4MGfRKNZdkgICtQBeD+nv
	FDxPV1WEVRTZFxKSeBNrYmMCbe+ONTvKeX/qCryUYCI8+1LVug7nrwQolfldFmIl
	HyipFagcSP1ikiny4AmgkFJxa7teLapCWDZ+JfYPdfVzcWYtFxXvlX20h+Ke8QUq
	NW/OXy5kO/5vnFw=
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=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=00000000000, appearance
X-HELO: nihcesxwayst06.hub.nih.gov
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;  d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1573192550;  x=1604728550;  h=from:to:subject:date:message-id:   content-transfer-encoding:mime-version;  bh=Jny5G+DnsSEgFCxfRSwE0o7he98sAvgcar3KuwakQ8g=;  b=cre8C5tCdKAJXxqHp6g8XwT1EV/tuYmc2BXsz70+hQZNykDogtIJV6Ix   6ol+cv3weFagsp0ke5Bo4Sjj1nlyc061UWNaFnytBQg1kfWVjD/Hr5wcF   R194+XFm8thL7YNKWz0ZqGSx8JgLNIqvU0hygdnYl7df1mG9E3q05648G   zf8+L1vpv0sX+G3QGZh37UcCLxlA2qqHBJKxdvdbYYEWnR9HcTndpfWGo   iLqy7/Sxi8sd47RWo0VOcxqqD67QfbsxyGGZDyT5hDTGPuYSP721Hr8rD   K1AZPcgleIUvaAM8HeiSE7qqqo5WA+by5Fk7TDGVPaZXqWKQq4O6Nbowt   w==;
IronPort-SDR: Qlaf4UGfSiky2/b4xovzr1DR1BnlLLG07ru/dgCOCjLWa8JuQ4A/AOv0wgH2OW55OtpjfyTvcS PzfhC5qhdwZQ==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ys4h3o2oDuFYyJJEiIstde1BX9yPDA1w9Q4nM3umAOPmlae7G2ymo+9S+gmzf3rTwAB/s6VhRmKIqKw8+Kuy2jIIsQ/nboMrd8kdDgR6MvFzqW8Yhayu/6gf+I8RpvvDXRLyAP6zrGYSVtgyyCv0UA4+1cjSJ8BIDigY69yuGXNPTGAJZgYzz18iq/MZI/LFkfJo4Cq/bApGEgEXTTyNsMw+790aG3A/IvRQ1Ov5FC5PanLbkjf43XlTcZ2zfFx4oGcLNm6PwUaaL8hnWqpc7T9DTAOuwpr6et0r6+R0hE/WKv8Bk0bjkqpZmzgnltmtoMr5km5xx0u88o/4aTsSqw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jny5G+DnsSEgFCxfRSwE0o7he98sAvgcar3KuwakQ8g=; b=M+tJQZoNjy0PFa+pk/s9d4ld8L44Wufj6LiUFIX+qVC4DYq+2jefCUnhebDPxYmtF+upa14ApNvYAJ8rtrtjnRxB4x3LdXK97KvyixzcGgsTFmj4693vZxkZ740FTzJcYyRHQT3Dm+TAJ+XV/XCnZLmf81sHAd0YYGQS0y2sVNPP81cqibyNOm9u289pCB9JXBbv2MD5B4ZGRq9ubf6+4F2g4fSxde2X98EbP80xAU6g0bIO0wR3BXWg26fY0S6j3VrlGPzJ3ms+6y4Fjr73sylg8ekJ2VwlGorJ63bFFahFzk3rAbHnuygLckcL1wC+6vdV3XPKOVCcH2JaSk+UtA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.onmicrosoft.com; s=selector2-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jny5G+DnsSEgFCxfRSwE0o7he98sAvgcar3KuwakQ8g=; b=RwoHUIFZt30qYPm8k/dra9ysE+Ge89EjyO52xcCatQPw8jv4dY0vrKunS1HaWp2ERVKg8JOawI2HpbOB3lfoYJB483OHgJw/s5IQSiDxNfgIDiPp9mJDUpIKWbj/vQ5SwTT4kXdMnBfnIIbvDCVuE5svYf7ncV2DvLh83JJj2P4=
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin@cygwin.com>
Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Stack trace question
Date: Fri, 8 Nov 2019 05:55:46 +0000
Message-ID: <BY5PR09MB3972C23692B35F20CBB63948A57B0@BY5PR09MB3972.namprd09.prod.outlook.com>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr@ncbi.nlm.nih.gov;
x-ms-oob-tlc-oobclassifiers: OLM:6108;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 0+LJYKifYiVLfi0Oy8EK+MZK0kA3nLMbz0tP3nsjiyVw/bIUXP8/vdvLn8DyTAH1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xA85uP9t004233

Hi all,

I have the following stack trace (64 bit Cygwin app), and I can't figure how the same frame RBP at 000FFFFC7B0 can be listed 3 consecutive times for various functions (RIPs).  Also if I follow the stack trace with gdb (and the trace is all within Cygwin.dll based at 180040000), it does not make any sense (it was a simple abort() in the application due to some external condition; no segfault or any other nasty kind of stuff)...  The program does not use SYSV IPC at all (so the appearance of shmat() is highly suspicious).

Can there be something wrong as to how the stack trace gets generated?

Any insight will be highly appreciated.

Thanks,
Anton

P.S. I know it's a bit old Cygwin but source and binaries are all consistent.

Stack trace:
Frame        Function    Args
000FFFFC090  0018005D20C (000FFFFE3F4, 00000000000, 000FFFFC118, 000FFFFDE50)
000FFFFC130  0018005E81B (00000000064, 00000000000, 00000000154, 00000000000)
000FFFFC380  001801211AD (00000000001, 000FFFFC530, 000FFFFD680, 000FFFFC680)
000FFFFC670  0018011DB41 (000FFFFC560, 00000000000, 00000000000, 0018013F911)
000FFFFC7B0  0018011DFE9 (001800F19E0, 00000000000, 001004E4A3B, 00000000006)
000FFFFC7B0  0018011E1BA (001004DB1BB, 001004DA95A, 000FFFFCDF0, 000FFFFC7B0)
000FFFFC7B0  0018011E47F (00000001000, 00000000000, 001004E4A3B, 001004E2516)

(gdb) info line *0x0018005D20C
Line 980 of "/usr/src/debug/cygwin-2.11.2-1/winsup/cygwin/environ.cc"
   starts at address 0x18005d1ea <spenv::retrieve(bool, char const*)+538>
   and ends at 0x18005d223 <spenv::retrieve(bool, char const*)+595>.
(gdb) info line *0x0018005E81B
Line 1153 of "/usr/src/debug/cygwin-2.11.2-1/winsup/cygwin/exceptions.cc" starts at address 0x18005e80f <ctrl_c_handler(DWORD)+111>
   and ends at 0x18005e820 <ctrl_c_handler(DWORD)+128>.
(gdb) info line *0x001801211AD
Line 9718 of "sigfe.s" starts at address 0x1801211a9 <_sigfe_vswprintf+9> and ends at 0x1801211ae <_sigfe_vswscanf>.
(gdb) info line *0x0018011DB41
Line 226 of "/usr/src/debug/cygwin-2.11.2-1/winsup/cygwin/shm.cc" starts at address 0x18011db23 <shmat(int, void const*, int)+675>
   and ends at 0x18011db67 <shmat(int, void const*, int)+743>.
(gdb) info line *0x0018011DFE9
Line 130 of "sigfe.s" starts at address 0x18011dfe6 <sigdelayed+225> and ends at 0x18011dfee <sigdelayed+233>.
(gdb) info line *0x0018011E1BA
Line 276 of "sigfe.s" starts at address 0x18011e1b5 <sigsetjmp+15> and ends at 0x18011e1bc <sigsetjmp+22>.
(gdb) info line *0x0018011E47F
Line 632 of "sigfe.s" starts at address 0x18011e47d <_sigfe___res_nsearch+9> and ends at 0x18011e482 <_sigfe___res_nsend>.


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


