RE: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Dave Korn
Original Message
From: M.Fujii
Sent: 10 September 2005 03:29

 Hi.
 
 # Excuse me my poor English.
 
 I found the cause of crash on setup.exe 2.510.2.1 built by GCC 3.4.4.
 Please try an attached patch.
 
 Calling erase() in packagemata::ScanDownloadedFiles() invalidates
 iterator i.
 Therefore, ++i after erase() means an operation to a invalid
 iterator. I guess it is the cause of a crash of setup.exe.
 

  A million thanks, Fujii-san!  Your analysis clearly makes sense, your
patch fixes the bug, and your English is very good!  :)  The change is very
small, so there will be no need for a copyright assignment; so please send a
ChangeLog entry and I or one of the others will apply it.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today



Re: [GTG] Re: ITP: bzr -- Next-generation distributed GNU Arch compatible version control (Python)

2005-09-11 Thread Jari Aalto
Eric Blake ebb9-PGZyUNKar/[EMAIL PROTECTED] writes:

 Indeed you are correct - the latest source tarball can recreate the binary
 package.  ... I went ahead and uploaded it, so send an announcement to
 cygwin-announce.

Thanks, 

Could you re-upload it once more. I just noticed that bzr did not
contain manual page, so I added one from Debian (it's not Debian
specific) and rolled out new archives:

  wget --non-verbose\
http://cygwin.cante.net/bzr/setup.hint \
http://cygwin.cante.net/bzr/bzr-0.0.7-1.tar.bz2.sig \
http://cygwin.cante.net/bzr/bzr-0.0.7-1.tar.bz2 \
http://cygwin.cante.net/bzr/bzr-0.0.7-1-src.tar.bz2.sig \
http://cygwin.cante.net/bzr/bzr-0.0.7-1-src.tar.bz2

|  
|$ cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/cygbuild co cygbuild
|passoword: [return]
|$ cd cygbuild ; make install-cvs

 where bleeding edge CVS is
 more important than snapshots that are quickly outdated.

Btw, that make cvs-install in soft, meaning that it only draws
symlinks in order to keep cvs up calls reflect new changes.

I plan to add features that make it easy to wrap up tarballs directly
from CVS/SVN/etc repositories. This makes it easy to follow projects
that use Version control tools - in stead of need to monitor web pages
to see if there are new releases.

If there is anything in the manual page that doesn't explain the
usage, I'll try to draw more pictures.

  http://cygbuild.sourceforge.net/doc/cygbuild.html

Jari



uncaught exceptions in setup

2005-09-11 Thread Yitzchak Scott-Thoennes
I've downloaded the new setup (2.510.2.2) and am trying to run it and
getting uncaught exceptions like:

Fatal Error: Uncaught Exception
Thread: DialogProc
Type: 9Exception
Message: Package validation failure for
file://C:\setup\cygwin/http%3a%2f%2fmirrors.rcn.net%2fpub%2fsourceware%2fcygwin/release/x11/fontconfig/libfontconfig-devel/libfontconfig-devel-2.2.2-1.tar.bz2
AppErrNo: 1

I would really prefer not to have to rename things I've already downloaded
and installed just to download new stuff.


Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread M . Fujii

From: Dave Korn [EMAIL PROTECTED]
Date: Sun, 11 Sep 2005 12:30:38 +0100
  I found the cause of crash on setup.exe 2.510.2.1 built by GCC 3.4.4.
  Please try an attached patch.
(snip)
   A million thanks, Fujii-san!  Your analysis clearly makes sense, your
 patch fixes the bug, and your English is very good!  :)  The change is very
 small, so there will be no need for a copyright assignment; so please send a
 ChangeLog entry and I or one of the others will apply it.

I tried to write a ChangeLog entry below.


2005-09-11  Masayuki FUJII  [EMAIL PROTECTED]

* package_meta.cc (ScanDownloadedFiles): Don't use an invalid
iterator.



Regards,
  Masayuki FUJII



Re: cygwin setup 2.510.2.1 does not work because of an invaliditerator.

2005-09-11 Thread Brian Dessent
M.Fujii wrote:

 I found the cause of crash on setup.exe 2.510.2.1 built by GCC 3.4.4.
 Please try an attached patch.

Thanks for finding this.  I've committed your change (along with fixing
the  broken indentation in that function.)

Brian


Re: uncaught exceptions in setup

2005-09-11 Thread Brian Dessent
Yitzchak Scott-Thoennes wrote:

 I would really prefer not to have to rename things I've already downloaded
 and installed just to download new stuff.

I'm really not sure why it's complaining now where it wasn't before.  I
don't remember touching any of that code.

In the setup.log.full, are there details as to why it's complaining?  A
file length mismatch?

I guess this exception should just be removed, and let the md5 check
handle it.

Brian


Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Christopher Faylor
On Sun, Sep 11, 2005 at 12:30:38PM +0100, Dave Korn wrote:
Original Message
From: M.Fujii
Sent: 10 September 2005 03:29

 Hi.
 
 # Excuse me my poor English.
 
 I found the cause of crash on setup.exe 2.510.2.1 built by GCC 3.4.4.
 Please try an attached patch.
 
 Calling erase() in packagemata::ScanDownloadedFiles() invalidates
 iterator i.
 Therefore, ++i after erase() means an operation to a invalid
 iterator. I guess it is the cause of a crash of setup.exe.
 

  A million thanks, Fujii-san!  Your analysis clearly makes sense, your
patch fixes the bug, and your English is very good!  :)  The change is very
small, so there will be no need for a copyright assignment; so please send a
ChangeLog entry and I or one of the others will apply it.

We don't need copyright assignments for setup.exe.

cgf


Re: [GTG] Re: ITP: bzr -- Next-generation distributed GNU Arch compatible version control (Python)

2005-09-11 Thread Jari Aalto
[EMAIL PROTECTED] (Eric Blake) writes:

|  Could you re-upload it once more. I just noticed that bzr did not
|  contain manual page, so I added one from Debian (it's not Debian
|  specific) and rolled out new archives:

 Please bump the cygwin release to 2 first.  Now that the package
 has hit the mirrors, the only course of action to make sure people
 get the packaging updates is to name everything bzr-0.0.7-2.

Done.

  wget --non-verbose\
http://cygwin.cante.net/bzr/setup.hint \
http://cygwin.cante.net/bzr/bzr-0.0.7-2.tar.bz2.sig \
http://cygwin.cante.net/bzr/bzr-0.0.7-2.tar.bz2 \
http://cygwin.cante.net/bzr/bzr-0.0.7-2-src.tar.bz2.sig \
http://cygwin.cante.net/bzr/bzr-0.0.7-2-src.tar.bz2

-- Jari



Re: uncaught exceptions in setup

2005-09-11 Thread Yitzchak Scott-Thoennes
On Sun, Sep 11, 2005 at 07:49:36AM -0700, Brian Dessent wrote:
 Yitzchak Scott-Thoennes wrote:
 
  I would really prefer not to have to rename things I've already downloaded
  and installed just to download new stuff.
 
 I'm really not sure why it's complaining now where it wasn't before.  I
 don't remember touching any of that code.

Forgot to mention I used -no-md5 before.
 
 In the setup.log.full, are there details as to why it's complaining?  A
 file length mismatch?

Sorry, meant to include this earlier.  setup.log.full:

2005/09/11 11:25:06 Starting cygwin install, version 2.510.2.2
2005/09/11 11:25:06 Current Directory: C:\setup\cygwin
2005/09/11 11:25:06 Changing gid to Users
2005/09/11 11:25:06 Could not open service McShield for query, start and stop. 
McAfee may not be installed, or we don't have access.
2005/09/11 11:25:09 source: download
2005/09/11 11:25:10 Selected local directory: C:\setup\cygwin
2005/09/11 11:25:10 net: Direct
get_url_to_membuf http://sources.redhat.com/cygwin/mirrors.lst
getUrlToStream http://sources.redhat.com/cygwin/mirrors.lst
2005/09/11 11:25:13 site: http://mirrors.rcn.net/pub/sourceware/cygwin
get_url_to_membuf http://mirrors.rcn.net/pub/sourceware/cygwin/setup.bz2
getUrlToStream http://mirrors.rcn.net/pub/sourceware/cygwin/setup.bz2
INVALID PACKAGE: 
file://C:\setup\cygwin/http%3a%2f%2fmirrors.rcn.net%2fpub%2fsourceware%2fcygwin/release/X11/xorg-x11-fsrv/xorg-x11-fsrv-6.8.1.0-1.tar.bz2
 - Size mismatch: Ini-file: 185935 != On-disk: 185787
2005/09/11 11:25:50 mbox fatal: Fatal Error: Uncaught Exception
Thread: DialogProc
Type: 9Exception
Message: Package validation failure for 
file://C:\setup\cygwin/http%3a%2f%2fmirrors.rcn.net%2fpub%2fsourceware%2fcygwin/release/X11/xorg-x11-fsrv/xorg-x11-fsrv-6.8.1.0-1.tar.bz2
AppErrNo: 1
2005/09/11 11:25:52 Ending cygwin install

 I guess this exception should just be removed, and let the md5 check
 handle it.

IMO it should either behave as if the file isn't there or ignore the
mismatch.


Re: Bug in setup 2.510.1.2

2005-09-11 Thread Yitzchak Scott-Thoennes
On Wed, Sep 07, 2005 at 02:59:46PM -0700, Brian Dessent wrote:
 Andr? Bleau wrote:
 
  Sorry to rain on the parade, but the new version of setup has a serious bug;
  it crashes when checking the integrity of .bz2 files.
 
 Works fine for me.
 
  Fatal Error: Uncaught Exception
  Thread: DialogProc
  Type: 9Exception
  Message: Package validation failure for 
  file://E:\CygwinDownload/http%3a%2f%2fmirrors.rcn.net%2fpub%2fsourceware%2fcygwin/release/cmake/cmake-1.8.3-1.tar.bz2
  AppErrNo: 1
 
 Setup doesn't have great error recovery abilities, unfortunately.  This
 error means that the file in your local cache has the wrong size,
 compared to what setup.ini says it should be.  You should find more info
 in the log file.  Currently setup just bails when it finds a corrupt
 package like this.  You should delete the corrupt file as a workaround.

This is one of the many files 2.510.2.2 complained about for me.  The
file isn't corrupt; I'm guessing cmake-1.8.3-1.tar.bz2 was uploaded
more than once and some of us are lucky enough (not!) to have the
older one.


Re: uncaught exceptions in setup

2005-09-11 Thread Brian Dessent
Yitzchak Scott-Thoennes wrote:

 IMO it should either behave as if the file isn't there or ignore the
 mismatch.

I'm working on a patch that just removes this sillyness.  But I want to
make sure there's no unintended consequences.

BTW this exception is supposed to be caught, but it isn't because this
is being called from ChooserPage::Oninit rather than in the seperate
download thread.  Still though, even when caught setup just posts an
error message and exits.

Brian


ITP: bogofilter -- Statistical Bayesian spam filter

2005-09-11 Thread Jari Aalto

Bogofilter is part of Debian. Read more at:

http://packages.debian.org/unstable/mail/bogofilter
http://www.sourceforge.net/projects/bogofilter
http://www.gnu.org/directory/email/spam/bogofilter.html

sdesc: bogofilter - Statistical Bayesian spam filter.
ldesc: Bogofilter is a Bayesian spam filter that classifies mail as
spam or ham (non-spam) by a statistical analysis of the message's
header and content (body). The program is able to learn from the
user's classifications and corrections. It takes an email message or
other text on standard input, does a statistical check against lists
of good and bad words, and returns a status code indicating
whether or not the message is spam. It is designed with fast
algorithms (including Berkeley DB system), and tuned for speed, so it
can be used for production by sites that process a lot of mail
category: Mail
requires: cygwin libgsl0 libgslcblas0

A) Download like this:

  wget --non-verbose\
http://cygwin.cante.net/bogofilter/setup.hint \
http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1.tar.bz2.sig \
http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1.tar.bz2 \
http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1-src.tar.bz2.sig \
http://cygwin.cante.net/bogofilter/bogofilter-0.96.1-1-src.tar.bz2

B) OR download like this (automated d/l + instructions displayed)

  gpg --keyserver wwwkeys.pgp.net --recv-keys 955A92D8

  mkdir bogofilter ; cd bogofilter
  rm -f get.sh get.sh.sig
  wget -q http://cygwin.cante.net/bogofilter/get.sh \
  http://cygwin.cante.net/bogofilter/get.sh.sig
  gpg --verify get.sh.sig get.sh 
  sh get.sh



Problem with starting X up - again!

2005-09-11 Thread Michał Baryliński
Hi!

I have recently installed Cygwin/X and have encountered
a problem with starting up the X server. I have browsed
through this mailing list and didn't find a solution,
although many people seem to share this problem.

When I start X through startxwin.sh it displays
some text and hangs up. I tried different command-line
option combinations. Particularly, with -screen 0 640 480
I get a 640x480 unresponsive window and also uresponsive
tray icon (but no fatal errors in bash window).
No matter which window manager I use.

Finally I found a post where someone say that killing
some process unlocks everything. I did some testing here
and I finally got it:
After running startxwin.sh I have to manually (e.g. through
Task Manager) kill the xkbcomp.exe process and everything
proceeds as expected.

This is my startxwin.sh (without comments):

##
#! /bin/sh
export DISPLAY=127.0.0.1:0.0
export PATH=/usr/X11R6/bin:$PATH
export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
export XNLSPATH=/usr/X11R6/lib/X11/locale

rm -rf /tmp/.X11-unix

XWin -multiwindow -clipboard -silent-dup-error 

xterm -e /usr/bin/bash -l 

exit
#

And this is my XWin.log:

#
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.2.0-4

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

XWin -multiwindow -clipboard -silent-dup-error

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
_XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
(==) FontPath set to
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per
pixel
winAllocateFBShadowGDI - Creating DIB with width: 1024 height: 768 depth: 32
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24
bpp 32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack
of shared memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0415 (0415)
(EE) Keyboardlayout Polski (programisty) (0415) is unknown

##
# Here the program displays:
Rules = xorg Model=pc101 Layout = us Variant=(null) Options =
(null)
# and locks. After killing xkbcomp.exe it proceeds:
##

(EE) Couldn't open compiled keymap file /tmp/server-0.xkm
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing
from list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winClipboardProc - Hello
winProcEstablishConnection - winInitClipboard returned.
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the
display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully
opened the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened
the display.

#3

So can anyone now think of what is the problem and solve it
once and for all? ;-)

Thanks in advance,
Misza




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Failed xorg/XWin launch

2005-09-11 Thread Jack Tanner

[EMAIL PROTECTED] wrote:

Fatal server error:
could not open default font 'fixed'
winDeinitMultiWindowWM - Noting shutdown in progress


http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



winsup/cygwin ChangeLog heap.cc

2005-09-11 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]   2005-09-12 03:55:16

Modified files:
cygwin : ChangeLog heap.cc 

Log message:
* heap.cc (heap_init): Allocate heap from top down as a hedge against
subsequent ERROR_INVALID_ADDRESS in forked processes when CTRL-C is 
pressed.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.3074r2=1.3075
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/heap.cc.diff?cvsroot=uberbaumr1=1.46r2=1.47



Re: GPG got problems with external EXEs?

2005-09-11 Thread Lapo Luchini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Christopher Faylor wrote:
Could this be a rebase problem, btw.?
 Sure looks like it to me.

Unfortunately a rebaseall (executed from ash and everything as
described in the readme) produced no effect on this problem.

As soon as I have a little bit of free time I'll try to debug it as
Corinna suggested.

- --
L a p o   L u c h i n i
l a p o @ l a p o . i t
w w w . l a p o . i t /
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkMj6wsACgkQaJiCLMjyUvsBvQCfR1ptd3pGTFLx5Ng+aLXi6XOb
wkMAoM8f03zSeUdLSDnpQ91r1+4dB1Vi
=kUUw
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Krzysztof Duleba
This was originally sent to gmane.os.cygwin.applications, but I can't
write there.

M.Fujii wrote:

 Calling erase() in packagemata::ScanDownloadedFiles() invalidates
 iterator i.
 Therefore, ++i after erase() means an operation to a invalid
 iterator. I guess it is the cause of a crash of setup.exe.

 -  for (setpackageversion::iterator i = pkg.versions.begin ();
 -i != pkg.versions.end (); ++i)
 +  setpackageversion::iterator i = pkg.versions.begin ();
 +  while (i != pkg.versions.end ())

 -  pkg.versions.erase(i);
 +  pkg.versions.erase(i++);

What's the difference? I mean, you're still using i after erasing it.
Shouldn't it be something along the lines of

{
/* Should we erase */
pkg.versions::iterator next_i = i;
++next_i;
if(next_i == pkg.versions.end()){
pkg.versions.erase(i);
break;
}else{
pkg::value_type tmp = *next_i;
pkg.versions.erase(i);
i = pkg.versions.find(tmp);
}
}else ++i;


Regards
Krzysztof Duleba



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Krzysztof Duleba
Krzysztof Duleba wrote:

 {
 /* Should we erase */
 pkg.versions::iterator next_i = i;

That should read

  setpackageversion::iterator next_i = i;

 ++next_i;
 if(next_i == pkg.versions.end()){
 pkg.versions.erase(i);
 break;
 }else{

 pkg::value_type tmp = *next_i;

That should read

  packageversion tmp = *next_i;

 pkg.versions.erase(i);
 i = pkg.versions.find(tmp);
 }
 }else ++i;



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Krzysztof Duleba
Krzysztof Duleba wrote:

 What's the difference? I mean, you're still using i after erasing it.

Please ignore this thread. Now I see why it should work.

Krzysztof Duleba


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: openssh v2 public-key problems?

2005-09-11 Thread Lapo Luchini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lapo Luchini wrote:
 I just installed a new host in my LAN, using the newshiny
 ssh-host-config, using privilege separation and all and (finally!)
 getting to use public key authentiucation.
 Problem is: using protocol v2 all I get is a Connection reset by peer
 instead of a SSH2_MSG_KEX_DH_GEX_REPLY.

Just for the records: reinstalling Windows XP and cygwin from scratch
(for other reasons, not specifically to solve this of course;)) and the
problem solved himself. Maybe had something to do with the fact that
before I was using a beta of Windows x64, while now it is final. Probably.
Who cares, as long as it now works ;-)

- --
L a p o   L u c h i n i
l a p o @ l a p o . i t
w w w . l a p o . i t /
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkMkTtoACgkQaJiCLMjyUvuUOACgp9Q1pcdhHxvHLvJHlxo1rf3P
sCgAni2vZNF3p37knP45W/bmvVCYHCEM
=BmiP
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread Thorsten Kampe
* Evan Cooch (2005-09-10 22:08 +0100)
 After 2-3 hours googling for insights, and thoroughly reading what 
 was available, I've decided to stop beating my head against the wall, 
 and ask here.
 
 Basically, trying to get sshd installed as a service under WinXP Pro 
 -SP2. Trying the install as a user who has full admin privelages on 
 the system.
 
 1. downloaded Cygwin - installed what I needed (cygrunsrv and 
 openssh) in addition to the usual defaults. No muss, no fuss.
 
 2. modifed the env variables by adding a variable named CYGWIN with 
 value  ntsec tty

Not necessary.
 
 3. added c:\cygwin\bin to the PATH

Not necessary.
 
 4. now is when the problems seem to start (I think)...when I run 
 host-ssh-config, I get only one question - the one about 'privelage 
 separation'. I answer 'yes' Thats it. No further questions - nothing 
 about 'local user', or 'install sshd as a service', or the 'CYGWIN=' question.
 
 Hmmm...
 
 5. bring up a terminal window, and type
 
 cygrunsrv --start sshd
 
 Nada. After about 60 seconds of 'trying', it quits, and refuses to 
 start.   Reboot 10 or so times - find the sshd is sitting there as a 
 service, but not started . Manual starts all fail.
 
 6. Try chown and chmod for various files as mentioned on several 
 Google sites. Nada. Still can't get sshd to start.
 
 So, given that there must be at least several hundred hits on 'sshd 
 won't start' on Google, seems as if this is a ubiquitous, and 
 pernicious problem. Surely there has to be a simple solution.
 
 suggestions? Pointers to  solution? The machine is generic, vanilla, 
 clean XP SP2. I'd have thought that the sshd install should have been 
 about as straightforward as you could get, but no such luck.

Try again. Remove the service (cygrunsrv -R) and try without
separation. Look at the event log. Look at /var/log/ssh*


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread Evan Cooch




 2. modifed the env variables by adding a variable named CYGWIN with
 value  ntsec tty

Not necessary.


Then why is it specified in http://pigtail.net/LRP/printsrv/cygwin-sshd.html




 3. added c:\cygwin\bin to the PATH

Not necessary.



As above - if not, then why specify it in 
http://pigtail.net/LRP/printsrv/cygwin-sshd.html





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin setup 2.510.2.1 does not work because of an invalid iterator.

2005-09-11 Thread Christopher Faylor
On Sun, Sep 11, 2005 at 02:08:48PM +0200, Krzysztof Duleba wrote:
This was originally sent to gmane.os.cygwin.applications, but I can't
write there.

No, it was sent to the cygwin-apps mailing list which is
subscriber-only.

Please don't confuse discussions by redirecting mail to other mailing
lists.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread Rolf Campbell

Evan Cooch wrote:

 2. modifed the env variables by adding a variable named CYGWIN with
 value  ntsec tty
Not necessary.
Then why is it specified in 
http://pigtail.net/LRP/printsrv/cygwin-sshd.html

Because that web page is wrong, that's why.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread René Berber
Evan Cooch wrote:

  2. modifed the env variables by adding a variable named CYGWIN with
  value  ntsec tty

 Not necessary.
 
 Then why is it specified in
 http://pigtail.net/LRP/printsrv/cygwin-sshd.html
 
  3. added c:\cygwin\bin to the PATH

 Not necessary.
 
 As above - if not, then why specify it in
 http://pigtail.net/LRP/printsrv/cygwin-sshd.html

That page is made by somebody that is not in the Cygwin team, it may be correct
or not (the points marked as not necessary by Thorsten are really not
necessary but they don't interfere) but you are asking the Cygwin list not the
author of that page, so:

Follow the instructions in C:\Cygwin\usr\share\doc\Cygwin\openssh.README, that
is the official documentation.

Other than that, look at your event log and see if there is any further
information about the failed service startup.

You mention host-ssh-config, is that a typo? the script is named
ssh-host-config.  Its failure is very strange, perhaps you have a corrupted
installation, you are not using text mode, are you? (in setup you have to select
if Cygwin is installed for all users or not, text- or bin-mode, best results are
with for all and binmode (a.k.a. Unix)).

You should run ssh-host-config in debug mode (i.e. ssh-host-config -d) and see
what was the last thing it did, why did it exit? was there an error message?

HTH
-- 
René Berber


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread Evan Cooch




 As above - if not, then why specify it in
 http://pigtail.net/LRP/printsrv/cygwin-sshd.html

That page is made by somebody that is not in the Cygwin team, it may 
be correct

or not (the points marked as not necessary by Thorsten are really not
necessary but they don't interfere) but you are asking the Cygwin list not the
author of that page, so:


Fair enough - whats bizarre then is why 90% or so of the Google hits 
out there point to this page, and not to anything on the Cygwin list 
(that I found). Perhaps this is the sort of page the someone who is 
involved with Cygwin should put together, given the frequency with 
which it seems to come up.





Follow the instructions in C:\Cygwin\usr\share\doc\Cygwin\openssh.README, that
is the official documentation.


OK - thanks. I'll have a look.




Other than that, look at your event log and see if there is any further
information about the failed service startup.


Will do.




You mention host-ssh-config, is that a typo? the script is named
ssh-host-config.


Whoops - yup.



 Its failure is very strange, perhaps you have a corrupted
installation, you are not using text mode, are you? (in setup you 
have to select
if Cygwin is installed for all users or not, text- or bin-mode, best 
results are

with for all and binmode (a.k.a. Unix)).


Selected for all users. Was never asked about text- or bin-mode. 
Re-installed twice on suspicion it might be corruption problem - same 
result on both occasions. It installed fine, but then when running 
ssh-host-config, it simply asked about privelage separation. Nothing more.





You should run ssh-host-config in debug mode (i.e. ssh-host-config -d) and see
what was the last thing it did, why did it exit? was there an error message?

HTH



Thanks - I'll follow those suggestions and report back.  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread Evan Cooch




Follow the instructions in C:\Cygwin\usr\share\doc\Cygwin\openssh.README, that
is the official documentation.


OK - have now gone through said README twice. Somewhat helpful, but 
largely obtuse in places.


e.g.,  If you start sshd as deamon via cygrunsrv.exe you MUST give the
-D option to sshd. Otherwise the service can't get started at all.

Meaning, what? You pass -D as an argument when invoking cygrunsrv 
--start sshd? Hmmm...trying that gives the error message that -D is 
not a valid option for sshd - which makes the text in the README hard 
to interpret.





Other than that, look at your event log and see if there is any further
information about the failed service startup.


Nothing...




You mention host-ssh-config, is that a typo? the script is named
ssh-host-config.  Its failure is very strange, perhaps you have a corrupted
installation, you are not using text mode, are you? (in setup you 
have to select
if Cygwin is installed for all users or not, text- or bin-mode, best 
results are

with for all and binmode (a.k.a. Unix)).



OK - now I know what you're after. I re-downloaded setup.exe, ran it, 
and tried BOTH text, and binmode (i.e., tried it with text mode - 
then after deleting c:\cygwin, tried again with binmode).


Made no difference. As for a corrupted installation - I tried the 
above procedure using 3 different download mirrors. Made no difference.


Each time when I run ssh-host-config (following a clean install of cygwin), it

1. generates the keys
2. asks about using privilege separation

And thats it - it doesn't ask me for anything else - it doesn't ask 
if I want to create 'sshd' as a local user, or if I want in install 
as a service, or anything after the privilege separation query.


When I run ssh-host-config -d (i.e., in debug mode) as suggested, 
there was nothing obvious about why it exited - there were no error 
messages at all. It simply said I was finished.  Is there a log file 
I should look at (and post here) that might help suss out what its not working?


But, since I can't get the service to start, obvious all is not well.

So, I'm wondering if at this point I should manually do what 
ssh-host-config is apparently refusing to do - if this is an option, 
could someone provide the basic steps?





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread Christopher Faylor
On Sun, Sep 11, 2005 at 04:12:28PM -0400, Evan Cooch wrote:
Follow the instructions in
C:\Cygwin\usr\share\doc\Cygwin\openssh.README, that is the official
documentation.

OK - have now gone through said README twice.  Somewhat helpful, but
largely obtuse in places.

You probably need to uninstall the service with cygrunsrv -R sshd and
let ssh-host-config install things for you.

Providing the information in http://cygwin.com/problems.html would be
useful, too.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Segfault in Cactid

2005-09-11 Thread Larry Adams
Brian Dessent brian at dessent.net writes:

 
 Larry Adams wrote:
 
  Brian, I am assuming that I can just download the latest cygwin of winsup 
and
  then configure/make.  What configure/make options should I be using to
  incorporate debug symbols?
 
 http://cygwin.com/faq/faq.programming.html#faq.programming.building-cygwin
 
 The default compiler options include -g so you get symbols by default. 
 Note that in recent CVS versions this means a seperate .dbg file.
 
 You can also add --enable-debugging to ./configure, but this enables a
 number of things in the code, not just compiler flags.  Grep for #ifdef
 DEBUGGING in the source for details.  Mostly this means more verbose
 strace ourput and some extra sanity checking.
 
  The previous version of Cactid did not have this problem.  The one major
  change in this version of Cactid is that I am using upto 100 process 
threads
  and each thread is allocating large amounts of memory using primarily
  the calloc function.  I was wondering if maybe Cygwin is having 
difficulty
  making memory available to the calloc function after several threads have
  chopped up the heap.
 
 Until you debug the crash it's all just speculation.  It could be a
 million things.  That said, even if the above was the case, Cygwin
 should not crap its pants and dereference a NULL pointer no matter how
 bad the heap is thrashed, so something is definitely wrong.
 
 Brian
 
 

Brian,

I have applied the September 9th SNAPSHOT.  I noted that on the 5th and 6th of 
September the ChangeLog's sounded quite familiar.  I am currently running 2.5 
hours without issue.  Jury's still out, but one of the bug fixes was 
associated with attempting to close/free a NULL pointer. :)

Larry Adams
The Cacti Group



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread René Berber
Evan Cooch wrote:
[snip]
 OK - have now gone through said README twice. Somewhat helpful, but
 largely obtuse in places.
 
 e.g.,  If you start sshd as deamon via cygrunsrv.exe you MUST give the
 -D option to sshd. Otherwise the service can't get started at all.
 
 Meaning, what? You pass -D as an argument when invoking cygrunsrv
 --start sshd? Hmmm...trying that gives the error message that -D is not
 a valid option for sshd - which makes the text in the README hard to
 interpret.

There is an example of what that means in the file cygrunsrv.README which says:

sshd:
  cygrunsrv --install sshd \
--path /usr/sbin/sshd \
--args -D

this is what the script should be doing.

 Other than that, look at your event log and see if there is any further
 information about the failed service startup.
 
 Nothing...

Nothing?  On a working sshd service I get the start and stop events.

[snip]
 OK - now I know what you're after. I re-downloaded setup.exe, ran it,
 and tried BOTH text, and binmode (i.e., tried it with text mode - then
 after deleting c:\cygwin, tried again with binmode).

Don't try text mode.

[snip]
 Each time when I run ssh-host-config (following a clean install of
 cygwin), it
 
 1. generates the keys
 2. asks about using privilege separation
 
 And thats it - it doesn't ask me for anything else - it doesn't ask if I
 want to create 'sshd' as a local user, or if I want in install as a
 service, or anything after the privilege separation query.
 
 When I run ssh-host-config -d (i.e., in debug mode) as suggested, there
 was nothing obvious about why it exited - there were no error messages
 at all. It simply said I was finished.  Is there a log file I should
 look at (and post here) that might help suss out what its not working?

Post the last lines of that debug run, let's see were it ended and we can
probably deduce what went wrong.

 So, I'm wondering if at this point I should manually do what
 ssh-host-config is apparently refusing to do - if this is an option,
 could someone provide the basic steps?

Follow Chris advice, if ssh-host-config fails then post the last lines of the
debug output and lets start again from there.
-- 
René Berber


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sshd install problems | WinXP Pro system

2005-09-11 Thread Evan Cooch





 Other than that, look at your event log and see if there is any further
 information about the failed service startup.

 Nothing...

Nothing?  On a working sshd service I get the start and stop events.


If it was working, I wouldn't be bothering the list with this! ;-)




[snip]
 OK - now I know what you're after. I re-downloaded setup.exe, ran it,
 and tried BOTH text, and binmode (i.e., tried it with text mode - then
 after deleting c:\cygwin, tried again with binmode).

Don't try text mode.


When in doubt try everything. Turns out it didn't matter.





 When I run ssh-host-config -d (i.e., in debug mode) as suggested, there
 was nothing obvious about why it exited - there were no error messages
 at all. It simply said I was finished.  Is there a log file I should
 look at (and post here) that might help suss out what its not working?

Post the last lines of that debug run, let's see were it ended and we can
probably deduce what went wrong.


OK - I'll do that tomorrow. Thanks.




 So, I'm wondering if at this point I should manually do what
 ssh-host-config is apparently refusing to do - if this is an option,
 could someone provide the basic steps?

Follow Chris advice, if ssh-host-config fails then post the last lines of the
debug output and lets start again from there.
--
René Berber


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Intermittent scp crash on completion, Win98 SE, snapshot

2005-09-11 Thread Aaron Humphrey
Unfortunately, using strace -p on the running scp process, with the
latest snapshot, just brings up an unkillable invalid page fault in
KERNEL32.DLL dialog.  I now officially have no clue how to track this
problem down.  (Well, okay, in theory I could compile myself debugging
versions of all appropriate exe's and dll's and run it all under gdb,
but since this is likely beyond my current level of competence, I'm
not considering it a clue.)  I'll willingly test any shot-in-the-dark
attempts to fix it, but otherwise I'll live with the innocuous page
fault messages that actually go away when I close them and don't seem
to hurt anything.  Sorry I couldn't be more help.


--
--Alfvaen(Web page: http://www.telusplanet.net/public/alfvaen/ )
Song In My Head--Sam Brown:April Moon
Current Book--Sam Moskowitz  Roger Elwood:Strange Signposts
It knock one's the door, go to and see who is it.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/