delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/03/30/20:26:10

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 52V0Q9Pv1491777
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 52V0Q9Pv1491777
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=BWJlPQCK
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58D64385734F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1743380767;
bh=NhUBGHIfzSiYu9PbmQaLjro44MpvaMKusqQCAt7I2Vs=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=BWJlPQCKWwsgbT6zJStLMHk4Btsr7v5E02KtKTm2/bCGOJv59yi8z4ZUoxEZJkc3H
/9pY/lkDwH/kRZnhfMzL33d2agNypA7h5Oww7fq6au2HcUIs2ChnpH+hKit+ZereLD
dtzzsTmD3bFexF8QxqOB+OnWLILJzhPf3rcElr1Y=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E05113857829
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E05113857829
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743380731; cv=none;
b=G88QYufk0GT2XI6RlQ4PBKikfCxSt64/8SVp9OKC/+IcLoDBUi3Z/ZZ18aQMmX/y57hM50OwSedOzkbpISK3Yvn2dBL1tXXaaSq4VDloz7bSrpPyUzuI7yILCm8BEsyELhEisxsKBhGTC3Vg+DXE3lsJF+xQQaw0tqN/9slak1w=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1743380731; c=relaxed/simple;
bh=lbWiT6+EC7jPWNPKxaY+rjT4NNpabiC1tN7f7jUvqrM=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=AUL8oxzN15jRUU/PzLkTTULVD8cNs4O02STlkHazDe1QSjdkSL3GHFbNXDFxFMDXz2iLFDZWjsRlXlqVqdkrUY5103cv4JSI/uIjOvq/d31mbNy+UauOETyndHlmnSR0m/+NMvTCoBLdVAZNaVf8dGoO5uIYV9SeEnxyBUlAZ0g=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E05113857829
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1743380728; x=1743985528;
h=in-reply-to:content-transfer-encoding:content-disposition
:mime-version:references:mail-followup-to:reply-to:message-id
:subject:to:from:date:sender:x-gm-message-state:from:to:cc:subject
:date:message-id:reply-to;
bh=LT405JDoWob4pVPE50i0oYO5pgyl5CG34tQhDwFPy4s=;
b=jZScY2/btfCTTu87wZzXRDBqS7ignlqj3E6Djg0Qw4p8xZTladQ9LAGTN2Ab9+kb5P
d08Y5O2Ol+2IlwmeShvDvUMDbD3E/OuCULg+aLJttu6EXjgyL2+HuyeYWn9aqmIGY49x
uA4vDbK7opepX5M7wvZfLN8sYPaSHCLcKsk/C8j8I9Hgs0r5+URdn5K5NT1+V3pT301r
93Ee8cg//Oe/Drnpa6rMB5ktzzog9KKBnYMlsa7i4FYWk/XYp4p5h9U0mh42bcfcLN6P
1b3KjiAD/brM9AdGjV1pjMFUBJb8a5nmOX1GQZNN9PDgi4AKZHlynJxx4dcoNrr5JuSk
6v4g==
X-Gm-Message-State: AOJu0YwPr6qB//dHx0QWJhGat017KL4+l+KwNYxuR//SsYMDZDvHX630
1DNJ454t+EBt9TzAualm+P1eXwJZZ6LXu0KH6izcBD4l7FE6hMKVH+gMqw==
X-Gm-Gg: ASbGncudUK4rySPbXx/r1621KSWSmYsqwtG27Xtclibb3Qg8jLxmE+ZEbeXHBRUjYmE
Rmr8CuSoqlNG/qwIaPFC4TSmaeaXtu0Vx09xsZHyiMx1Zch5rwiR6JxxhtS/BnOB+Fj8lEMPu9w
53yTpF6ohOD856QJGMRoX3p9urdqrp/cvsxIf+yHDGYpvtuY9+/r9zawUAqhPX5o3ZAgbFVdRAE
Y9gyo0fAQWcAUC2pYMRrb8hwq916FAJjWEturdPEtiPAU5O3pGg6f5hhaG36d+YEhIQDIwn+jsV
iT1mYNqKTFcFAVQYe06MGz0PggkTRKTZIrf1MHTsvph2zYEsPfwCOYW/iRsnJNHy+n2UhCp7Wo1
RhTEJ9sRxiF/d0d28R7sOFlZqTouvRQ==
X-Google-Smtp-Source: AGHT+IFvYxxyVCAWuIFpLL0fYwlfWEjVWt6frVpIv38tS0wXPvHP6uYVl3Y41towCae3dEHTZ+yBQw==
X-Received: by 2002:a17:90b:2f4d:b0:2ee:5bc9:75c3 with SMTP id
98e67ed59e1d1-30531f79fdemr10285972a91.5.1743380727622;
Sun, 30 Mar 2025 17:25:27 -0700 (PDT)
Date: Mon, 31 Mar 2025 11:25:23 +1100
To: cygwin AT cygwin DOT com
Subject: Re: dlclose reports ENOENT with simple code
Message-ID: <Z+ng8y5XkIAgtyJu@slk15.local.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <TYTPR01MB1092365AF9118650ABDFFF781F8A22 AT TYTPR01MB10923 DOT jpnprd01 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <TYTPR01MB1092365AF9118650ABDFFF781F8A22@TYTPR01MB10923.jpnprd01.prod.outlook.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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: Duncan Roe via Cygwin <cygwin AT cygwin DOT com>
Reply-To: duncan_roe AT optusnet DOT com DOT au
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 52V0Q9Pv1491777

On Sun, Mar 30, 2025 at 05:32:44PM +0800, cygwin wrote:
> Code to reproduce:
>
>
> #include <dlfcn.h>
> #include <assert.h>
> #include <stdio.h>
> #include <stdlib.h>
>
> int main() {
>     void* handle = dlopen("/usr/bin/cygwin1.dll", RTLD_LAZY | RTLD_LOCAL);
>     if (!handle)
>     {
>         printf("dlopen: %s\n", dlerror());
>         exit(1);
>     }
>     int res = dlclose(handle);
>     if (res != 0)
>     {
>         printf("dlclose: %s\n", dlerror());
>         exit(1);
>     }
> }
>
>
> The program should succeed, but now it fails with "dlclose: No such file or
> directory".
>
>
> --
> 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

Reproduces here. uname -r reports 3.6.0-1.x86_64

Cheers ... Duncan.

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