Peter Rehley | 1 Nov 01:09 2005
Picon

Hang with 1.5.18, 1.5.19 snapshot 20051029

Hi,

I have a problem where a configure script is hanging.  I first saw  
the behavior in 1.5.18, and it's still there in the latest snapshot.  
The only machines that we are seeing it hang on are windows 2000  
machines, sp4, with duel pentinum 933 mhz processors, and using ssh  
to login to the machine.  I haven't been able to reproduce the  
problem on single processor machines or when ssh is not used.

Under 1.5.18, the hang occurred about 1 in ten times in the  
test_configure script (provided in the bash_test.tar.bz2 file.  Under  
the latest snapshot it's about 1 in 900.

When the hang happens it appears that a process is completed, but  
still can be found in the process directory.  The cmdline file says  
<defunct>, but the process still shows up in the process list (ps - 
ef).  If I try to clean up by killing the process, the kill command  
says that the process doesn't exist.  The only way that I can make  
the hung process go away is by using the task manager to kill the  
process.

The simplest test I've gotten down to is:

### Simple Test
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for expr-configure 1.5.11-1.
#
# Report bugs to <cygwin at cygwin dot com>.
#
(Continue reading)

Siegfried Heintze | 1 Nov 01:12 2005

RE: Wanted: Help translating classpath from CMD.EXE to bash

Thanks Igor!

> As someone mentioned, you can use "cygpath -p" to convert a POSIX-style
> path into a Win32-style one.

I think I need to go the other way. Given a CLASSPATH variable in windows,
how do I convert it to cygwin? Do I use ":" to separate the elements, or do
I use "\;". If I use ":", what about the windows device names?

It seems to me this should have worked, but it does not:
 * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
 * export $CLASSPATH
 * echo ${CLASSPATH}
 * javac myprogram.java

> 
> Alternatively, you can try using my java wrapper scripts that will do the
> translation automatically for you (the scripts can be found at
> <http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps>;
> you'll need to edit the scripts to point them to your Java installation
> directory).
> 

OK, is there any documentation? What kind of wrappers are these? I have
never heard of bash wrappers before. (hmmm... bash wrappers, sounds like a
new genre of music! -- maybe something like slam dancing?)

How about an example? That would probably suffice.

Well, even if I get Igor's bash wrappers to work, I'm kinda curious why my
(Continue reading)

Larry Hall (Cygwin | 1 Nov 02:19 2005

Re: Wanted: Help translating classpath from CMD.EXE to bash

On 10/31/2005, Siegfried Heintze wrote:
> >As someone mentioned, you can use "cygpath -p" to convert a POSIX-style
> >> path into a Win32-style one.
> 
> 
> I think I need to go the other way. Given a CLASSPATH variable in windows,
> how do I convert it to cygwin? Do I use ":" to separate the elements, or do
> I use "\;". If I use ":", what about the windows device names?
> 
> It seems to me this should have worked, but it does not:
>  * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
>  * export $CLASSPATH
>  * echo ${CLASSPATH}
>  * javac myprogram.java

If you're running from bash or any other Cygwin shell, then the path is
already in POSIX form.  'javac' won't understand this, since it is a
Windows program.  'cygpath' is the way to convert between POSIX paths and
Windows/DOS, forward and back.  In your case, you want POSIX->Windows/DOS
conversion.  See 'man cygpath' for more details.

--

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

frank | 1 Nov 01:29 2005
Picon
Picon

Re: Newbie: How to change $HOME path?

You can right click "my computer" and \properties\advanced\environment 
variables.
add HOME variable and class path there. and restart bash.

That's my way

Larry Hall (Cygwin) wrote:

> Thomas Hartmann wrote:
>
>> Hi,
>>
>> I suppose I ask a quite obvious newbie-question, but: How can I 
>> change the $HOME path?
>> At the moment it points onto my desktop and I want to change to 
>> another directory since ".*" files are not hidden (because I tinker 
>> with my system so it displays all files...).
>
>
> See:
>
>> FAQ:                   http://cygwin.com/faq/
>
>
>
> <http://cygwin.com/faq/faq-nochunks.html#faq.setup.home>
>
>

(Continue reading)

Jim Easton | 1 Nov 04:49 2005
Picon
Picon

signals and read blocking - EINTR

Hi,

Correct me if I'm wrong but it is my understanding that a signal,
specifically SIGALRM, should free a blocked read request and,
for example, getchar() or read(), should return an EINTR error.
(viz. Interrupted system call)

This happens on Solaris, sun 4, Sgi and AIX machines but apparently
not on Cygwin, or Red Hat Linux of any release that I have tested
(Scientific Linux SL Release 4.0 and Red Hat Linux release 9).

In fact the solaris man page for read states explicitly:

  If a read() is interrupted by a signal before it  reads  any
  data, it will return -1 with errno set to EINTR.

I have no desire to turn off blocking and poll for input as
this adds one to the machine's load average.  I can almost do
what I need with "select" - not quite.

I'm wondering what am I missing?  Is there a flag in sigaction
or something else that I could be setting?  Perhaps there is
something I can do in the service routine to break the block?
If this is discussed somewhere on the web I would be beholden if
someone would point me to it.

Following is a little demo program that will run on the afore
mentioned systems (except the sun4 needs a bit of tweeking)
The difference between, say, solaris and cygwin is that getchar
does not return unless one types in a character.
(Continue reading)

Rudi | 1 Nov 04:53 2005
Picon

Console Setup

Hy,
will there sometimes be a Setup-program available that works on the
console? I would like to update or add new packages through ssh instead
of Windows GUI to speedup these processes

--

-- 
hochachtungsvoll / best regards
Rudolf Spitaler
3580 Horn, Zwettlerstrasse 1/G/1
speedcom <at> aon.at

Igor Pechtchanski | 1 Nov 05:06 2005
Picon

RE: Wanted: Help translating classpath from CMD.EXE to bash

On Mon, 31 Oct 2005, Siegfried Heintze wrote:

> Thanks Igor!
>
> > As someone mentioned, you can use "cygpath -p" to convert a POSIX-style
> > path into a Win32-style one.
>
> I think I need to go the other way. Given a CLASSPATH variable in
> windows, how do I convert it to cygwin? Do I use ":" to separate the
> elements, or do I use "\;". If I use ":", what about the windows device
> names?

I should've been clearer, and said "you can use 'cygpath -p' to convert
*between* a POSIX-style path and a Win32-style one".  "cygpath -[u]p" (the
"u" is optional) will convert from a Win32 path to a POSIX one, whereas
"cygpath -wp" will convert from a POSIX path to a Win32 one.  For more
details, see "man cygpath", as Larry said.

> It seems to me this should have worked, but it does not:
>  * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
>  * export $CLASSPATH
>  * echo ${CLASSPATH}
>  * javac myprogram.java

What exactly didn't work here?  What were the errors?

> > Alternatively, you can try using my java wrapper scripts that will do
> > the translation automatically for you (the scripts can be found at
> > <http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps>;
> > you'll need to edit the scripts to point them to your Java
(Continue reading)

Larry Hall (Cygwin | 1 Nov 06:24 2005

Re: Console Setup

Rudi wrote:
> Hy,
> will there sometimes be a Setup-program available that works on the
> console? I would like to update or add new packages through ssh instead
> of Windows GUI to speedup these processes
> 

There are command line options.  Below is an old pointer.  I'm sure you can
find more up-to-date ones in the email archives.

<http://www.cygwin.com/ml/cygwin/2002-11/msg01490.html>

This is still a Windows "GUI" program though, not a console app.  You may
find that this suffices for your needs however.  If not, feel free to jump
in and help move setup more quickly in this direction. :-)

--

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

Christopher Faylor | 1 Nov 07:02 2005

Re: signals and read blocking - EINTR

On Mon, Oct 31, 2005 at 08:49:30PM -0700, Jim Easton wrote:
>I'm wondering what am I missing?  Is there a flag in sigaction
>or something else that I could be setting?

Yes.  SA_RESTART is the flag.

Siegfried Heintze | 1 Nov 08:07 2005

RE: Wanted: Help translating classpath from CMD.EXE to bash

I figured it out. This does work after all:

CLASSPATH=.\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xsltcservlet.jar\;c\:\
\dev\\xalan\\xalan-j_2_7_0\\samples\\xsltcejb.jar\;c\:\\dev\\xalan\\xalan-j_
2_7_0\\samples\\xsltcbrazil.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xs
ltcapplet.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\samples\\xalansamples.jar\;c\
:\\dev\\xalan\\xalan-j_2_7_0\\serializer.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0
\\xalan.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\xercesImpl.jar\;c\:\\dev\\xalan
\\xalan-j_2_7_0\\xml-apis.jar\;c\:\\dev\\xalan\\xalan-j_2_7_0\\xsltc.jar
export CLASSPATH
javac -g ApplyXPathDOM.java

One has to escape the colons and the semi colons. I don't understand why I
have to escape the colons too -- but it works.

Thanks for the example for the java/bash wrappers -- I think I understand
now.

Siegfried

-----Original Message-----
From: Igor Pechtchanski [mailto:pechtcha <at> cs.nyu.edu] 
Sent: Monday, October 31, 2005 9:06 PM
To: Siegfried Heintze
Cc: cygwin <at> cygwin.com
Subject: RE: Wanted: Help translating classpath from CMD.EXE to bash

On Mon, 31 Oct 2005, Siegfried Heintze wrote:

> Thanks Igor!
(Continue reading)


Gmane