DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 52V8RvYf1645084 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 52V8RvYf1645084 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=xu4nZeXB X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A6223857354 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1743409676; bh=sdRKORlutSRNeiE75SLGa3NrBCRicKu5sr3Hrg49Ms4=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=xu4nZeXBOYpOhxcAo3joy3KTDGz3GDvDRNuUQzn1ln+b9wizqwIY9kIw1Mdlvqkpn nL+J/f6eXC+V3v1O+VAY4jOxd7pYFaF1XEVjK1Xzgf/lzOlJrbAn7pWfhyAVILtOF2 N6VI7PuWJ82CZg/2d5e7UmjZDuIdO/Rte/fQeq+8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E14873857BBA Date: Mon, 31 Mar 2025 10:26:51 +0200 To: cygwin AT cygwin DOT com Subject: Re: dlclose reports ENOENT with simple code Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 52V8RvYf1645084 On Mar 31 11:25, Duncan Roe via Cygwin wrote: > On Sun, Mar 30, 2025 at 05:32:44PM +0800, cygwin wrote: > > Code to reproduce: > > > > > > #include > > #include > > #include > > #include > > > > 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 https://sourceware.org/pipermail/cygwin-patches/2025q1/013584.html Corinna -- 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