delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/02/17:20:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 96890385800F
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=lbmsys.com
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=SBardwell AT lbmsys DOT com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=gKhMMyqIZQBc6DQkL/bOZEfyJYxvAtULXAgGOSI0EkgJtFSNprLY9iaXhyVCfSyeny5/+DOKe8i/EdE4I31u8Vd4yMge7ej1ylPRK4Odo2xeGvvjzPuHKX8D+/fjtXbCBEaqpMOhhsxIjlznFbgrzbYNxvj8aK9COUjJRnD2Lx+cB8DJvHuUG3CYJsslgYRhAaBRMZKY652GH0yVZkrwLuQm3eDlGggNuIBK9CdV9+Hck3j14neCRnDfcbK/BYb48GrBbd4ao+lAER4WD0px4NETFr8dwC7dosnsW+PEtSfaBKOXO5wE62jKGGtGmUU73N3QCY40Z7/4YnpXBjLr/A==
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=nT1JIpGj9PFeOe7B/mu6e3GySxBNxCq7Lg9WCcpd740=;
b=I4m4ZQTNdC3IlOV0JBeKUfgCTZbGu3K0XNulXsC+jpvfdnxToqJEyPD+4QSaCo0SYXrkDvtMxYnDqVQRHyRgBxEfljB3P9c3jaqSzSbR+7I0kw5etl2H84+Kjb7bcuzr512I2W4zE0+mRwJFBGlJP89ptNU4Jj04M9/Vxs/w7HFH2I/T4wvdyIC/gf/BdM50VxzmjfHkXoCvalkNikWO6d7LXg8IOkeUNS0vzHLPL7lHpFiFRzGVfI+OKlwlH628uGJlRFNYo4De57MD3EI0s0jiif9FZY7OOTcjAMpjJpgCy+RNxwddsEgUfHQ8xPUQk9CkCCG7Dht3AdMeNDrCfw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=lbmsys.com; dmarc=pass action=none header.from=lbmsys.com;
dkim=pass header.d=lbmsys.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=lbmsys.onmicrosoft.com; s=selector2-lbmsys-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=nT1JIpGj9PFeOe7B/mu6e3GySxBNxCq7Lg9WCcpd740=;
b=d52UxtcFI6Hi0Y62MbRIC6jCYfkYKXcWAWqqCvVTjBV90iyCNcJfXKZZ7HgfRkwXB6bI4lFSS3c7buh/+vfNvafCkDRbyEl3VmzcBowUZmJPLe3oR9jS9YoQM5cUPcM5aSaGnc3IpdEGuXbujx0ZwoUamSuWQDqConmzSokao8s=
From: Steven Bardwell <SBardwell AT lbmsys DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Segfault when accessing mmaped memory on Cygwin
Thread-Topic: Segfault when accessing mmaped memory on Cygwin
Thread-Index: AQHW4IKkjgwaKKeLcUC+kpKN7aGhxKoU5usAgAACFeA=
Date: Sat, 2 Jan 2021 22:19:32 +0000
Message-ID: <MWHPR18MB11024B5210C73FA17E2516E1DBD41@MWHPR18MB1102.namprd18.prod.outlook.com>
References: <c26a63be-f805-7983-1893-74398ac7b60f AT netcologne DOT de>
<f8d9bf9f-6315-eeeb-4d15-75ca44f87c13 AT netcologne DOT de>
In-Reply-To: <f8d9bf9f-6315-eeeb-4d15-75ca44f87c13@netcologne.de>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: cygwin.com; dkim=none (message not signed)
header.d=none;cygwin.com; dmarc=none action=none header.from=lbmsys.com;
x-originating-ip: [184.63.120.9]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 5030361a-4903-41f2-4e17-08d8af6c7b07
x-ms-traffictypediagnostic: CO6PR18MB4018:
x-microsoft-antispam-prvs: <CO6PR18MB4018505EEBF44D9F3F88827ADBD41 AT CO6PR18MB4018 DOT namprd18 DOT prod DOT outlook DOT com>
x-ms-oob-tlc-oobclassifiers: OLM:4941;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Yri7ClM2QX+8T2U8MzHjpx6u8Ecglx9OHh6rRLq1L1B7YRo2hXXm6g5yPDqJ7j1QZRF9e7u9DoGNxlpsbSxPq++mQy7nzZRVAVUMi7rsEZd4XfsEXbk3PtVC0z+6/Ujmf/T74DRjquvpiVP2VK29qkDottQK3RnNvoiG07f9gDuKyGZheqOGkpyki51M4FTNdloal3XtGWzOtdCmrlLUqTQNny9U60cqeO9dbeFwRXyN3pSgnM6ReFIn/YNxZsOmJhDYtAyGNJ6fHAjv8koORCa+CpB8fi9sU0JuDTHAfSxGO8HsXsBt0Q26U6HFjH52kf7WB3uYHyJQYcAuEsTWrV/UNbNccaWe7FfqPtUHYC675xcBpzFA5exn2b3YWHrDoQqVBM5HHH4yIvjGELFh9Q==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:MWHPR18MB1102.namprd18.prod.outlook.com; PTR:; CAT:NONE;
SFS:(39830400003)(346002)(366004)(136003)(396003)(376002)(26005)(316002)(4744005)(6916009)(7696005)(8676002)(6506007)(83380400001)(86362001)(2906002)(71200400001)(52536014)(76116006)(9686003)(66946007)(5660300002)(66446008)(66556008)(64756008)(186003)(55016002)(66476007)(478600001)(8936002)(33656002);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: =?us-ascii?Q?x4OBcQPiY2S9391ljzbssc5JqXLykhV6wmnxlvJ7LkSIUd3Ep7r55aNtJko5?=
=?us-ascii?Q?MWVV2j3BO6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49bSbyQ2k9nNr3?=
=?us-ascii?Q?POUq9UqU43P/j1emA2ogght4ZWh7frhTIJ0a4lF9uyk=3D?=
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: lbmsys.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MWHPR18MB1102.namprd18.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5030361a-4903-41f2-4e17-08d8af6c7b07
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jan 2021 22:19:32.6910 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2cb46dcc-5f81-474e-b16b-96065648dbca
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 2rPxl/T7IImMmxXU/aKzPi0nPw0ntUNdJHnWLoYk41uYg75+PyzU8rZW7nDjBMiZkLjfJxm8plZn8B5SdIRjEg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4018
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,
SPF_PASS 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-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>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Thomas writes:

>> when trying out uf a certain shared memory allocator would work on 
>> Cygwin, I tried out the sample program below (which works on Linunx, 
>> *BSD, AIX and Solaris) and got a suprising falure

> Actually, the failure wasn't all that unexpected, given that I had put the ftruncate into the wrong place...
> It appears to work now, sorry for the noise.


Where is the proper place for the ftruncate() call?


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