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
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 mq_unlink(). Addresses: https://cygwin.com/pipermail/cygwin/2025-January/257119.html Now

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

2025-01-17 Thread Christian Franke via Cygwin
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.5-1.x86_64 $ gcc -o mqhang mqhang.c

mq_unlink() always fails with EPERM

2025-01-17 Thread Christian Franke via Cygwin
mq_unlink() does not unlink anything and always returns -1 with errno = EPERM. Testcase: $ uname -r 3.5.5-1.x86_64 $ cat mqunlink.c #include #include #include int main() {   const char mq_name[] = "/mqtest";   const struct mq_attr attr = { 0, 10, 42, 0 };   mqd_t mq = mq_open(mq_name, O_RD

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

2025-01-14 Thread Christian Franke via Cygwin
Found with 'stress-ng --mq 1 -v': If an invalid fd is passed to mq_send() and other mq_* functions, a segfault occurs instead of returning -1 with errno=EBADF. Depending on optimization, the segfault is not visible in the exit status. Testcase: $ uname -r 3.5.5-1.x86_64 $ gcc --version gcc

Re: 2 SCHED_IDLE bugs in Cygwin 3.6

2024-12-20 Thread Christian Franke via Cygwin
Cedric Blancher via Cygwin wrote: On Fri, 20 Dec 2024 at 07:36, Brian Inglis via Cygwin wrote: On 2024-12-19 14:08, René Berber via Cygwin wrote: On 12/19/2024 2:01 PM, Eliot Moss via Cygwin wrote: On 12/19/2024 1:43 PM, Cedric Blancher via Cygwin wrote: cygwin.git;a=commit;h=61c2f075cd55d4a

Request: please update subversion-perl for Perl 5.40

2024-12-11 Thread Christian Franke via Cygwin
git-svn could no longer be installed because it depends on subversion-perl (1.14.2-1) which still requires perl 5.36. Fallback to perl 5.36 works on existing installations but fails on new ones because some former perl-* packages for perl 5.36 are no longer on the mirrors, at least perl-URI 5.

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
Cedric Blancher via Cygwin wrote: On Sat, 23 Nov 2024 at 11:44, Cedric Blancher wrote: Good morning! /bin/ls -l cannot handle printable Unicode characters outside the BMP Example using '𝒯' bash -c 'printf "\U0001D4AF\n"' # MATHEMATICAL SCRIPT CAPITAL T (yes, our mathematicians want to use THA

Signals may be lost during setjmp or longjmp

2024-11-22 Thread Christian Franke via Cygwin
The command 'stress-ng --longjmp ... -t 1' occasionally fails to terminate because some child process does not receive the SIGALRM indicating timeout. Testcase (attached): $ g++ -O2 -o longjmpsigs longjmpsigs.cc $ ./longjmpsigs [^C] INT   1 [^C] INT   2 ... [^C] INT   21 [^C] [^C] INT   22 ..

Segfault in pthread_sigqueue() or sigtimewait()

2024-11-14 Thread Christian Franke via Cygwin
After enabling the usage of pthread_sigqueue() in stress-ng, 'stress-ng --pthread ...' occasionally reports that child processes failed with SIGSEGV. The problem is unrelated to the recent fix of the signature of pthread_sigqueue(): https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=1e8c9

SIGKILL may no longer work after many SIGCONT/SIGSTOP signals

2024-11-12 Thread Christian Franke via Cygwin
Found with 'stress-ng --cpu-sched' from current stress-ng upstream HEAD: Testcase (attached): $ gcc -O2 -o manysignals manysignals.c $ ./manysignals fork() = 1833 ... fork() = 1848 ... kill(1833, 17) ... kill(1848, 17) kill(1833, 9) ... kill(1848, 9) waitpid(1833, ., 0) Run this in second ter

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

2024-11-09 Thread Christian Franke via Cygwin
Roland Mainz via Cygwin wrote: On Sat, Nov 9, 2024 at 6:00 PM Corinna Vinschen via Cygwin wrote: On Nov 9 17:31, Roland Mainz via Cygwin wrote: Does anyone know a list of SIDs which can be used to get the user+group accounts for passwd entry "Adminstrator" and group entry "None" ? Our proble

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
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 creates /dev/sd?? nodes for PhysicalDrive partitions.

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
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 process. 2) lockf() prints a warning on too many locks and returns success. It should not print a wa

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

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
Recently I used 'stress-ng --class compute ...' which reported the failure of the 'logmath clogl' test. It could be reproduced with this loop which finishes after some random number of iterations: $ while stress-ng --logmath 1 --logmath-method clogl -t 1; do echo OK; done stress-ng: info:  [619

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
Mark Geisert via Cygwin wrote: Hi folks, I may have a handle on why you're seeing 0.00 load averages. Would you kindly compile the attached program, run it, and post its results along with which version of Windows you are running? For example,     gcc -Wall -ggdb -o test test.c -lpdh     ./tes

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
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_BINARY, 0666);   if (fd < 0) {     perror("open"); retur

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
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 which could not be used to access the file. Testcase with U+1F321 (Thermometer): $ uname -r 3.5.4-1.x86_64 $ printf $'\U0001F321' | od -A none -t

pthread_sigqueue(): First parameter is incompatible with glibc

2024-09-12 Thread Christian Franke via Cygwin
Cygwin /usr/include/pthread.h: int pthread_sigqueue (pthread_t *, int, const union sigval); Linux /usr/include/x86_64-linux-gnu/bits/sigthread.h: extern int pthread_sigqueue (pthread_t __threadid, int __signo, const union sigval __value) __THROW; It is apparently

Re: Cygwin a bit slow

2024-04-10 Thread Christian Franke via Cygwin
J M via Cygwin wrote: ... Specifically for this problem, I have investigated the problem and can be related to pipes and antivirus. Specifically while true do echo ABC | grep AAA done It makes the cpu of that antivirus go up. This is as expected because malware scanners hook into Win32 API's

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
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 = 512 bytes Sector size (logical/physical): 512 bytes / 34359738880 bytes I/O size (minimum/optimal): 34359738880 b

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
Corinna Vinschen via Cygwin wrote: On Mar 19 09:18, Bill Stewart via Cygwin wrote: On Tue, Mar 19, 2024 at 9:01 AM Richard Campbell wrote: On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin wrote: Can you please clarify the circumstances under which the RtlGetVersion function "may not

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

2024-03-19 Thread Christian Franke via Cygwin
Cedric Blancher via Cygwin wrote: How does cygwin uname -s work, i.e. how does it get the OS version, revision and build number ('10.0-19045')? I tried to replicate it via GetVersionEx(), but that is deprecated. AFAICS, MS does not offer an official way to retrieve the actual Windows version

Re: Setup.exe suggestions

2024-02-28 Thread Christian Franke via Cygwin
Hi, Lavrentiev, Anton wrote ... For new installations, it'd be great to have the most suitable (in most cases, the most recent) version shown as the first selection in all those pulldown version lists in the "New" columns. The logical order would be "the preferred (latest) version", "the vers

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
Jon Turney wrote on cygwin-announce list: The following packages have been uploaded to the Cygwin distribution: * cygport-0.36.8-1 cygport is the standard method for building and maintaining packages for the Cygwin distribution. ...   Add initial support for SOURCE_DATE_EPOCH Testcas

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

2024-02-12 Thread Christian Franke via Cygwin
This is not a binutils regression: A build from cygwin 3.5.0-1 src package or current newlib-cygwin git main (bfb68a9) with new binutils-2.42-1 fails with: " In file included from ../../../../winsup/utils/dumper.cc:23: /usr/include/bfd.h:2748:1: error: expected initializer before ‘ATTRIBUTE_WA

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

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

2023-10-15 Thread Christian Franke via Cygwin
Brian Inglis via Cygwin wrote: On 2023-10-14 07:47, Eliot Moss via Cygwin wrote: On 10/14/2023 7:39 AM, Cedric Blancher via Cygwin wrote: On Fri, 11 Aug 2023 at 19:14, Brian Inglis wrote: ... ... $ cygcheck -p usr/bin/chrt Found 2 matches for usr/bin/chrt util-linux-debuginfo-2.33.1-2 - uti

Re: setup 2.927 release candidate - please test

2023-10-14 Thread Christian Franke via Cygwin
Jon Turney via Cygwin wrote: A new setup release candidate is available at: ... - Translation updates. - Add German and Polish translations (thanks to weblate contributors Markus, Ettore Atalan, Luis Mengel and WaldiS) Some small adjustments have been made to the layout of the dialog templ

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

2023-09-23 Thread Christian Franke via Cygwin
Jim Garrison via Cygwin wrote: On 9/21/2023 22:40, Martin Wege via Cygwin wrote: Hello, How can I use /usr/bin/dd to copy a *.iso image (Debian netinstall boot image) to a USB stick as raw bytes? I do this frequently.  You must start the Cygwin shell with admin rights, then use Windows Disk M

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
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://learn.microsoft.com/sysinternals/downloads/psexec) This starts a Cygwin terminal as SYSTEM use

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
Brian Inglis via Cygwin wrote: On 2023-09-21 10:28, Takashi Yano via Cygwin wrote: On Fri, 22 Sep 2023 01:12:04 +0900 Takashi Yano wrote: I wonder why the following code throws std::runtime_error even though the LC_ALL is set to valid locale other than "C". This does not occur only when LC_ALL

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

2023-09-16 Thread Christian Franke via Cygwin
Found during tests of busybox package: If the path of the top build directory contains a symlink and the project's build scripts normalize pathnames, no debug info is created by cygport. This is because options like  -fdebug-prefix-map=${B}=/usr/src/debug/${PF} have no effect because ${B} cont

[ANNOUNCEMENT] busybox 1.36.1-1

2023-09-15 Thread Christian Franke via Cygwin
The following packages have been uploaded to the Cygwin distribution: * busybox-1.36.1-1 * busybox-standalone-1.36.1-1 * busybox-doc-1.36.1-1 BusyBox combines tiny versions of many (un)common utilities into a single executable. It is still smaller than bash. https://busybox.net/about.html Th

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

2023-08-18 Thread Christian Franke via Cygwin
Corinna Vinschen via Cygwin wrote: On Aug 18 11:51, Martin Wege via Cygwin wrote: On Fri, Aug 18, 2023 at 7:27 AM Jonathon Merz via Cygwin wrote: On Thu, Aug 17, 2023 at 7:13 PM Martin Wege via Cygwin wrote: Just an idea: Could the default background color of the Cygwin console be changed f

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

2023-08-18 Thread Christian Franke via Cygwin
Jonathon Merz via Cygwin wrote: On Thu, Aug 17, 2023 at 7:13 PM Martin Wege via Cygwin wrote: Just an idea: Could the default background color of the Cygwin console be changed from black to grey (or RED) if the terminal has been started with Administrator rights? Assuming that: 1. The Admini

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
ASSI via Cygwin wrote: GNU roff has been updated to the latest upstream version 1.23.0. The following packages are available on Cygwin: groff-1.23.0-1 groff-perl-1.23.0-1 groff-X11-1.23.0-1 - Various PDF fonts produce warnings but seem to work in general: $ echo "Hello, World!" | grof

[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
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, and there can be hundreds of them in the backup directory.  (The drive is 5Tb.)  The Wi

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: fish-3.5.0-1: /etc/fish/conf.d/cygwin.fish only readable by owner

2022-10-24 Thread Christian Franke
Andrew Schulman via Cygwin wrote: The permission of cygwin.fish looks somewhat random (depends on umask during build?): $ tar tvf fish-3.4.1-1.tar.xz etc/defaults/etc/fish/conf.d/cygwin.fish -rw-r-xr-- ... 1101 2022-04-07 20:34 etc/defaults/etc/fish/conf.d/cygwin.fish $ tar tvf fish-3.5.0-1.tar

Re: Smartctl issues in Cygwin with elevated terminal

2022-09-13 Thread Christian Franke
Hamish McIntyre-Bhatty wrote: I recently noticed that smartctl only works when the Cygwin Terminal isn't run as administrator - the opposite way round to Linux where you need superuser privileges to access the disk. With Administrator privileges on Windows 11, I get: "Read Device Identity Fai

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

2022-09-07 Thread Christian Franke
Eliot Moss wrote: I've not been able to find a way to get setup, when used from the command line, to *re*install an existing package, so as to repair any brokenness. For context, I had my disk get trashed and restored from a cloud backup. However, that tool is not entirely competent about everyt

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
Jon Turney wrote: A new setup release candidate is available at:  https://cygwin.com/setup/setup-2.920.x86_64.exe (64 bit version)  https://cygwin.com/setup/setup-2.920.x86.exe    (32 bit version) Please test, and report any problems here. This version aborts if "Sync" setting is reverted t

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
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 a new resolv.conf and replaces the current if different

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

2022-08-08 Thread Christian Franke
Oskar Skog wrote: Deleting a directory with the same name as a shortcut deletes everything in the current working directory. Tested on: CYGWIN_NT-10.0-19044 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin CYGWIN_NT-10.0-22000 3.3.5-341.x86_64 2022-05-13 12:27 UTC x86_64 Cygwin Script to rep

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
Andrew Schulman via Cygwin-announce wrote: fish 3.5.0-1 is now available in Cygwin. This release has many small improvements and bug fixes since the previous Cygwin release, 3.4.1-1. See the upstream release notes[1] for a list. Please note this minor permission issue which may affect install

Re: [ANNOUNCEMENT] cygport 0.35.2-1

2022-07-04 Thread Christian Franke
Jon Turney wrote: The following packages have been uploaded to the Cygwin distribution: * cygport-0.35.2-1 cygport is the standard method for building and maintaining packages for the Cygwin distribution. Jon Turney (7):   Add LICENSE variable I would suggest to print a note or warning

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

2022-07-02 Thread Christian Franke
The permission of cygwin.fish looks somewhat random (depends on umask during build?): $ tar tvf fish-3.4.1-1.tar.xz etc/defaults/etc/fish/conf.d/cygwin.fish -rw-r-xr-- ... 1101 2022-04-07 20:34 etc/defaults/etc/fish/conf.d/cygwin.fish $ tar tvf fish-3.5.0-1.tar.xz etc/defaults/etc/fish/conf.d

[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
Testcase: $ cygcheck -f /usr/bin/duplicity duplicity-0.7.19-1 $ duplicity --version Traceback (most recent call last):   File "/usr/bin/duplicity", line 42, in     import fasteners   File "/usr/lib/python2.7/site-packages/fasteners/__init__.py", line 23, in     from fasteners.lock import loc

Re: Editing with vim clears Windows 10 file system archive bit.

2021-11-15 Thread Christian Franke
Steve Ward via Cygwin wrote: Description of problem: While using vim 8.2 on cygwin 3.3 (x86_64) on Windows 10, when editing an existing file with vim and saving it, the Window’s file system archive bit is always left cleared (not modified state). This happens, whether the archive bit was set (is

Re: Portable CygWin version for Windows?

2021-11-14 Thread Christian Franke
Peter Steiner via Cygwin wrote: On webpage https://cygwin.com/ I found only a CgyWin Installer to download. I occasionally use Cygwin installed to NTFS partitions of USB flash drives for many years now. No problems so far, but the use cases were typically limited to "rescue" purposes (mintt

Re: [ANNOUNCEMENT] Test: cygutils 1.4.16-4 (TEST)

2021-08-23 Thread Christian Franke
Takashi Yano via Cygwin wrote: On Fri, 20 Aug 2021 16:28:42 -0700 Mark Geisert wrote: Hi Takashi, Takashi Yano via Cygwin wrote: ... However, I encountered a problem with putclip. Run 'echo | putclip' and paste clipboard to notepad.exe. Pasted string is garbled in my environment. Wha

[PATCH] cygutils-extra 1.4.16-3: cygdrop: Fix printf format strings

2021-08-14 Thread Christian Franke
Christian From 4cf442906ea9654543dd6683960993361f02e525 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sat, 14 Aug 2021 15:14:27 +0200 Subject: [PATCH] cygdrop: Fix printf format strings. --- src/cygdrop/cygdrop.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s

[PATCH] cygutils-extra 1.4.16-3: cygdrop: Fix crash

2021-08-14 Thread Christian Franke
From 330e4c8033ea17c312867906092397425d977c07 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sat, 14 Aug 2021 14:32:25 +0200 Subject: [PATCH] cygdrop: Fix return type of 'void' function. This fixes a crash with recent versions of g++ (GCC Bugzilla 96181). --- src/cygdrop/cygdrop

licensecheck 2.15.8-1: Requires Dpkg/IPC.pm which is not available

2021-03-06 Thread Christian Franke
licensecheck does not longer work: $ cygcheck -f /bin/perl perl_base-5.32.1-1 $ cygcheck -f /bin/licensecheck licensecheck-2.15.8-1 $ licensecheck Can't locate Dpkg/IPC.pm in @INC (you may need to install the Dpkg::IPC module) (@INC contains: /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-

[ANNOUNCEMENT] smartmontools 7.2-1

2021-02-08 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: [cygwin] DD bug fails to wipe last 48 sectors of a disk

2020-06-28 Thread Christian Franke
Andrey Repin wrote: dd if=/dev/zero of=/dev/sda iflag=fullblock bs=4M status=progress The root of the problem is that the Windows WriteFile() function apparently does not support truncated writes at EOM. If seek_position + write_size > disk_size, then WriteFile() does nothing and returns an

Re: pread() from /dev/sda fails with: Illegal seek

2020-01-12 Thread Christian Franke
David Balažic wrote: I'm porting an app from Linux to Cygwin and stumbled on this problem: pread on /dev/sda fails with Illegal seek. The simplified code is: #include #include #include #include int main(int argc, char *argv[]) { unsigned int sector_size = 512; void *buf = calloc(sec

[ANNOUNCEMENT] smartmontools 7.1-1

2020-01-02 Thread Christian Franke
://www.smartmontools.org/query?milestone=Release+7.0 Christian Franke -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

  1   2   3   4   5   >