Re: How to break cygwin inside dcrt0.cc ?

2017-05-04 Thread Mark Geisert

Marco Atzeri wrote:

I am likely missing something obvious, but I do not succeed to put
a breakpoint inside child_info_fork::alloc_stack

break child_info_fork::alloc_stack
Function "child_info_fork::alloc_stack" not defined.

  break /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc:408
No source file named /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc


Is your installed cygwin-debuginfo package the same version as your cygwin 
package?

..mark


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



Re: How to break cygwin inside dcrt0.cc ?

2017-05-04 Thread Mark Geisert

Marco Atzeri wrote:

I am likely missing something obvious, but I do not succeed to put
a breakpoint inside child_info_fork::alloc_stack

break child_info_fork::alloc_stack
Function "child_info_fork::alloc_stack" not defined.

  break /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc:408
No source file named /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc

Is dcrt0.cc built differently than the rest of cygwin dll ?


WFM.  This is with self-built cygwin1.dll.  Only obvious difference is my build 
directory is set up like FAQ says, building in /oss/build and with /oss/src 
symlinked to where Cygwin source tree resides.  Here's what that looks like:


~/src/forker gdb forker
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
[...]
Reading symbols from forker...done.
(gdb) b child_info_fork::alloc_stack
Function "child_info_fork::alloc_stack" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (child_info_fork::alloc_stack) pending.
(gdb) b main
Breakpoint 2 at 0x100401253: file forker.c, line 158.
(gdb) r 1
Starting program: /home/Mark/src/forker/forker 1
[New Thread 12628.0x494]
[New Thread 12628.0x327c]

Breakpoint 2, main (argc=2, argv=0xcc10) at forker.c:158
158 if (argc != 2) {
(gdb) i br
Num Type   Disp Enb AddressWhat
1   breakpoint keep y   0x000180046350 in 
child_info_fork::alloc_stack() at /oss/src/winsup/cygwin/dcrt0.cc:407

2   breakpoint keep y   0x000100401253 in main at forker.c:158
breakpoint already hit 1 time
(gdb)

..mark


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



Re: please update fontspec

2017-05-04 Thread Leon Meier

Dear Ken:


fontspec is part of the Cygwin texlive-collection-latexrecommended
package. Just rebuilding that package with an updated fontspec partially
solves the problem, in the sense that your test case compiles under
xelatex and lualatex and displays properly.  But the compilation yields
the following warning:

* fontspec warning: "tu-missing"
*
* The TU encoding seems to be missing; please update to the latest
version of
* LaTeX2e.

Sorry, I have no idea about where it comes from or what it means. :-(



In order to fix this properly without breaking other parts of TeX Live,
I think I should update all the texlive-collection-* packages to their
latest upstream releases in the now frozen TeX Live 2016.

I will do this, but it will take me a few days.


I will wait for a consistent state for a few days; no urgency at all.

Thanks in advance,
Leon

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



Re: Installing sshd with option --type manual

2017-05-04 Thread Fran Litterio

On 4/28/2017 11:48 AM, Charles Russell wrote:
Starting from a default installation of sshd that was working properly, 
I tried uninstalling sshd with cygrunsrv and reinstalling with --type 
manual.


(cygrunsrv --install sshd --path /usr/sbin/sshd.exe --type manual)

After rebooting I cannot start sshd with cygrunsrv.  Instead, I get 
message "Error starting a service: Query service status: Win32 Error 1062"


You can try opening the Services Control Panel app (run "start 
services.msc" in a Command Prompt) and changing the startup type of 
service "Cygwin sshd" to "Automatic (Delayed Start)".


In theory, that was all you changed with your cygrunsrv command.

Is it practical to use "--type manual" with sshd, or are its security 
restrictions too tight for this kind of installation? My intent was to 
have sshd off by default, but available when I need it, with current 
status easily seen with ps.


I routinely stop sshd with "net stop sshd" and re-start it later with 
"net start sshd".  If it's configure for manual startup, these commands 
should work just as well.


> [...] or should I rerun
> ssh-host-config?

In cases where I have re-run ssh-host-config, I have first deleted the 
service with "sc delete sshd" as Administrator out of a desire not to 
confuse the config script with an existing service. But that may not be 
necessary.

--
Fran


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



Re: bash shell gets aborts under latest Windows 10 updates as of 4/2/17

2017-05-04 Thread Fran Litterio

On 4/2/2017 2:53 PM, gavin bowlby via cygwin wrote:


I see the following when trying to open a Cygwin bash shell on my Win10 PC 
after applying updates today, 4/2/2017; I didn't see this before the latest 
Win10 update:

   0 [main] bash 11884 child_info_fork::abort: 
C:\cygwin\bin\cygiconv-2.dll: Loaded to different address: parent(0xFA) != 
child(0xE8)
-bash: fork: retry: No child processes


I believe this is a classic case where rebasing is required.  See 
https://stackoverflow.com/questions/33125842/what-does-rebaseall-in-cygwin-do 
for details.  Sometimes the problem can be fixed by rebooting and 
starting a Cygwin app (e.g., Bash) very soon after boot (so that the 
DLLs get loaded at their preferred addressed), but that is a temporary 
workaround.


You can rebase all the DLLs as follows:

- Terminate _all_ Cygwin apps (don't forget about daemons like sshd).
- Open a Command Prompt.
- Run "ash" (a shell included with Cygwin).  Do not run "bash".
- Enter command "rebaseall".
- I usually follow this with a reboot, but that may not be necessary.

Hope this helps.
--
Fran


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



Re: Missing announcements for screen?

2017-05-04 Thread Andrew Schulman
> On Wed, May 3, 2017 at 11:45 AM, Nellis, Kenneth (Conduent) wrote:
> > FWIW, I also care about announcements. It's how I monitor whether or not I
> > should update. I hope they continue.
> 
> Same here

OK, I hear you.


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



[ANNOUNCEMENT] nano 2.8.2-1

2017-05-04 Thread Yaakov Selkowitz
The following packages have been uploaded to the Cygwin distribution:

* nano-2.8.2-1

GNU nano is a small and friendly console-mode text editor, based on and 
mostly compatible with UW Pico. Besides basic text editing, nano offers 
many extra features like an interactive search and replace, go to line and 
column number, auto-indentation, feature toggles, internationalization 
support, and filename tab completion.

This is an update to the latest upstream release:

https://www.nano-editor.org/news.php

Please note that this release requires changes to cygport.nanorc, which 
are currently available in cygport git master.

--
Yaakov

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



Re: [ATTN: procps maintainer] RealPageSize

2017-05-04 Thread Marco Atzeri

On 04/05/2017 17:00, Marty Shannon wrote:

This fix for php (posted by ricardohenry...@gmail.com) should be
applied to the code for "top"; it (and /usr/bin/time -v) think the
page size is actually 64k, and reports RESident size as 16 times what
it should be.

 # if HAVE_UNISTD_H
 #  include 
 #  if defined(_SC_PAGESIZE)
+#   ifdef __CYGWIN__
+#define REAL_PAGE_SIZE 4096
+#   else
 #define REAL_PAGE_SIZE sysconf(_SC_PAGESIZE);
+#   endif
 #  elif defined(_SC_PAGE_SIZE)
 #define REAL_PAGE_SIZE sysconf(_SC_PAGE_SIZE);
 #  endif

Cheers,
Marty



How is top measuring the memory of process ?

  /proc//statm

should report the correct info in
sysconf(_SC_PAGESIZE) = 64K units.


https://cygwin.com/ml/cygwin-patches/2016-q4/msg9.html

Regards
Marco

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



Re: [ANNOUNCEMENT] New: cygextreg-1.2.0-1

2017-05-04 Thread Brian Inglis
On 2017-05-04 01:29, Joni Eskelinen wrote:
> The following package has been added to the Cygwin distribution:
> * cygextreg-1.2.0-1
> CygExtReg is a utility program allowing to register an extension
> (eg. .sh) to be executed in Cygwin by double-clicking a file from
> Windows File Explorer or by dragging and dropping files to an icon of
> a registered extension.
> https://github.com/sop/cygextreg

Are there any good sources of freely redistributable icon sets from 
windows systems or launchers for Unix utilities e.g. gnome, mate, 
pcmanfm, etc.?

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

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



[ATTN: procps maintainer] RealPageSize

2017-05-04 Thread Marty Shannon
This fix for php (posted by ricardohenry...@gmail.com) should be
applied to the code for "top"; it (and /usr/bin/time -v) think the
page size is actually 64k, and reports RESident size as 16 times what
it should be.

 # if HAVE_UNISTD_H
 #  include 
 #  if defined(_SC_PAGESIZE)
+#   ifdef __CYGWIN__
+#define REAL_PAGE_SIZE 4096
+#   else
 #define REAL_PAGE_SIZE sysconf(_SC_PAGESIZE);
+#   endif
 #  elif defined(_SC_PAGE_SIZE)
 #define REAL_PAGE_SIZE sysconf(_SC_PAGE_SIZE);
 #  endif

Cheers,
Marty

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



[ATTN: PHP maintainer] Re: Fix for REAL_PAGE_SIZE in PHP

2017-05-04 Thread Richard H Lee

Here is my proposed patch for this bug:

diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c
index 3fd7fa0..f5b9bea 100644
--- a/Zend/zend_stream.c
+++ b/Zend/zend_stream.c
@@ -30,7 +30,11 @@
 # if HAVE_UNISTD_H
 #  include 
 #  if defined(_SC_PAGESIZE)
+#   ifdef __CYGWIN__
+#define REAL_PAGE_SIZE 4096
+#   else
 #define REAL_PAGE_SIZE sysconf(_SC_PAGESIZE);
+#   endif
 #  elif defined(_SC_PAGE_SIZE)
 #define REAL_PAGE_SIZE sysconf(_SC_PAGE_SIZE);
 #  endif
diff --git a/main/main.c b/main/main.c
index 01ed3a6..0909309 100644
--- a/main/main.c
+++ b/main/main.c
@@ -96,7 +96,11 @@
 # if HAVE_UNISTD_H
 #  include 
 #  if defined(_SC_PAGESIZE)
+#   ifdef __CYGWIN__
+#define REAL_PAGE_SIZE 4096
+#   else
 #define REAL_PAGE_SIZE sysconf(_SC_PAGESIZE);
+#   endif
 #  elif defined(_SC_PAGE_SIZE)
 #define REAL_PAGE_SIZE sysconf(_SC_PAGE_SIZE);
 #  endif

This definition needs to be fixed in two places as there are two
different places where a PHP source file can be mmap()ed, depending on
whether it is loaded using php-cli or loaded when php is run from a library.

On 02/05/2017 11:28, Richard H Lee wrote:

Should this fix go upstream to PHP or be submitted to the PHP
package within Cygwin?


I ask this as partially accessibly memory pages I guess are a quirk of
Cygwin. But then again programs ideally should not read past the end of
the EOF in the region the file is mmap()ed to.


Richard

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



Re: Menus from Fedora virtual machine off screen

2017-05-04 Thread Gulliver Smith
I also had this problem with a freshly created fedora 25 VM. I am
keeping both cygwin and the VMs up to date.
XWin.0.log attached.

On Tue, Feb 14, 2017 at 3:07 PM, Jon Turney  wrote:
> On 11/02/2017 22:14, Gulliver Smith wrote:
>>
>> I don't know if this is a Fedora 25 question or a cygwin X question
>> since I upgraded at the same time.
>>
>> Ever since my Fedora 25 upgrade, the menus from programs running on
>> the Linux box using cygwin x as the X server appear off screen at the
>> top left. It is impossible to use these menus.
>
>
> Thanks for reporting this.
>
> There have been a few other similar reports, so I'd like to understand what
> the problem is here.
>
> For future issues, can I ask you to use the cygwin list, per [1]
>
> [1] https://cygwin.com/ml/cygwin-xfree-announce/2015-03/msg1.html
>
>> An example is Firefox'smenu, but this happens with many Linux programs.
>>
>> Is there a configuration option that I am missing in cygwin X?
>
>
> No, I think this is probably a bug, somewhere.
>
>> Fedora release 25 (Twenty Five)
>
>
> I built an x64 Fedora 25 VM and attempted to reproduce this problem, but
> with no success.
>
> Are you using a non-default visual theme?
>
> Can you attach an XWin.0.log file? I'm interested if you have a single or
> multiple monitor setup, and what the monitor geometry is.
>
> --
> Jon Turney
> Volunteer Cygwin/X X Server maintainer


XWin.0.log
Description: Binary data

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

Re: Please update fontspec

2017-05-04 Thread Ken Brown

On 5/3/2017 7:30 PM, Леон Майер wrote:

Dear texlive maintainers, might I ask you to update fontspec to v2.6 or newer. 
Reason: a nasty bug, see 
https://tex.stackexchange.com/questions/367559/emph-in-theorem-with-unicode-math-and-amsthm


fontspec is part of the Cygwin texlive-collection-latexrecommended package. 
Just rebuilding that package with an updated fontspec partially solves the 
problem, in the sense that your test case compiles under xelatex and lualatex 
and displays properly.  But the compilation yields the following warning:


* fontspec warning: "tu-missing"
*
* The TU encoding seems to be missing; please update to the latest version of
* LaTeX2e.

In order to fix this properly without breaking other parts of TeX Live, I think 
I should update all the texlive-collection-* packages to their latest upstream 
releases in the now frozen TeX Live 2016.


I will do this, but it will take me a few days.  In the meantime, I could make 
the partial fix available to you if it would be of use.


Ken Brown
Cygwin's TeX Live maintainer

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



How to break cygwin inside dcrt0.cc ?

2017-05-04 Thread Marco Atzeri

Hi,

I am likely missing something obvious, but I do not succeed to put
a breakpoint inside child_info_fork::alloc_stack

break child_info_fork::alloc_stack
Function "child_info_fork::alloc_stack" not defined.

 break /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc:408
No source file named /usr/src/debug/cygwin-2.8.0-1/winsup/cygwin/dcrt0.cc

Is dcrt0.cc built differently than the rest of cygwin dll ?

Thanks in advance
Marco

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



Re: Avast has put 2 Cygwin files in its chest

2017-05-04 Thread Marco Atzeri

On 04/05/2017 12:16, David Macek wrote:

On 4. 5. 2017 11:33, Alex Brega wrote:

Would be possible for you to provide me these files (dbus-daemon.exe and 
ssh.exe) via mail or uploaded somewhere in order to recover them on their 
original folders ?


The installer can re-install any broken packages, including those containing ssh.exe 
and dbus-daemon.exe. The installer is available at 
.



Alex,
to find the package containing a given file you can use cygcheck.

$ cygcheck -p usr/bin/ssh.exe
Found 4 matches for usr/bin/ssh.exe
openssh-debuginfo-7.4p1-1 - openssh-debuginfo: Debug info for openssh 
(installed binaries and support files)

openssh-debuginfo-7.5p1-1 - openssh-debuginfo: Debug info for openssh
openssh-7.4p1-1 - openssh: The OpenSSH server and client programs 
(installed binaries and support files)

openssh-7.5p1-1 - openssh: The OpenSSH server and client programs

so you need to reinstall openssh-7.5p1-1

Similar for dbus-daemon.exe  ->  dbus-1.10.8-1

The best approach, as David suggests, is to reinstall the package with 
setup; however you can also download the package files from a mirror

and extract the file, but this could create wrong file pernmissions:

Assuming you need to the 64bit version package file:

http://ba.mirror.garr.it/mirrors/sourceware.org/cygwin/x86_64/release/openssh/openssh-7.5p1-1.tar.xz 



http://ba.mirror.garr.it/mirrors/sourceware.org/cygwin/x86_64/release/dbus/dbus-1.10.8-1.tar.xz 



use "x86" instead of "x86_64" for 32bit version

Regards
Marco

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



Re: Avast has put 2 Cygwin files in its chest

2017-05-04 Thread David Macek
On 4. 5. 2017 11:33, Alex Brega wrote:
> Would be possible for you to provide me these files (dbus-daemon.exe and 
> ssh.exe) via mail or uploaded somewhere in order to recover them on their 
> original folders ? 

The installer can re-install any broken packages, including those containing 
ssh.exe and dbus-daemon.exe. The installer is available at 
.

-- 
David Macek



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Latest Git-2.12.2 cannot install python packages for pip

2017-05-04 Thread Adam Dinwoodie
On Tue, May 02, 2017 at 06:52:40PM -0600, Doug Henderson wrote:
> On 2 May 2017 at 13:06, ankostis wrote:
> > On Windows, with Cygwin-git 2.12.2 the python command:
> >
> > pip install git+https://github.com/...
> >
> > fails to work with the following error:
> 
> 
> I suspect you have a windows version of python ahead of the cygwin
> version in the path. At least that is how it looks from the output of
> "cygcheck -s -v -r" you provided.

To close the loop, since this has also been discussed on the Git mailing
list: yes, ankostis was attempting to use Cygwin Git with Windows
Python.  As far as I'm concerned, this isn't a supported scenario; if it
worked with Git v2.8.3-1, that was coincidence rather than by design.

As such, I'm not going to investigate this further.  I am willing to
spend a little time helping others investigate, however, and I'm willing
to apply patches to the Cygwin Git builds to resolve/remove this sort of
problem, provided they've been at least tentatively accepted for future
application to the upstream Git source code.

Adam

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



Avast has put 2 Cygwin files in its chest

2017-05-04 Thread Alex Brega
Good morning,
a customer of us has big problems with Cygwin and Avast

Infact he has returned his brand laptop bought from us due of it.
The strange thing is a dvd preinstalled file of this Lenovo laptop has been 
succesfully recovered from the chest,but not the 2 files cygwin 
(dbus-daemon.exe and ssh.exe,both in the same folder c:\cygwin\bin).They can't 
be recovered both in the original place and in an external folder as well.I 
have located the chest folder,but it's encrypted.
Would be possible for you to provide me these files (dbus-daemon.exe and 
ssh.exe) via mail or uploaded somewhere in order to recover them on their 
original folders ? 
Please give me a feedback,as soon as possible.

Thanks in advance

Regards


Brega Alex
4D Sistemi Informatici s.r.l.
Via Kennedy, 84 - 27058 Voghera (PV) - Italy
Tel. (+39) 0383 644311
Fax (+39) 0383 644399
E-mail : br...@4dsistemi.it



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



[ANNOUNCEMENT] New: cygextreg-1.2.0-1

2017-05-04 Thread Joni Eskelinen
The following package has been added to the Cygwin distribution:

* cygextreg-1.2.0-1

CygExtReg is a utility program allowing to register an extension (eg.
.sh) to be executed in Cygwin by double-clicking a file from Windows
File Explorer or by dragging and dropping files to an icon of a
registered extension.

https://github.com/sop/cygextreg

-- 
Joni

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