Re: mq_send()/mq_receive() may never return if used from threads

2025-01-28 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Jan 27 20:35, Corinna Vinschen via Cygwin wrote: On Jan 27 19:59, Christian Franke via Cygwin wrote: Christian Franke wrote: Found with 'stress-ng --workload ...': If mq_receive is called on an empty queue and mq_send is called later from a

Re: mq_send()/mq_receive() may never return if used from threads

2025-01-27 Thread Christian Franke via Cygwin
Christian Franke wrote: Found with 'stress-ng --workload ...': If mq_receive is called on an empty queue and mq_send is called later from a different thread, both functions never return and signals (including SIGKILL) are no longer processed. Testcase (attached): $ uname -r 3.5.

Re: cygwin 3.5.6-1

2025-01-27 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Jan 27 08:12, Christian Franke via Cygwin wrote: Corinna Vinschen via Cygwin-announce wrote: The following packages have been uploaded to the Cygwin distribution: * cygwin-3.5.6-1 * cygwin-devel-3.5.6-1 * cygwin-doc-3.5.6-1 Fixes: -- ... - Fix

Re: cygwin 3.5.6-1

2025-01-26 Thread Christian Franke via Cygwin
intf '0x%04f/%A %n (%F)\n' /dev/mqueue /dev/mqueue/mqtest 0x43ff/drwxrwxrwt /dev/mqueue (directory) 0x8180/-rw--- /dev/mqueue/mqtest (regular file) $ rm -iv /dev/mqueue/mqtest rm: remove regular file '/dev/mqueue/mqtest'? y rm: cannot remove '/dev/mqueue/mqtest':

mq_send()/mq_receive() may never return if used from threads

2025-01-17 Thread Christian Franke via Cygwin
g mqhang.c $ ./mqhang mq_send... mq_send = 0 mq_receive... mq_receive = 8 mq_receive... mq_send... [...hangs...] Problem does not occur if mq_receive() is called from a fork()ed process instead of a thread. -- Regards, Christian #include #include #include #include #include static void

mq_unlink() always fails with EPERM

2025-01-17 Thread Christian Franke via Cygwin
05 [main] mqunlink 17288 __set_errno: int unlink(const char*):1141 setting errno 1    48   50053 [main] mqunlink 17288 unlink: -1 = unlink(/dev/mqueue/mqtest), errno 1 ... mq_unlink: Operation not permitted -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ:

mq_send(-1, ...) segfaults instead of failing with EBADF

2025-01-14 Thread Christian Franke via Cygwin
c005 at 7ffc766fc71e --- Process 13872 (pid: 23017), exception c005 at 7ffc766fc71e --- Process 13872 (pid: 23017), exception c005 at 7ffc766fc71e ... [infinite loop - strace needs to be terminated by task manager] Same if -fstack-protector-strong is added. -- Regards, Ch

Re: 2 SCHED_IDLE bugs in Cygwin 3.6

2024-12-20 Thread Christian Franke via Cygwin
        break; The 'chrt --help' output is misleading because it always advertises '-b, --batch', '-i, --idle', ... -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

Request: please update subversion-perl for Perl 5.40

2024-12-11 Thread Christian Franke via Cygwin
5.28-1. -- Thanks, Christian -- 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

Re: Cygwin command to bind new process to CPUs 3,4?

2024-12-10 Thread Christian Franke via Cygwin
Cedric Blancher via Cygwin wrote: Good morning! Does Cycgwin have a command to bind a new process to a specific set of CPUs, e.g. bind /usr/bin/eatfrogs to CPU cores 3 and 4? $ taskset -c 3,4 /usr/bin/eatfrogs ... $ cygcheck -f /usr/bin/taskset util-linux-2.39.3-2 -- Regards, Christian

Re: SIGKILL may no longer work after many SIGCONT/SIGSTOP signals

2024-11-23 Thread Christian Franke via Cygwin
Takashi Yano via Cygwin wrote: On Wed, 20 Nov 2024 22:43:08 +0900 Takashi Yano wrote: On Tue, 19 Nov 2024 18:21:52 +0900 Takashi Yano wrote: On Tue, 12 Nov 2024 10:53:58 +0100 Christian Franke wrote: Found with 'stress-ng --cpu-sched' from current stress-ng upstream HEAD: Testcase

Re: /bin/ls -l cannot handle printable Unicode characters outside the BMP ...

2024-11-23 Thread Christian Franke via Cygwin
rectly, so IMO this is not a Windows or Win32 API problem. Slightly different filename problem which may be related or not: https://sourceware.org/pipermail/cygwin/2024-September/256451.html -- Regards, Christian -- 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

Signals may be lost during setjmp or longjmp

2024-11-22 Thread Christian Franke via Cygwin
nt cygwin1.dll 26144e40. -- Regards, Christian #include #include #include #include static volatile std::atomic_int sigcnt; static void sigfunc(int) { sigcnt++; } int main() { volatile int prev = 0; signal(SIGINT, sigfunc); jmp_buf jb; setjmp(jb); // loop: volatile int cnt = sigcnt;

Segfault in pthread_sigqueue() or sigtimewait()

2024-11-14 Thread Christian Franke via Cygwin
ith status 0xc005 --- Process 9568 exited with status 0xc005 I guess the problem occurs because pthread_sigqueue() is sometimes issued after the thread function already returned. The thread pointer should be valid until pthread_join() is called. Sorry if I missed something. -- Regards, Christia

SIGKILL may no longer work after many SIGCONT/SIGSTOP signals

2024-11-12 Thread Christian Franke via Cygwin
d because it would require to ignore the priority. - sched_setscheduler() always fails with ENOSYS. It IMO should allow to set 'param->sched_priority' if 'policy' is equal to the value returned by sched_getscheduler(). -- Regards, Christian #define _GNU_SOURCE #include #inc

Re: Stable SIDs for "None"+'"Administrator" ?

2024-11-09 Thread Christian Franke via Cygwin
ine SID: $ sid=$(mkgroup -l | sed -n 's/[^:]*:\(S-[-0-9]*\)-513:.*$/\1/p') $ test $(wc -l <<<"$sid") = 1 || echo 'My assumption was wrong :-)' -- Regards, Christian -- 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

Re: Writing to '\\.\X:' that has no backing PhysicalDrive?

2024-10-25 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Ilya Basin via Cygwin wrote: Hi. I was trying to write an .img file to a VeraCrypt drive. VeraCrypt doesn't create a virtual PhysicalDrive so tools like Rufus don't see it. I hoped that with cygwin I would be able to do that, but Cygwin only creat

Re: Writing to '\\.\X:' that has no backing PhysicalDrive?

2024-10-24 Thread Christian Franke via Cygwin
ice/VeraCryptVolumeE But /proc/sys is completely R/O like /proc/registry, so you cannot write the image via this path. OT: /proc/sys/Device/HarddiskVolumeShadowCopyN[/PATH/TO/FILE] allows to read the image and individual files from a volume shadow copy. -- Regards, Christian -- Prob

Re: cygwin 3.5.4-1: lockf() aborts on overlap and does not fail on overflow

2024-10-17 Thread Christian Franke via Cygwin
Takashi Yano via Cygwin wrote: On Mon, 14 Oct 2024 15:36:02 +0200 Christian Franke wrote: Two possibly independent bugs found by 'stress-ng --lockf ...': 1) lockf() may abort the process with api_fatal() if the new range partly overlaps with two ranges previously locked by the same p

cygwin 3.5.4-1: lockf() aborts on overlap and does not fail on overflow

2024-10-14 Thread Christian Franke via Cygwin
  Warning, can't handle more than 910 locks per file. done There is possibly also an off-by-one error as the 912'th lockf() prints the first warning. -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Docum

Re: cygwin 3.5.4-1: signal handling destroys 'long double' values

2024-10-14 Thread Christian Franke via Cygwin
Takashi Yano via Cygwin wrote: ... Please check v2 patch. The v3(!) patch fixes my testcases. Both branches (xsave64, fxsave64) were tested. -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation

Re: cygwin 3.5.4-1: signal handling destroys 'long double' values

2024-10-13 Thread Christian Franke via Cygwin
Takashi Yano via Cygwin wrote: Hi Brian, On Tue, 8 Oct 2024 10:37:14 -0600 Brian Inglis wrote: On 2024-10-08 10:14, Brian Inglis via Cygwin wrote: On 2024-10-08 05:20, Takashi Yano via Cygwin wrote: On Mon, 7 Oct 2024 15:11:52 +0200 Christian Franke wrote: $ gcc -o sigtest -O2 sigtest.c

cygwin 3.5.4-1: signal handling destroys 'long double' values

2024-10-07 Thread Christian Franke via Cygwin
6789p+0, y = -nan, d = -nan   6 x = 0x1.23456789p+0, y = 0x1.23456789p+0, d = -nan 33 x = 0x1.23456789p+0, y = 0x1.23456789p+0, d = 0x0p+0 The problem also occurs if compiled without -O2, but less often. No problem occurs if compiled with -DWORKS which suggests that only 'long

Re: Request for test by users seeing 0.00 load average in spite of a busy system

2024-10-02 Thread Christian Franke via Cygwin
secs $ uptime  09:59:01 up 28 min,  0 user,  load average: 0.00, 0.00, 0.00 -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.c

Re: pread()/pwrite() fail with EBADF in child process if already used before fork()

2024-09-24 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Found during test of 'stress-ng --pseek ...' from current upstream stress-ng git HEAD: Testcase: $ uname -r 3.5.4-1.x86_64 $ cat pfail.c #include #include #include #include int main() {   int fd = open(&

Re: pread()/pwrite() fail with EBADF in child process if already used before fork()

2024-09-23 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Found during test of 'stress-ng --pseek ...' from current upstream stress-ng git HEAD: Testcase: $ uname -r 3.5.4-1.x86_64 $ cat pfail.c #include #include #include #include int main() {   int fd = open("pwrite.tmp", O_RDWR|O_CREAT|O

pread()/pwrite() fail with EBADF in child process if already used before fork()

2024-09-22 Thread Christian Franke via Cygwin
pread(3, 0x7CC0B, 1, 0), errno 9 ... The problem does not occur if there is no pread()/pwrite() before the fork(). This suggests that the child process inherits the extra handle value used to keep the original seek position, but not the actual handle. -- Regards, Christian -- Problem

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Christian Franke via Cygwin
Brian Inglis via Cygwin wrote: On 2024-09-19 07:27, Christian Franke via Cygwin wrote: Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-19 Thread Christian Franke via Cygwin
Mark Liam Brown via Cygwin wrote: On Mon, Sep 16, 2024 at 11:51 AM Christian Franke via Cygwin wrote: Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-16 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file

Re: readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Christian Franke via Cygwin
Thomas Wolff via Cygwin wrote: Am 15.09.2024 um 20:15 schrieb Thomas Wolff via Cygwin: Am 15.09.2024 um 19:47 schrieb Christian Franke via Cygwin: If a file name contains an invalid (truncated) UTF-8 sequence, open() does not refuse to create the file. Later readdir() returns a different name

readdir() returns inaccessible name if file was created with invalid UTF-8

2024-09-15 Thread Christian Franke via Cygwin
C\xDF21.ext" -(readdir)-> "file1-\xF0\x9F\x8C\xA1.ext" "file2-\xF0\x9f\x8C.ext" -(open)-> L"file2-\xD83C\xF02Eext" -(readdir)-> "file2-.\xE1\x9E\xB3ext" "file3-\xF0\x9F\x8C" -(open)-> L"file3-\xD83C\xF000" -(readd

pthread_sigqueue(): First parameter is incompatible with glibc

2024-09-12 Thread Christian Franke via Cygwin
usages of __CYGWIN__ in stress-ng source (builds OOTB, maybe ITP): https://github.com/ColinIanKing/stress-ng/commit/17c7a0d -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html U

Re: Cygwin a bit slow

2024-04-10 Thread Christian Franke via Cygwin
s. Using bash builtins in the above example speeds it up to ~21000/second on the same very old box: $ while :; do printf '%(%s)T\n'; done | uniq -c -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-02 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: ,,, BTW, according to the Linux kernel sources, BLKPBSZGET etc return 'unsigned int' and not 'unsigned long' since first appearance in 2.6.32-rc3 (2009?): https://elixir.bootlin.com/linux/v2.6.32-rc3/source/block/ioctl.c#L276 https:

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-02 Thread Christian Franke via Cygwin
Bruce Jerrick via Cygwin wrote: Downgrading to util-linux-2.33.3-3 does not help. The related code differs, but has the same problem. I take that back. The above should read "util-linux-2.33.1-3". But it was OK in util-linux-2.33.1-3 . Yes, this is correct. I possibly downgraded util-linux

Re: util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-04-02 Thread Christian Franke via Cygwin
Hi Mark, Mark Geisert via Cygwin wrote: Hi Christian, On 3/31/2024 1:11 AM, Christian Franke via Cygwin wrote: Testcase: # cygcheck -f /sbin/fdisk.exe util-linux-2.39.3-1 # /sbin/fdisk.exe -l /dev/sdd Disk /dev/sdd: 465.76 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512

util-linux-2.39.3-1: libblkid returns invalid physical_sector_size

2024-03-31 Thread Christian Franke via Cygwin
same problem. The fdisk variant in busybox-1.36.1-2 is not affected. -- Regards, Christian -- 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

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-24 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Mar 23 10:57, Christian Franke via Cygwin wrote: On Mar 21 16:15, Corinna Vinschen via Cygwin wrote: On Mar 21 09:58, Christian Franke via Cygwin wrote: .. I just gave it a try on W11. The results are even more funny than I anticipated: ... So, yeah

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-23 Thread Christian Franke via Cygwin
On Mar 21 16:15, Corinna Vinschen via Cygwin wrote: On Mar 21 09:58, Christian Franke via Cygwin wrote: .. I just gave it a try on W11. The results are even more funny than I anticipated: ... So, yeah, with your observations especially on older W10 versions and with 8.1 doing the same thing

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-21 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Mar 20 12:39, Christian Franke via Cygwin wrote: Corinna Vinschen via Cygwin wrote: You have to create an application with an application manifest not supporting your OS. For Cygwin apps, this occured when you built, say, an executable under Windows 8.1

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-20 Thread Christian Franke via Cygwin
d Win11 and also found a Win10 1511 (and Slackware 1.1.2, Win3.1, OS/2, ...) in my VM image museum. Regardless of the exe manifest, RtlGetVersion and RtlGetNtVersionNumbers return the correct versions: 10.0.22621 (Win11 22H2) 10.0.19045 (Win10 22H2) 10.0.10586 (Win10 1511) Without a manif

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-19 Thread Christian Franke via Cygwin
he correct values. See function wincapc::init() https://cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/wincap.cc -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com

Re: Setup.exe suggestions

2024-02-28 Thread Christian Franke via Cygwin
ll. Press and hold Ctrl+U to select "Uninstall" for all. Then change to another view and back to "Unneeded" to see more possible unneeded packages. If someone wants to retain some, it's easier to change those few back to "Keep". Ctrl+K = "Keep&quo

Re: cygport 0.36.8-1

2024-02-14 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: On 13/02/2024 13:02, Christian Franke via Cygwin wrote: Jon Turney via Cygwin wrote: On 12/02/2024 16:49, ASSI via Cygwin wrote: Christian Franke via Cygwin writes: This requires that always the same build directory is used. Would that be solvable by using

Re: cygport 0.36.8-1

2024-02-13 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: On 13/02/2024 13:02, Christian Franke via Cygwin wrote: Jon Turney via Cygwin wrote: On 12/02/2024 16:49, ASSI via Cygwin wrote: Christian Franke via Cygwin writes: This requires that always the same build directory is used. Would that be solvable by using

Re: cygport 0.36.8-1

2024-02-13 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: On 12/02/2024 16:49, ASSI via Cygwin wrote: Christian Franke via Cygwin writes: This requires that always the same build directory is used. Would that be solvable by using -ffile-prefix-map or is there more to it? That should now be used in 0.36.8, so something

Re: cygport 0.36.8-1

2024-02-12 Thread Christian Franke via Cygwin
ddrescue-1.28-1, smartmontools-7.4-1 (busybox and smartmontools have SOURCE_DATE_EPOCH already set in the cygport file) -- Regards, Christian b4362a4df2688819e34555173c5f843f *cygwin-3.5.0-1.x86_64/dist/cygwin/cygwin-3.5.0-1-src.hint 17c671cf6fd3f96cca4b7c411bf5c893 *cygwin-3.5.0-1.x86_64/dis

Cygwin build from source is broken since binutils-2.42-1

2024-02-12 Thread Christian Franke via Cygwin
.. # 1 "/usr/include/bfd.h" 1 3 4 ... # 1 "/usr/include/ansidecl.h" 1 3 4  <== #ifndef _ANSIDECL_H ... -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.c

Re: Add ability to hide non-standard itoa/utoa() in stdlib.h ?

2024-01-22 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Jan 22 16:47, Christian Franke via Cygwin wrote: Busybox does not build OOTB on Cygwin due to the addition of itoa/utoa() to newlib in 2014: https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=32c96dd This is because Busybox use local functions with

Re: where is parted?

2024-01-11 Thread Christian Franke via Cygwin
matth...@gmx.li wrote: fdisk reports the same partition type as sfdisk. It report "Microsoft basic data" for NTFS as well as for FAT32 partitions. That is as expected and differs from MBR disks. The same GPT partition GUID is used for NTFS and the various FAT filesystem types. https://en.wik

Re: where is parted?

2024-01-11 Thread Christian Franke via Cygwin
Matthias--- via Cygwin wrote: I'm using sfdisk for analysing partitions on msdos partition tables. Unfortunately it don't support GPT tables. Is there another tool, like parted, what can be used? /sbin/fdisk from package util-linux-2.33.1-2 supports GPT. -- Regards, Christian

Re: Run a Cygwin process with "higher" scheduler priority

2023-10-15 Thread Christian Franke via Cygwin
;ABOVE_NORMAL_PRIORITY_CLASS" ;;   27) c="HIGH_PRIORITY_CLASS" ;;   32) c="REALTIME_PRIORITY_CLASS" ;;   *)  c="?" ;;     esac     printf "nice -n %3d:%5d %5d %5d %5d  %s\\n" \    "'$i'" "$n" "

Re: setup 2.927 release candidate - please test

2023-10-14 Thread Christian Franke via Cygwin
Synchronisieren",IDC_CHOOSE_SYNC,...,SETUP_SYNC_X,30,SETUP_KPCE_W,14 + CONTROL "&Beste",IDC_CHOOSE_BEST,"Button",...,SETUP_BEST_X,30,SETUP_KPCE_W-10,14 + CONTROL "&Synchronisieren",IDC_CHOOSE_SYNC,...,SETUP_SYNC_X-12,30,SETUP_KPCE_W+12,14 or by si

Re: /usr/bin/dd *.iso to USB stick?

2023-09-23 Thread Christian Franke via Cygwin
run from the limited WinPE environment, for example to create an image of C: if not booted. -- Regards, Christian -- 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

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
Martin Wege via Cygwin wrote: On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
user: psexec -s -i c:\cygwin\bin\mintty - -- Regards, Christian -- 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

Re: std::runtime_error on std::locale("")

2023-09-22 Thread Christian Franke via Cygwin
Takashi Yano via Cygwin wrote: On Thu, 21 Sep 2023 21:06:59 +0200 Christian Franke wrote: ... According to libstdc++ source, the internal function locale::facet::_S_create_c_locale() calls some __newlocale() which apparently does not arrive at newlocale() from cygwin1.dll. But cygstdc++-6.dll

Re: std::runtime_error on std::locale("")

2023-09-21 Thread Christian Franke via Cygwin
unction locale::facet::_S_create_c_locale() calls some __newlocale() which apparently does not arrive at newlocale() from cygwin1.dll. But cygstdc++-6.dll imports newlocale() from cygwin1.dll. Only standard locale "C" and its alias "POSIX" work with C++ std::locale(). The cygw

cygport may not create debug info if top directory contains a symlink

2023-09-16 Thread Christian Franke via Cygwin
opdir}; /bin/pwd); No patch provided because I'm not sure whether this has other negative side effects. If this is the case, it possibly makes sense to print a warning if "$(pwd)" != "$(/bin/pwd)". -- Regards, Christian -- Problem reports: https:

[ANNOUNCEMENT] busybox 1.36.1-1

2023-09-15 Thread Christian Franke via Cygwin
    local printf pwd read readonly return set shift sleep source     test times trap true type ulimit umask unalias unset wait Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.

Re: Cygwin console: Different default background color when terminal runs as Admin?

2023-08-18 Thread Christian Franke via Cygwin
(and the '-s SERVICE' option is apparently a no-op). -- Regards, Christian -- 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

Re: Cygwin console: Different default background color when terminal runs as Admin?

2023-08-18 Thread Christian Franke via Cygwin
quot; $(/usr/bin/id -G) " in   *\ 544\ *) PS1=${PS1/\\e]0;\\w/\\e]0;\\w (root)}; PS1=${PS1/\\\$ /\# } ;; esac -- Regards Christian -- 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

Re: [ANNOUNCEMENT] Updated: groff-1.23.0-1

2023-07-23 Thread Christian Franke via Cygwin
Christian Franke via Cygwin wrote: ... - Man pages could no longer be formatted with a specific font. Only    header and footer lines use the selected font then, the rest stays    at the default font 'T': […] Intentional change or regression? IDK, ask upstream. OK, will do. D

Re: [ANNOUNCEMENT] Updated: groff-1.23.0-1

2023-07-23 Thread Christian Franke via Cygwin
ASSI via Cygwin wrote: Christian Franke via Cygwin writes: ASSI via Cygwin wrote: - Various PDF fonts produce warnings but seem to work in general: $ echo "Hello, World!" | groff -Tpdf -f A > hello.A.pdf /usr/bin/gropdf: warning: The download file in '/usr/share/groff/1.23.0

Re: [ANNOUNCEMENT] Updated: groff-1.23.0-1

2023-07-22 Thread Christian Franke via Cygwin
p -a BaseFont ls.1.H.pdf 6 0 obj << /BaseFont /Helvetica-Oblique 10 0 obj << /BaseFont /Helvetica 13 0 obj << /BaseFont /Times-Bold 16 0 obj << /BaseFont /Times-Roman 19 0 obj << /BaseFont /Times-Italic Intentional change or regression? -- Regards, Christian -- Probl

[ANNOUNCEMENT] ddrescue 1.27-1

2023-01-28 Thread Christian Franke via Cygwin
te-if-done' of ddrescuelog no longer returns an error if the mapfile is read from standard input. Instead it behaves like '-D, --done-status' because there is nothing to delete. 'ddrescuelog --show-status' now rounds percentages up to get the sum closer to 100%. The d

Re: Question about slow access to file information

2023-01-17 Thread Christian Franke via Cygwin
Eliot Moss via Cygwin wrote: On 1/15/2023 3:38 AM, Christian Franke via Cygwin wrote: Eliot Moss via Cygwin wrote: I have a separate drive mounted this way: d:/ /cygdrive/d ntfs binary,posix=0,user,noacl,auto 0 0 One thing I use it for is to store backup files.  These tend to be 2 Gb chunks

Re: Question about slow access to file information

2023-01-14 Thread Christian Franke via Cygwin
a 'noacl'-mount, Cygwin reads the first bytes of most files (all except *.exe, *.lnk, *.com). The 'x' bits are set if the file starts with "#!" (script), ":\n" (?) or "MZ" (Windows executable). On 'noacl' mounts, this behavior coul

Re: Cygwin setup reporter as malware

2022-12-09 Thread Christian Franke via Cygwin
Dan Harkless via Cygwin wrote: On 12/9/2022 3:39 AM, Oskar Skog via Cygwin wrote: On 2022-12-07 23:54, Dan Harkless via Cygwin wrote: > No.  It's normal and common for software like Cygwin, which has the > power to be used maliciously (as opposed to, say, a Minesweeper game or > something), t

Re: [ANNOUNCEMENT] Updated: setup (2.923)

2022-11-22 Thread Christian Franke
Adam Dinwoodie wrote: ... - Add Ctrl-I/R/U as keyboard accelerators for install/reinstall/uninstall in the package chooser (thanks to Christian Franke) I am also very grateful for this, too – I'm a keyboard monkey and I find the current package selection process somewhat tedious – but I&#

Re: Sharing my packages for CYGWIN

2022-11-18 Thread Keith Christian
Carlo, Since you are successfully creating Cygwin packages, one thing that would be very helpful is a detailed set of instructions for cygport to create a Cygwin package from source. There are instructions posted on the Cygwin website and other info about cygport, but I have not found a comprehens

Is there an API to remove ALSR in Cygwin 3.4.0?

2022-11-12 Thread Christian Jullien
If a gcc flag already exists, it will force a mode instead of leaving this option to end user. My Lisp (OpenLisp) has an optional feature name 'execore' which combines lisp binary and a saved image into a single executable which fails to run of course if ALSR is on. For me, it&#

Re: fish-3.5.0-1: /etc/fish/conf.d/cygwin.fish only readable by owner

2022-10-24 Thread Christian Franke
.tar.xz etc/defaults/etc/fish/conf.d/cygwin.fish -rw--- ... 1101 2022-06-29 17:29 etc/defaults/etc/fish/conf.d/cygwin.fish Hi Christian. Thanks for reporting this, and sorry for my slow reply. I was suprprised by this, because I thought setup would set up rational permissions for us. I've

Re: Smartctl issues in Cygwin with elevated terminal

2022-09-13 Thread Christian Franke
t work due to it not being Unixy underneath. To drop privileges, try 'cygdrop' tool from 'cygutils-extra' package. -- Regards, Christian -- 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

Ansible listed as orphaned

2022-09-09 Thread Keith Christian
Is there a recommended general procedure so that users could update orphaned packages with a reasonable chance of success? E.g., for packages that need compiling, it's download the source, extract it, then make and make install. Not sure about other packages like Ansible which are written in Python

Re: How to get setup to *re*install a package from the command line

2022-09-07 Thread Christian Franke
un to the recent 2.921 RC release of setup, select the "Up To Date" view and then press and hold Ctrl+R. https://sourceware.org/pipermail/cygwin/2022-August/252146.html -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https:/

Re: Ctrl+Space not working under Windows Terminal

2022-09-06 Thread Christian Franke
Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: I then see "C-@" echoed in the minibuffer, and the resulting *Help* buffer says WFIW, in the DEC VT terminals (from where most of ANSI controls stem from), Ctrl-Space used to generate a NUL character (ASCII '\0'), and so maybe it is seen as

Re: setup 2.920 release candidate - please test

2022-08-15 Thread Christian Franke
Achim Gratz wrote: Christian Franke writes: This version aborts if "Sync" setting is reverted to "Best". If the abort goes away when building setup with the previous version of libsolv then you might have found an easier reproducer for a bug I'm chasing… Running i

Re: setup 2.920 release candidate - please test

2022-08-14 Thread Christian Franke
toolchain ? $ x86_64-w64-mingw32-g++ --version x86_64-w64-mingw32-g++ (GCC) 11.3.0 $ x86_64-w64-mingw32-ld --version GNU ld (GNU Binutils) 2.38 Found during testing of my recent setup patches ("Unneeded" view, keyboard accelerators Ctrl+I/R/U), see cygwin-apps. -- Regards, Christian

Re: resolv.conf and gnupg2

2022-08-11 Thread Christian Franke
Andrey Repin wrote: Greetings, Christian Franke! ... Unfortunately the ipconfig output is always localized, so this does only work OOTB with English versions of Windows. The ipconfig parsing is also broken due to two reasons: - The current Cygwin versions of awk, grep and sed no longer

Re: resolv.conf and gnupg2

2022-08-09 Thread Christian Franke
Lee wrote: On 8/9/22, Christian Franke wrote: Brian Inglis wrote: I've been running with /etc/resolv.conf for a few years now, generated from the ISP info from ipconfig and lists of public DNS servers and suffixes. The attached postinstall script 0p_l_etc_resolv_conf.dash generates

Re: resolv.conf and gnupg2

2022-08-09 Thread Christian Franke
A draft patch is attached. It also avoids the tmp file and uses shell builtins where possible. -- Regards, Christian diff -ru cyg-resolv.orig/0p_l_etc_resolv_conf.dash cyg-resolv/0p_l_etc_resolv_conf.dash --- cyg-resolv.orig/0p_l_etc_resolv_conf.dash 2022-08-09 13:52:07.293

Re: Deleting a directory with the same name as a shortcut deletes everything in CWD

2022-08-08 Thread Christian Franke
nk/link/link directory $ ls link/link/link/link .  ..  file.txt  link.lnk $ rm link/link/link/link rm: cannot remove 'link/link/link/link': Is a directory $ rm -rfv link/link/link/link removed 'link/link/link/link/file.txt' removed 'link/link/link/li

Re: Retry / Continue dialog appearing frequently in setup for dll updates

2022-08-04 Thread Keith Christian
> "ssh-pageant.sh" -k > gpgconf --kill gpg-agent dirmngr scdaemon > sh -c "for svc in $( cygrunsrv --list | grep -v cygserver ) cygserver; do net > stop "^"$svc^""; done" > > Restarting after setup is goin gthe other way around, except GPG services > (they are restarted by themselves as needed). >

Re: Retry / Continue dialog appearing frequently in setup for dll updates

2022-08-02 Thread Keith Christian
Hi Ken, Yes, I attempt to shut down all cygwin processes as we all have done over the past many years of enjoying Cygwin. I opened a terminal as Administrator to shut down cygsshd and exim as shown below but it did not work. What could be wrong here? I am surprised that cygrunsrv was unable to st

Re: [ANNOUNCEMENT] Test: coreutils 9.0 (TEST)

2022-07-31 Thread Keith Christian
ber wrote: > > On 7/19/2022 6:34 AM, Keith Christian wrote: > > > The installed version of coreutils is 8.32-1. > > Correct, latest release. > > > I see coreutils-9.0-1.tar.gz referenced in setup.ini, but > > Incorrect, there's a newer test version

Retry / Continue dialog appearing frequently in setup for dll updates

2022-07-31 Thread Keith Christian
On two different Windows 10 machines, I see the Retry/Continue dialog on numerous cygwin .dll files. These are the only cygwin processes extant while setup is running: == C:\Users\keith>tasklist /v | findstr /c:ssh sshd.exe

Re: [ANNOUNCEMENT] Test: coreutils 9.0 (TEST)

2022-07-19 Thread Keith Christian
as mentioned above. More suggestions are appreciated. On Mon, Jul 18, 2022 at 8:48 PM René Berber wrote: > > On 7/18/2022 8:50 PM, Keith Christian wrote: > > > I'd like to test coreutils but cannot find the docs for how to install > > a test version. > > Sorry, bu

Re: [ANNOUNCEMENT] Test: coreutils 9.0 (TEST)

2022-07-18 Thread Keith Christian
I'd like to test coreutils but cannot find the docs for how to install a test version. Sorry, but I don't see anything in setup.exe that would facilitate installing a test version, seems I recall that test versions were available to install via setup. On Sun, Jul 17, 2022 at 9:43 PM Cygwin coreuti

Re: [PATCH setup] Add new option --chown-admin

2022-07-09 Thread Christian Franke
Jon Turney wrote: On 07/07/2022 15:45, Christian Franke wrote: Jon Turney wrote: On 06/07/2022 17:34, Christian Franke wrote: Jon Turney wrote: On 06/07/2022 08:14, Christian Franke wrote: [...] BTW: 'nt_sec.setDefaultSecurity (isAdmin)' is never called with 'is

Re: [ANNOUNCEMENT] fish 3.5.0-1

2022-07-05 Thread Christian Franke
installations for "All Users" (easy to fix locally, of course): https://sourceware.org/pipermail/cygwin/2022-July/251802.html -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://

Re: [ANNOUNCEMENT] cygport 0.35.2-1

2022-07-04 Thread Christian Franke
if LICENSE is missing. This may encourage maintainers to add it. -- Regards, Christian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml

fish-3.5.0-1: /etc/fish/conf.d/cygwin.fish only readable by owner

2022-07-02 Thread Christian Franke
+maybe chmod 0600 'fish/conf.d/cygwin.fish' ... -- Regards, Christian -- 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

[ANNOUNCEMENT] New: etckeeper 1.18.17-1

2022-07-02 Thread Christian Franke
oes not perform the initialization of /etc/.git. Run 'etckeeper init && etckeeper commit' manually under the same user which is effective during setup. Christian Franke -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/fa

[ANNOUNCEMENT] New: pass 1.7.4-1

2022-07-02 Thread Christian Franke
the PATH, gpg2 takes precedence. Non-Cygwin versions of gpg2 or gpg are also supported if no Cygwin gnupg* Package is installed. Christian Franke -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.h

[ANNOUNCEMENT] smartmontools 7.3-1

2022-06-27 Thread Christian Franke
Christian Franke -- 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

Re: duplicity 0.7.19-1, python-fasteners 0.16.3-1: Missing dependency python-monotonic?

2022-05-07 Thread Christian Franke
Libor Ukropec wrote: Hi Christian, few moments ago I uploaded 0.8.22 duplicity which should have all dependencies in cygwin. Any feedback is welcome. A first quick backup+restore test worked as expected. Thanks, Christian -- Problem reports: https://cygwin.com/problems.html FAQ

duplicity 0.7.19-1, python-fasteners 0.16.3-1: Missing dependency python-monotonic?

2022-05-03 Thread Christian Franke
and no python*-monotonic package is available for Cygwin. Regards, Christian -- 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

Re: Compiling gnu diction on Cygwin

2022-04-06 Thread Keith Christian
Brian, Csaba, I was able to complete the compile with your assistance. Brian: I'll experiment with your suggestions of: #include and remove casts (should not normally be required or used in C) as well. Csaba: Adding the -Wall -Wpedantic -Wextra fixed the issue, thanks. This will help a great d

  1   2   3   4   5   6   7   8   9   >