Re: emacs oddity

2014-05-21 Thread Markus Hoenicka

At 2014-05-21 03:42, Ken Brown was heard to say:

On 5/20/2014 7:57 PM, Max Polk wrote:
I've been noticing the background timer giving odd messages from 
emacs-w32 once in a while such as the following when not touching the 
keyboard and the editor is idle.:


seconds-to-time: Arithmetic range error: "round", -0.0e+NaN
seconds-to-time: Arithmetic range error: "round", 0.0

The stack dump of a recent emacs crash report on this list seemed to 
be in background timer code.  Maybe we found something.


Have you tried the test release
(https://cygwin.com/ml/cygwin/2014-05/msg00047.html)?



Hi,

I haven't followed this thread in all its gory details, but I recall 
that only emacs-w32 was reported to have problems. I have noticed random 
crashes and weird messages without prior user actions in emacs-x11 since 
I moved from WinXP + Cygwin x86 to Win7 + Cygwin x86_64 a few weeks ago. 
None of these problems ever occurred on either FreeBSD (amd64, Emacs 24) 
or Debian (amd64, Emacs 23). I just thought I'd mention this because the 
problem does not seem to be limited to the -w32 build of Emacs. I've 
preserved the odd messages on three separate occasions:


Args out of range: [t 21335 39727 373923 0.5 blink-cursor-timer-function 
nil nil 10], 4


Invalid function: #[(timer) "^H >^H

^[\211^203^Q^@Å^H   \"^Q^K\203^Z^@Å^H
\"^R^L\206^_^@^K*\207" [timer timer-list timer-idle-list cell2 cell1 
delq] 4 2245674]


timer-relative-time: Wrong type argument: vectorp, [t1 time high low 
micro pico nil 3 0 2 ...]


All of them indicate timer related problems as Max pointed out. I do not 
have meaningful backtraces of the crashes at this time because the 
installed emacs-x11 seems to lack debug symbols.


I'll grab the -x11 build of Ken's test release and see if these odd 
messages and crashes still occur.


regards,
Markus

--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38


--
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: Bug report: 1.7.19 broke floppy drive access

2014-05-21 Thread Corinna Vinschen
On May 20 16:41, Sean Gugler wrote:
> Confirmed fixed, Corinna. Awesome! Thank you!
> ~ Sean
> 
> On Tue, 20 May 2014 12:39:20 +0200, Corinna Vinschen wrote:
> >On May 19 15:28, Sean Gugler wrote:
> >> Greetings,
> >>
> >> I've discovered that 5.25" and 3.5" floppy drive access became broken
> >> as of Cygwin1.dll version 1.7.19-1 (2013-06-05 01:07:23).  I reported
> >> this back in October, but perhaps the message never got through. The
> >> problem persists with the latest version.
> >>
> >> I tested by updating all my packages to current as of 2014-05-07, then
> >> simply swapping cygwin1.dll with older versions.
> >>
> >> cygwin1.dll 1.7.29-1 (2014-02-09 13:07:01 - LATEST)
> >>
> >> $ dd if=/dev/fd1 of=./junk count=1
> >> dd: opening `/dev/fd1': Bad address
> >>
> >> cygwin1.dll 1.7.19-1 (2013-06-05 01:07:23)
> >>
> >> $ dd if=/dev/fd1 of=./junk count=1
> >> dd: opening `/dev/fd1': Bad address
> >>
> >> cygwin1.dll 1.7.18-1 (2013-04-19 01:40:41)
> >>
> >> $ dd if=/dev/fd1 of=./junk count=1
> >> 1+0 records in
> >> 1+0 records out
> >> 512 bytes (512 B) copied, 2.83143 s, 0.2 kB/s
> >
> >Thanks for the report.  When removing the code which was supposedly
> >only affecting Windows 2000 and earlier, I didn't notice that this
> >code path is still required for floppy drives.  I don't own a floppy
> >drive for ages :}
> >
> >This should be fixed in CVS.  Please give the Cygwin DLL from today's
> >snapshot on http://cygwin.com/snapshots/ a try.

Thanks for your feedback.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpn91vvfTGBK.pgp
Description: PGP signature


Installing a program as a Windows service on Windows 8.1

2014-05-21 Thread Nick Urbanik

Dear Folks,

I have written a Perl program that I want to run as a service on
Windows 8.1.  However, when I type:
cygrunsrv -I NAME -p /path/to/NAME

Note: NAME has execute permissions, and can be run.

I get the error message:
cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5:
Access is denied.

I am doing this from an account that is shown as "Administrator".  I
am not very familiar with Windows; I only use it to solve problems
that other users of it are having.  Any suggestions are most welcome.
--
Nick Urbanik http://nicku.org   ni...@nicku.org
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24

--
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 a program as a Windows service on Windows 8.1

2014-05-21 Thread Arjen Markus
You may need to open the properties dialogue for that file and edit
the properties. I have run into similar problems myself (installing a
DLL via a makefile causes the loss of the execute permission in my
case. No idea why.)

To do this, select the file in question in Windows Explorer and press
the right mouse button. You need the security tab and the permissions
are best set to "ful control" - more than necessary, I guess, but
easiest.

Regards,

Arjen

2014-05-21 13:23 GMT+02:00 Nick Urbanik :
> Dear Folks,
>
> I have written a Perl program that I want to run as a service on
> Windows 8.1.  However, when I type:
> cygrunsrv -I NAME -p /path/to/NAME
>
> Note: NAME has execute permissions, and can be run.
>
> I get the error message:
> cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5:
> Access is denied.
>
> I am doing this from an account that is shown as "Administrator".  I
> am not very familiar with Windows; I only use it to solve problems
> that other users of it are having.  Any suggestions are most welcome.
> --
> Nick Urbanik http://nicku.org   ni...@nicku.org
> GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
>
> --
> 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
>

--
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: emacs oddity

2014-05-21 Thread Ken Brown

On 5/21/2014 3:13 AM, Markus Hoenicka wrote:

At 2014-05-21 03:42, Ken Brown was heard to say:

On 5/20/2014 7:57 PM, Max Polk wrote:

I've been noticing the background timer giving odd messages from
emacs-w32 once in a while such as the following when not touching the
keyboard and the editor is idle.:

seconds-to-time: Arithmetic range error: "round", -0.0e+NaN
seconds-to-time: Arithmetic range error: "round", 0.0

The stack dump of a recent emacs crash report on this list seemed to
be in background timer code.  Maybe we found something.


Have you tried the test release
(https://cygwin.com/ml/cygwin/2014-05/msg00047.html)?



Hi,

I haven't followed this thread in all its gory details, but I recall
that only emacs-w32 was reported to have problems. I have noticed random
crashes and weird messages without prior user actions in emacs-x11 since
I moved from WinXP + Cygwin x86 to Win7 + Cygwin x86_64 a few weeks ago.
None of these problems ever occurred on either FreeBSD (amd64, Emacs 24)
or Debian (amd64, Emacs 23). I just thought I'd mention this because the
problem does not seem to be limited to the -w32 build of Emacs. I've
preserved the odd messages on three separate occasions:

Args out of range: [t 21335 39727 373923 0.5 blink-cursor-timer-function
nil nil 10], 4

Invalid function: #[(timer) "^H >^H

^[\211^203^Q^@Å^H\"^Q^K\203^Z^@Å^H

\"^R^L\206^_^@^K*\207" [timer timer-list timer-idle-list cell2 cell1
delq] 4 2245674]

timer-relative-time: Wrong type argument: vectorp, [t1 time high low
micro pico nil 3 0 2 ...]

All of them indicate timer related problems as Max pointed out. I do not
have meaningful backtraces of the crashes at this time because the
installed emacs-x11 seems to lack debug symbols.


You have to install emacs-debuginfo in order to get the symbols.

Ken

--
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: emacs oddity

2014-05-21 Thread Markus Hoenicka

Am 2014-05-21 13:46, schrieb Ken Brown:

On 5/21/2014 3:13 AM, Markus Hoenicka wrote:

At 2014-05-21 03:42, Ken Brown was heard to say:

On 5/20/2014 7:57 PM, Max Polk wrote:

I've been noticing the background timer giving odd messages from
emacs-w32 once in a while such as the following when not touching 
the

keyboard and the editor is idle.:

seconds-to-time: Arithmetic range error: "round", -0.0e+NaN
seconds-to-time: Arithmetic range error: "round", 0.0

The stack dump of a recent emacs crash report on this list seemed to
be in background timer code.  Maybe we found something.


Have you tried the test release
(https://cygwin.com/ml/cygwin/2014-05/msg00047.html)?



Hi,

I haven't followed this thread in all its gory details, but I recall
that only emacs-w32 was reported to have problems. I have noticed 
random
crashes and weird messages without prior user actions in emacs-x11 
since
I moved from WinXP + Cygwin x86 to Win7 + Cygwin x86_64 a few weeks 
ago.
None of these problems ever occurred on either FreeBSD (amd64, Emacs 
24)
or Debian (amd64, Emacs 23). I just thought I'd mention this because 
the

problem does not seem to be limited to the -w32 build of Emacs. I've
preserved the odd messages on three separate occasions:

Args out of range: [t 21335 39727 373923 0.5 
blink-cursor-timer-function

nil nil 10], 4

Invalid function: #[(timer) "^H >^H

^[\211^203^Q^@Å^H\"^Q^K\203^Z^@Å^H

\"^R^L\206^_^@^K*\207" [timer timer-list timer-idle-list cell2 cell1
delq] 4 2245674]

timer-relative-time: Wrong type argument: vectorp, [t1 time high low
micro pico nil 3 0 2 ...]

All of them indicate timer related problems as Max pointed out. I do 
not

have meaningful backtraces of the crashes at this time because the
installed emacs-x11 seems to lack debug symbols.


You have to install emacs-debuginfo in order to get the symbols.



Thanks, I've installed it now just in case. Until now, no crashes or 
weird messages with emacs-X11-24.3.90-1 yet...


regards,
Markus

--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38


--
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 a program as a Windows service on Windows 8.1

2014-05-21 Thread Andrey Repin
Greetings, Nick Urbanik!

> I have written a Perl program that I want to run as a service on
> Windows 8.1.  However, when I type:
> cygrunsrv -I NAME -p /path/to/NAME

> Note: NAME has execute permissions, and can be run.

> I get the error message:
> cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5:
> Access is denied.

> I am doing this from an account that is shown as "Administrator".  I
> am not very familiar with Windows; I only use it to solve problems
> that other users of it are having.  Any suggestions are most welcome.

That's not enough. Even "administrator" don't have full rights by default.
You have to run this command from elevated prompt.
Be aware though,  that I've encountered an issue with Win8, where ANY service 
I install that is not standard, turn into "manual start" and no longer run 
until someone log in to the system.


--
WBR,
Andrey Repin (anrdae...@yandex.ru) 21.05.2014, <16:00>

Sorry for my terrible english...


--
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: Default manifest

2014-05-21 Thread Ken Brown

On 5/15/2014 3:56 AM, Corinna Vinschen wrote:

On May 15 01:25, Christopher Faylor wrote:

On Wed, May 14, 2014 at 08:07:26PM -0400, Ken Brown wrote:

Are we close to a resolution of the problems with default manifests?  It
looks to me like all the pieces are in place, but maybe I've missed
something:

   https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01387.html
   https://sourceware.org/bugzilla/show_bug.cgi?id=16790#c9
   https://sourceware.org/bugzilla/show_bug.cgi?id=16807#c8

I'm not trying to rush any maintainers, but I'm asking because I
currently have to use a self-built version of binutils, which doesn't
provide a default manifest, because of the problem I reported here:

   http://cygwin.com/ml/cygwin/2014-04/msg00199.html


I'll update binutils ASAP.


For the default manifest to get going we also need the patcha new GCC
with Nick's patch from

   https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01378.html

Is that easily backportable to GCC 4.8, or does 4.8 not support the
%if-exists functionality?


JonY, any chance we could get a release of GCC that includes this patch?

Ken

--
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] Updated: lftp 4.4.16-1

2014-05-21 Thread Andrew Schulman
A new version of lftp, 4.4.16-1, is available in the Cygwin distribution.
This is a new upstream release, with bug fixes.  Please see
http://lftp.yar.ru/news.html for the list of changes since version 4.4.14.

lftp is a sophisticated file transfer program and ftp/http/bittorrent
client. It supports multiple network protocols.  It uses the readline
library for input, so it offers tab completion and command history.  It has
job control and bookmarks. It can mirror sites and transfer multiple files
in parallel. It keeps trying interrupted operations until it can complete
them.

Andrew E. Schulman


***


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com_at_cygwin.com

If you need more information on unsubscribing, start reading here: 

http://cygwin.com/lists.html#subscribe-unsubscribe

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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] Updated, new for x86_64: sng

2014-05-21 Thread Andrew Schulman
A new version of sng, 1.0.5-2, is available in the Cygwin distribution.

* Rebuilt with libpng15 instead of libpng12, so this package is no
longer obsolete in Cygwin.
* First release for x86_64.

SNG (Scriptable Network Graphics) is a minilanguage designed
specifically to represent the entire contents of a PNG (Portable Network
Graphics) file in an editable form.  Thus, SNGs representing elaborate
graphics images and ancillary chunk data can be readily generated or
modified using only text tools.  SNG is implemented by a
compiler/decompiler called sng that losslessly translates between SNG
and PNG.

Andrew E. Schulman


***


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com_at_cygwin.com

If you need more information on unsubscribing, start reading here: 

http://cygwin.com/lists.html#subscribe-unsubscribe

Please read *all* of the information on unsubscribing that is available
starting at this URL.

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



install windows updates trough ssh

2014-05-21 Thread debian

hi,

ist there a way to install windows updates trough ssh (key-authentication) ?

i tried this PS-Module:

http://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc

it works(trough ssh):

Get-WUHistory
Get-WUList
Get-WURebootStatus
Get-WUInstallerStatus

but
Get-WUInstall works on Cygwin but not in the ssh session.

best regards Rainer



--
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: Default manifest

2014-05-21 Thread JonY
On 5/21/2014 21:19, Ken Brown wrote:
>>
>> For the default manifest to get going we also need the patcha new GCC
>> with Nick's patch from
>>
>>https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01378.html
>>
>> Is that easily backportable to GCC 4.8, or does 4.8 not support the
>> %if-exists functionality?
> 
> JonY, any chance we could get a release of GCC that includes this patch?
> 
> Ken
> 

Sure, I'll take a jab at it this weekend.




signature.asc
Description: OpenPGP digital signature


Re: Emacs-w32... still crashing...

2014-05-21 Thread Ken Brown

On 5/19/2014 10:42 AM, Ken Brown wrote:

On 5/19/2014 9:20 AM, Zdzislaw Meglicki wrote:

(gdb) backtrace
#0  0x7ff9550c9e3b in KERNELBASE!DebugBreak ()
from /cygdrive/c/WINDOWS/system32/KERNELBASE.dll
#1  0x00010061a344 in emacs_abort ()
at /usr/src/debug/emacs-24.3.90-1/src/w32fns.c:8460
#2  0x00010057e7ce in arithcompare (num1=0, num2=400,
comparison=ARITH_GRTR_OR_EQUAL)
at /usr/src/debug/emacs-24.3.90-1/src/data.c:2319


Thanks. These crashes are very mysterious to me.  Two of them have
recently been reported to the emacs bug tracker, including one by me a
couple hours ago:

   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17526



FYI, this turned out to be an emacs bug that had nothing to do with 
Cygwin and is now apparently fixed.  Your crash, on the other hand, 
remains mysterious.


Ken

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



libc++ doesn't use C99 features

2014-05-21 Thread Markus Wanner
Hi,

trying some C++11 features, I recently figured that Cygwin's libstdc++
does not use C99 features. I.e. c++config.h has the following lines:

/* Define if C99 functions or macros from , , ,
   , and  can be used or exposed. */
/* #undef _GLIBCXX_USE_C99 */


That in turn disables some C++11 features, so that the following example
fails to compile (due to its use of std::to_string).


#include 
#include 

int main()
{
  std::cout << std::to_string(42L) << std::endl;
  return 0;
}


Is this a known issue?


Regards

Markus Wanner




signature.asc
Description: OpenPGP digital signature


Problem with python ctypes module

2014-05-21 Thread Resch Reinhard
Hello,

I have found the following problem on Windows XP with Cygwin 1.7.29:
If I build a Fortran dll and try to load it from Python by means of the ctypes 
module, python.exe crashes after LoadLibrary returned.
That problem may be reproduced with the files in the attachment.

Just type
tar -zxvf pyfor.tar.gz
make test

I have installed the following software:

Betriebssystemname  Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 3 Build 2600
Python 2.7.3
ctypes 1.1.0
GNU Fortran (GCC) 4.8.2

Here is the output of the following commands:

$ uname -a
CYGWIN_NT-5.1 P5915 1.7.29(0.272/5/3) 2014-04-07 13:44 i686 Cygwin

$ ldd test.dll
ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c91)
kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c80)
cygwin1.dll => /usr/bin/cygwin1.dll (0x6100)
cyggfortran-3.dll => /usr/bin/cyggfortran-3.dll (0x6998)
cygquadmath-0.dll => /usr/bin/cygquadmath-0.dll (0x6260)
cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x6fae)

$ make test
python test.py
loading ..
done
Makefile:4: recipe for target 'test' failed
make: *** [test] Aborted (Speicherauszug erstellt)

The problem seems to be related to the Fortran runtime libraries.
If the PRINT statement in test.f95 is removed, the problem disappears:

MODULE TEST
CONTAINS
SUBROUTINE RUN()
!~ PRINT *, 'RUNNING'
END SUBROUTINE
END MODULE

Best regards,
R. Resch


pyfor.tar.gz
Description: pyfor.tar.gz
--
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

Emacs-w32... still crashing...

2014-05-21 Thread Zdzislaw Meglicki
It just crashed on me again, after a couple of days
of no crashes at all. The versions of everything
are unchanged since my last message. But this
time, and this is new, I have not seen it before, 
it did not give me the gdb option. Instead it just
crashed and said: "Segmentation fault (core dumped)..."
I have the core, though I don't know if it's going to
be of much use to anyone. I have been reading
mail, scrolling through the messages, with rmail at the 
time.

Zdzislaw (Gustav) Meglicki
Indiana University

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



gcc-4.9 option

2014-05-21 Thread Tim Prince
Excellent, once I realized that all the component updates must be 
selected individually on the setup menu (no automatic dependency 
resolution).


--
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: Emacs-w32... still crashing...

2014-05-21 Thread Ken Brown

On 5/21/2014 4:14 PM, Zdzislaw Meglicki wrote:

It just crashed on me again, after a couple of days
of no crashes at all. The versions of everything
are unchanged since my last message. But this
time, and this is new, I have not seen it before,
it did not give me the gdb option. Instead it just
crashed and said: "Segmentation fault (core dumped)..."
I have the core, though I don't know if it's going to
be of much use to anyone. I have been reading
mail, scrolling through the messages, with rmail at the
time.


You only get the prompt to attach gdb if the exception is caught by 
emacs, which then calls emacs_abort.  If the exception is handled at a 
higher level, this won't happen.  The best thing is to just start emacs 
under gdb to begin with.


Ken


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



Problem logging into ssh

2014-05-21 Thread Noah White
I’ve installed and configured sshd to run as a service under a particular 
account which is an Administrator. I can ssh in fine as that user. However, if 
I try to ssh as any other user I get the following error:

Last login: Wed May 21 18:58:35 2014 from foo.home
/bin/bash: Operation not permitted
Connection to tango closed.

I’ve found a few threads talking about this issue but none of the 
details/solutions were either pertinent or worked.  

Other details:

Windows Server 2008 R2
Cygwin 1.7.29(0.272/5/3) CYGWIN_NT-6.1-WOW64
OpenSSH 6.6p1-1

TIA,

-Noah



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



Cannot log in to SSHD, either with public key or password

2014-05-21 Thread Chloe


Please help, I cannot log into Cygwin with SSH.

ssh -vvv Chloe@localhost log: http://pastebin.com/vt2aP86F

I don't know why it says
debug3: Could not load "/home/Chloe/.ssh/id_rsa" as a RSA1 public key
because I can use that key to log into a VPS.

I installed the latest ssh. I verified permissions:

---
$ ls -ld . *
drw---+ 1 Chloe None 0 May 21 19:31 .
-rw---  1 Chloe None   395 May 21 19:31 authorized_keys
-rw---  1 Chloe None  1638 Apr  6  2009 authorized_keys.old
-rw---  1 Chloe None   668 Apr  6  2009 id_dsa
-rw---  1 Chloe None   603 Apr  6  2009 id_dsa.pub
-rw---  1 Chloe None  1675 Apr  6  2009 id_rsa
-rw---  1 Chloe None  1464 Apr 23  2009 id_rsa.ppk
-rw---  1 Chloe None   395 Apr  6  2009 id_rsa.pub
-rw---  1 Chloe None   976 Apr  6  2009 identity
-rw---  1 Chloe None   640 Apr  6  2009 identity.pub
-rw---  1 Chloe None 12226 May 21 19:30 known_hosts
--

This is the error in Application event viewer log:

-
The description for Event ID 0 from source sshd cannot be found. Either 
the component that raises this event is not installed on your local 
computer or the installation is corrupted. You can install or repair the 
component on the local computer.


If the event originated on another computer, the display information had 
to be saved with the event.


The following information was included with the event:

sshd: PID 6840: Failed password for Chloe from 127.0.0.1 port 49802 ssh2
---

I've also tried
$ ssh chloe@localhost
and
$ ssh Chloe@127.0.0.1
and I've also tried Putty.

Here are non-comments in sshd_config

---
$ grep -v ^\# /etc/sshd_config | grep -ve '^\s*$'
Port 22
ListenAddress 127.0.0.1
StrictModes no
AuthorizedKeysFile  .ssh/authorized_keys
UsePrivilegeSeparation sandbox  # Default for new installations.
Subsystem   sftp/usr/sbin/sftp-server
-

I see this in the sshd.log

--
$ tail -1 /var/log/sshd.log
Could not load host key: /etc/ssh_host_ecdsa_key
---

But I don't understand why it can't open it. That's how ssh-host-config 
set it up. I had to change owner for sshd_config to myself so I could 
save my edits (ListenAddress).



$ ls -l ssh*
-rw-r--r--  1 cyg_server root 1574 May 21 19:22 ssh_config
-rw---  1 cyg_server root  672 May 21 18:19 ssh_host_dsa_key
-rw-r--r--  1 cyg_server root  599 May 21 18:19 ssh_host_dsa_key.pub
-rw---  1 cyg_server root  227 May 21 18:19 ssh_host_ecdsa_key
-rw-r--r--  1 cyg_server root  171 May 21 18:19 ssh_host_ecdsa_key.pub
-rw---  1 cyg_server root  399 May 21 18:19 ssh_host_ed25519_key
-rw-r--r--  1 cyg_server root   91 May 21 18:19 ssh_host_ed25519_key.pub
-rw---  1 cyg_server root  974 May 21 18:19 ssh_host_key
-rw-r--r--  1 cyg_server root  639 May 21 18:19 ssh_host_key.pub
-rw---  1 cyg_server root 1675 May 21 18:19 ssh_host_rsa_key
-rw-r--r--  1 cyg_server root  391 May 21 18:19 ssh_host_rsa_key.pub
-rw---+ 1 Chloe  root 3640 May 21 20:10 sshd_config


I checked in Task Manager and sshd is running as cyg_server.







--
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: Cannot log in to SSHD, either with public key or password

2014-05-21 Thread Evan Rowley
This page has a lot of good information in it:
http://cygwin.com/cygwin-ug-net/ntsec.html

One part you might want to look at is where it mentions
"cyglsa-config" - this could be useful to you given what you're trying
to set up. In order to utilize this, you'll also want to enable the
"Create a token object" and "Act as part of the operating system"
local security policy options.

These are things I've missed in the past when setting up sshd to work
with key-based authentication. They might not be relevant to the
problem you're having, but it's still good to have the bases covered.

On Wed, May 21, 2014 at 9:11 PM, Chloe  wrote:
>
> Please help, I cannot log into Cygwin with SSH.
>
> ssh -vvv Chloe@localhost log: http://pastebin.com/vt2aP86F
>
> I don't know why it says
> debug3: Could not load "/home/Chloe/.ssh/id_rsa" as a RSA1 public key
> because I can use that key to log into a VPS.
>
> I installed the latest ssh. I verified permissions:
>
> ---
> $ ls -ld . *
> drw---+ 1 Chloe None 0 May 21 19:31 .
> -rw---  1 Chloe None   395 May 21 19:31 authorized_keys
> -rw---  1 Chloe None  1638 Apr  6  2009 authorized_keys.old
> -rw---  1 Chloe None   668 Apr  6  2009 id_dsa
> -rw---  1 Chloe None   603 Apr  6  2009 id_dsa.pub
> -rw---  1 Chloe None  1675 Apr  6  2009 id_rsa
> -rw---  1 Chloe None  1464 Apr 23  2009 id_rsa.ppk
> -rw---  1 Chloe None   395 Apr  6  2009 id_rsa.pub
> -rw---  1 Chloe None   976 Apr  6  2009 identity
> -rw---  1 Chloe None   640 Apr  6  2009 identity.pub
> -rw---  1 Chloe None 12226 May 21 19:30 known_hosts
> --
>
> This is the error in Application event viewer log:
>
> -
> The description for Event ID 0 from source sshd cannot be found. Either the
> component that raises this event is not installed on your local computer or
> the installation is corrupted. You can install or repair the component on
> the local computer.
>
> If the event originated on another computer, the display information had to
> be saved with the event.
>
> The following information was included with the event:
>
> sshd: PID 6840: Failed password for Chloe from 127.0.0.1 port 49802 ssh2
> ---
>
> I've also tried
> $ ssh chloe@localhost
> and
> $ ssh Chloe@127.0.0.1
> and I've also tried Putty.
>
> Here are non-comments in sshd_config
>
> ---
> $ grep -v ^\# /etc/sshd_config | grep -ve '^\s*$'
> Port 22
> ListenAddress 127.0.0.1
> StrictModes no
> AuthorizedKeysFile  .ssh/authorized_keys
> UsePrivilegeSeparation sandbox  # Default for new installations.
> Subsystem   sftp/usr/sbin/sftp-server
> -
>
> I see this in the sshd.log
>
> --
> $ tail -1 /var/log/sshd.log
> Could not load host key: /etc/ssh_host_ecdsa_key
> ---
>
> But I don't understand why it can't open it. That's how ssh-host-config set
> it up. I had to change owner for sshd_config to myself so I could save my
> edits (ListenAddress).
>
> 
> $ ls -l ssh*
> -rw-r--r--  1 cyg_server root 1574 May 21 19:22 ssh_config
> -rw---  1 cyg_server root  672 May 21 18:19 ssh_host_dsa_key
> -rw-r--r--  1 cyg_server root  599 May 21 18:19 ssh_host_dsa_key.pub
> -rw---  1 cyg_server root  227 May 21 18:19 ssh_host_ecdsa_key
> -rw-r--r--  1 cyg_server root  171 May 21 18:19 ssh_host_ecdsa_key.pub
> -rw---  1 cyg_server root  399 May 21 18:19 ssh_host_ed25519_key
> -rw-r--r--  1 cyg_server root   91 May 21 18:19 ssh_host_ed25519_key.pub
> -rw---  1 cyg_server root  974 May 21 18:19 ssh_host_key
> -rw-r--r--  1 cyg_server root  639 May 21 18:19 ssh_host_key.pub
> -rw---  1 cyg_server root 1675 May 21 18:19 ssh_host_rsa_key
> -rw-r--r--  1 cyg_server root  391 May 21 18:19 ssh_host_rsa_key.pub
> -rw---+ 1 Chloe  root 3640 May 21 20:10 sshd_config
> 
>
> I checked in Task Manager and sshd is running as cyg_server.
>
>
>
>
>
>
>
> --
> 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
>



-- 
 - EJR

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



Gdb with python enabled

2014-05-21 Thread Robin KERDILES
Hi,

I installed cygwin64 for compiling c/c++ projects

Then I saw there was some pretty printers for STL containers

I would like to use them but I need gdb with python enabled

I see cygwin doesn't provide gdb with gdb enabled :

GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) python print 123
Python scripting is not supported in this copy of GDB.

How should I do now ?

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



Fwd: Cannot log in to SSHD, either with public key or password

2014-05-21 Thread Chloe
I had to use 'mkpasswd -l' to re-generate my passwd file, (and also 
mkgroup), and re-ran ssh-host-config. Actually I tried 'su - Chloe', saw 
an error, tried to edit passwd manually, screwed it up and deleted 
'sshd' user (even though I don't see that user in Windows user 
management), found 'mkpasswd', restarted server, was trying to read 
another home directory, logged out of bash, log back in, re-ran 
ssh-host-config, and then it seemed to work.


--
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: Problem logging into ssh

2014-05-21 Thread Larry Hall (Cygwin)

On 05/21/2014 07:22 PM, Noah White wrote:

I’ve installed and configured sshd to run as a service under a
particular  account which is an Administrator. I can ssh in fine as that
user. However, if I try to ssh as any other user I get the following error:



Last login: Wed May 21 18:58:35 2014 from foo.home
/bin/bash: Operation not permitted
Connection to tango closed.

I’ve found a few threads talking about this issue but none of the
details/solutions were either pertinent or worked.

Other details:

Windows Server 2008 R2
Cygwin 1.7.29(0.272/5/3) CYGWIN_NT-6.1-WOW64
OpenSSH 6.6p1-1


While what you're describing could, perhaps, work, if you set the all
up in the right way, you would at most be able to get it to work with
password authentication.  If that's not working for you either, my
best recommendation is to read through the openssh README under
/usr/share/doc/Cygwin and follow the directions there for
configuring sshd.  Note that '/usr/bin/ssh-host-config' will create
a local user to run sshd under.  If you're trying to use public-key
authentication, this will only work for users on your local machine.
You will need to look into the configuration scripts that
'/usr/bin/ssh-host-config' runs to see how it creates this user
and create a like one for your domain, if that's your goal.  There is
more discussion of this in the email archives, though it is probably
several years back.  Otherwise, if a local pub-key user is enough
for your needs, these scripts should be enough to get you going or
provide you the details of what you need to get things working in
this way.  If you have further issues that you want to bring back
to the list, I recommend you read and follow the problem reporting
guidelines found at the link below.  You'll find what the list needs
from you as bootstrap information to help diagnose your particular
problem.


Problem reports:   http://cygwin.com/problems.html




--
Larry

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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: Gdb with python enabled

2014-05-21 Thread Christopher Faylor
On Thu, May 22, 2014 at 04:14:03AM +0200, Robin KERDILES wrote:
>I see cygwin doesn't provide gdb with python enabled :
>
>How should I do now ?

Build gdb yourself with python enabled.

cgf

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