delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/06/03/14:37:54

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.4.1 sourceware.org 55A413857378
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=ads.uni-passau.de
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=ads.uni-passau.de
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-passau.de;
s=up-2020-11-19; t=1654281450;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type;
bh=fwaCgZLqCih5mv23CHYUdT1zL3Xez0qsjBkoUHcxHSI=;
b=gvYCBjn1E2iouCNTlnucNUMbpNG+PgJZB8XGVwgEARh9N9HouzNWw42wY2a/XR2jqvik6K
tq6fY3dk6ajVTgDC+C6/60uK+HlIKJNVY0bHtFWaTHefzLw9oAwWbEOC4UVWjkEzkgsgQe
qhCjoXKRqev1bVPeN64h3Qn0Hy5Q1ms=
From: "Mexis, Nico" <mexis01 AT ads DOT uni-passau DOT de>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Readline not working correctly with cygwin1.dll in same directory
Thread-Topic: Readline not working correctly with cygwin1.dll in same directory
Thread-Index: AQHYd3j64CaipfTE5kqgovEiAQdJ8A==
Date: Fri, 3 Jun 2022 18:37:29 +0000
Message-ID: <9087f783897148ff8c47965379fd66b5@ads.uni-passau.de>
Accept-Language: de-DE, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
MIME-Version: 1.0
X-purgate-ID: 151291::1654281450-0261733A-F47EFC9C/0/0
X-purgate-type: clean
X-purgate-size: 8907
X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de
X-purgate: This mail is considered clean (visit http://www.eleven.de for
further information)
X-purgate: clean
X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_05, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_EF, HTML_MESSAGE, SPF_HELO_NONE, SPF_NONE, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
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+archive-cygwin=delorie DOT com AT cygwin DOT com>

Dear CygWin team,

this is my first bug report and I hope I have chosen the right recipients here.
I am very sorry if this is the wrong address.

Here is my bug report:
Currently, I am trying to compile a software for commutative algebra, namely CoCoA 5, using CygWin.
The compilation itself is working correctly and finishes as expected.
CoCoA 5 uses readline in order to facilitate inputs from the console.
When starting the resulting executable within CygWin bash, readline and all of its features work correctly.
Also, as long as CygWin's DLLs are within Windows's PATH, in the default (and new) Windows Terminal, everything is working fine.
However, when trying to create a distributable zip file with all the libraries included, something strange happens:
In order to allow users without a CygWin installation to start CoCoA 5, all the required DLLs need to be distributed together with the application itself.
All the required libraries could be found using DependencyWalker and cygcheck.
Of course, as expected, cygwin1.dll is one of the required DLLs.
As soon as I place cygwin1.dll in the installation directory where CoCoA 5's executable resides, readline support breaks.
For some reason, the input line behaves very strangely, e.g., backspace and the arrow keys are not working correctly.
All of the other DLLs (including cygreadline7.dll) can reside in the installation directory without causing trouble.
But as soon as cygwin1.dll is also added in the installation directory, this bug reappears.

Another strange observation:
This problem does not seem to only affect CoCoA 5, but also many other similar applications like PARI/GP.
As soon as cygwin1.dll is copied into the same directory as the application's exe, this strange bug appears.

Sadly, I do not know about a fix yet since cygwin1.dll is needed for all users without a local CygWin installation.
But - in turn - adding cygwin1.dll causes this bug which makes the console application very uncomfortable to use.

I would be very happy if you know a fix for this strange issue since I could not find something similar online.
Best regards and thank you very much in advance,
Nico Mexis

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