Re: "cannot find username for UID XXX"

2003-08-08 Thread Igor Pechtchanski
On Fri, 8 Aug 2003, Johan Parin wrote:

> Hi all,
>
> Just installed Cygwin on Win2K. It's working fine except that I don't
> have a username ;( . This has some bad consequences like not being
> able to use ssh. id returns the following:
>
> uid=479 gid=10513(mkgroup_l_d)
> groups=544(Administrators),545(Users),10513(mkgroup_l_d)
>
> uid 479 is not in passwd, as can be seen in attachment.
>
> My username should be erajpaa. I have no idea where Cygwin picks up
> uid 479 from. If I start up cmd.exe, I can see the following USER
> related variables:
>
> ALLUSERSPROFILE=C:\Documents and Settings\All Users
> USERDNSDOMAIN=eemea.ericsson.se
> USERDOMAIN=EEMEA
> USERNAME=erajpaa
> USERPROFILE=C:\Documents and Settings\erajpaa
>
> These are inherited by the Cygwin shell, which however also creates
>
> USER=479
>
> Could I have done something wrong during installation, or can I do
> something to fix this now?
>
> Should I change the uid for erajpaa in passwd, or can I do something
> to convince Cygwin I'm uid 66015 instead?
>
> Any help is appreciated.

Johan,

Your UID is greater than 65536 (which is the limit for 16-bit uids).  You
can do one of two things: (1) edit /etc/passwd and change your UID to
something else (yes, you can do *that*); 479 should do just as well as
anything else, as long as does not belong to any other user in the passwd
file, or (2) upgrade to the *experimental* version 1.5.1 (or is .2 out
already?) that uses 32-bit UIDs.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: ftw()

2003-08-08 Thread Christopher Faylor
On Tue, Aug 05, 2003 at 10:37:53PM -0400, Samuel Thibault wrote:
>Le lun 04 ao? 2003 20:05:45 GMT, Nicholas Wourms a tapot? sur son clavier :
>>That being said, My suggestion to Samuel would be to investigate the
>>FreeBSD cvs repo to see if they have implimented ftw() in their libc,
>>since they have a more "free" license and aren't GPL-infected.
>
>It seems to be still worked on, and not available in their cvs :/

What is with the selective reading style in this thread?

I saw that a referenced LGPL license is unacceptable for cygwin.

Gerrit responds with a pointer to a BSD licensed version.  Asks if
it is acceptable.

I say probably but you'd have to ask the newlib mailing list.

Nicholas responds eight hours after this interchange.  He opines that I
probably don't know about the Red Hat employees who run the glibc
project and offers that somebody should find a BSD licensed version of
ftw.

Now, a day later, we find that Gerrit's email has again been ignored
and the Wourms plan is unworkable.

Odd.

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: Win2k and cygwin memory leak

2003-08-08 Thread Luc Hermitte


* On Thu, Aug 07, 2003 at 08:42:57PM -0700, Andrew DeFaria <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
[You weren't responding to Brian message, but mine.]

> >>It has already been acknowledged several times over that it is not a
> >>problem of Cygwin's rather a problem of Windows.
> >I think we all agree to that. But unfortunatelly, so far, only Cygwin
> >seems affected by that problem.
> 
> Funny I don't see the problem. (Anybody else?)

May be I was mistaken and I was thinhing to another problem, but I'm
definitively not the only person who have notice a problem when running
cygwin.
Check the threads around:
http://www.cygwin.com/ml/cygwin/2003-03/threads.html#01510
(about fork and ressources unavailable and jamming cygwin in 10 minutes)


Why are you playing dumb and denying some of us see the problem only
with cygwin ?

BTW, I respond to a remark from Christopher. Yes, probably other
programs are affected by this bug from Windows (/some of its functions).
But I haven't noticed any clear indication in this direction. 
However I have no doubt there is a problem the 100th time I run my
bash-wrapper (that launches gVim), or when I try to compile GNU program
like mutt -- I need to reboot three times and delete lines already
executed if I want to have mutt-1.5 with some specific patches.
So far, cygwin is the ultimate "developer" for this bug.

> >I guess cygwin is using a library not always correctly implemented. 
> >"Isn't there any workaround cygwin could use ? " is a typical question 
> >for many of us.
> Your asking for workarounds to another party's code. Personally I would 
> rather Cygwin folks focus more on functionality and genuine Cygwin 
> problems than fixing somebody else's problem.

I'm asking a workaround to another party code used by cygwin. If I know
that a particular function (from a third) is buggy/non portable, I won't
use it in my code, or at least, I'll try to be sure I use it under the
best conditions.
Unfortunatelly, it seems nobody knows which third party function is
buggy in that particular case.

> >>What else do you want?
> >Personnally, I hope, as the question will be raised again and again, 
> >that an expertise will emerge. Just knowing why there is a problem 
> >will be a big step ahead -- ie: which library/service pack/... is faulty.
> 
> And what are you doing to help identify the problem (seeing as YOU are 
> seeing the problem, YOU have the code and others have no clue what you 
> are doing exactly that might even cause your problem)?

I'm doing approximatelly:

tar xvf mutt-1.5.1.tar.gz | gzip -cd -
cd mutt-1.5.1
./configure
make

But what will be more interresting is: what is installed on the
system/how the system was installed. Because if some people are not
seeing the problem, it means THERE IS a solution.

> >This time, someone told us about a freeware that collects "forgotten"
> >memory. 
> Who "forgot" the memory? Right Windows - not Cygwin.

Did I said the contrary ?
I can also play dumb: "do you call buggy functions in your code ?"

> Is THAT the memory intensive process that you are running every 5
> minutes?!? Again, others do not have the problems that you have. I run
> Cygwin processes on Windows 2000 Servers and they stay up for months
> (Unfortunately sometimes one still needs to reboot servers for service
> packs, security fixes, etc).

I'm not Brian. My intentive process is named bash, and I don't run it
every 5 minutes.

> >BTW, if this program is an effective workaround, I think this will 
> >merit a topic in the FAQ.
> You speak as if everybody is experiencing this problem - we aren't!

If ten people are experiencing the problem, it worths fix it. Because
what the ten people will first think is: "damn! cygwin is buggy and
cannnot fork anymore". You and I know it's untrue. The unfortunate new
user of Cygwin won't.

> >Could we say that cygwin relies on a faulty library developped by
> >Microsoft? And that nobody has identified the faulty library?
> You could - but that would be a guess. And it is not Cygwin developers
> responsibility to figure out which library that is.

We don't feel the same. When I program a() that uses b(). If b() is
buggy under certain condition, i usually try to find/program b'() that
will ensure that my a() will always work as expected. That's _my_
responsability to use 3rd party code/library/API that works correclty.

May be there is a b'() in that case, may be not. I don't know yet. In a
month or two, I'll try to remember how gdb works and check this out --
I'll probably need assitance from people not having the problem as I'm
not able to compile big program.

By the mean, time I have some open-source stuff I've developped to fix
before unhappy users ask for refund.
And by an hour or two, i'll check if RAMpage is of any help.

> With this, and all other open source software, I suggest that if you are 
> unhappy with the product then return it and demand a fully refund :-) ! 
> Good luck!
-- 
Luc Hermitte

--
U

Re: proftpd issues

2003-08-08 Thread Igor Pechtchanski
Fixes for what?  If proftpd needs to switch user contexts (using Cygwin
system calls), the account it runs under needs to have those rights.
Period.  If the SYSTEM account doesn't have those rights on your machine,
it's nothing that proftpd can fix.  You'll just need to either create an
account with those rights, or add them to an existing account.

As for domain authentication, are the entries for the domain users you're
trying to authenticate present in your /etc/passwd file?  Are their
corresponding groups in /etc/group?  Just to eliminate that possibility,
could you please run "mkpasswd -d yourdomain >> /etc/passwd" and "mkgroup
-d yourdomain >> /etc/group" before trying again?  You may want to save
backup copies of /etc/passwd and /etc/group first.
Igor

On Fri, 8 Aug 2003 [EMAIL PROTECTED] wrote:

> Thanks for the response Igor. I'm working on W2K *Server* SP3. Maybe the
> Servers are more stict with the User Rights?? Domain authentication
> works fine for telnet, and inetutils ftpd - but *not* for proftpd. Any
> ideas? I think there's a test version of proftpd sitting out on the
> mirrors - perhaps it has fixes for this?
>
> Brian Kelly
>
>
> "Igor Pechtchanski" <[EMAIL PROTECTED]> on 08/08/2003 06:50:16 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:[EMAIL PROTECTED]
> cc:[EMAIL PROTECTED]
>
> Subject:Re: proftpd issues
>
>
> On Fri, 8 Aug 2003 [EMAIL PROTECTED] wrote:
>
> > Since having gotten xinetd working, I've shifted my effortst to the new
> > proftpd.
> >
> > After another couple of hours of *pain* - I finally got it going in a
> > limited fashion.
> >
> > First of all, I couldn't get it to start with the SYSTEM id as indicated
> > in the proftpd.conf file.
> >
> > I had to use a custom ID added to the Administrators group and having the
> > following User Rights assigned:
> >
> > "Act as part of the operating system"
> > "Replace process level token"
> > "Increase quotas"
> >
> > Question: Do these rights *have* to granted to the SYSTEM id for proftpd
> > to work?
>
> Yes.  Since you've as much as quoted from the ntsec userguide section, I'm
> not going to bother citing a reference.  The above rights are needed to
> switch user contexts.  SYSTEM has it by default on most NT-based versions
> of Windows (but may not on some more recent ones, notably 2003 server).
>
> > Next - I could log on with local id's - but not with Domain id's. Is
> > proftpd set up to do domain authentication via ntsec??
> > If not, is there an ETA?
> >
> > Brian Kelly
>
> Cygwin (ntsec) is already set up for domain authentication.  However, to
> be able to authenticate a domain user, that domain user has to be in
> /etc/passwd (and his groups should most likely be in /etc/group).  Make
> sure your /etc/passwd includes the users you're trying to authenticate.
>   Igor

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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: need help

2003-08-08 Thread Don Sharp


[EMAIL PROTECTED] wrote:
> 
> Hello,
> 
> when i start cygwin, the program say's i have to create a folder /tmp (C:\tmp).
> Now my question: Can i change the path from this folder to an other path (for
> example c:\program files\cygwin\tmp)? What i have to do, to change the path?
> Thank you for your help.
> 

I would be inclined to binary mount it for everyone

mount -s -b c:\\program\ files\\cygwin\\tmp /tmp

If you must stick to a directory path with spaces in it might be better
to use

mount -s -b c:\\PROGRA~1\\cygwin\\tmp /tmp

If c:\program files\cygwin is your cygwin / then

mkdir /tmp

may be an easier choice.

Cheers

Don Sharp

--
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: 1.5.x goes current on 2003-08-23?

2003-08-08 Thread Nicholas Wourms
Jason Tishler wrote:

Nicholas,

On Tue, Aug 05, 2003 at 02:03:02AM -0400, Charles Wilson wrote:

Nicholas Wourms wrote:

Perl is required for many operations, and (as I'm sure Chuck will
agree) having to rebase a *critical* core application *just* to get
it work is unacceptable.  
Hey, don't drag me into this.  Rebase is (currently) a necessary evil 
for python and maybe perl, but I gave up maintaining perl a LONG time 
ago and I don't intend to stick my nose into it now.  It's Gerritt's 
baby, and I trust him to do whatever is necessary to make stuff work. 
But, he's asked for help -- so help, dammit, don't carp.

  ^
Exactly.
Not quite.  I've got plenty to keep me occupied, thank you.  As you'll 
note, this commentary was made in reply to a flame that stated I should 
go out and enrich M$ more by purchasing a copy of XP.  One day I will, 
but not today.  To put it quite simply, I'm being told that the solution 
to the problem is to ignore the problem and go spend $$$.

As for trying to help, well AFAIK, it is impossible to get perl to debug 
under gdb on WinME since one of two things happen:

1)either you try to run perl inside gdb, which promptly locks up the 
machine.

2)you try to get gdb to catch the process when it segfaults, which again 
is useless since it locks up the machine.

On Mon, Aug 04, 2003 at 07:56:38PM -0400, Nicholas Wourms wrote:

No offense to Jason, but rebase is really just "papering" over a much
bigger infrastructure problem which isn't going away.  The problem is
that "rebase all" only takes into account the dll's installed by the
installer.  It certainly doesn't take into account dll's which aren't
named ".dll" (like in Ruby which leaves them named *.so).  It also
won't take into account user-installed dlls or perl modules.  I've
managed to work around this on my Win2k machine by modifying rebase
all to use `locate` and to run rebase on any ".so"'s it finds in the
Ruby dir.


If rebase and rebaseall don't meet your needs, then supply the patch(es)
to enhance them so they do.
Unfortunately, I have no patches to supply.  Using find/locate is rather 
sub-optimal and probably isn't the way to go.

However, one partial solution would be to rename the ruby .so's to 
.dll's in the buildscript.

But all the rebase patches in the world aren't going to "really" fix the 
problem, since the problem lies in the heart of Cygwin, not rebase.  I 
think I'm just going to quit trying to argue this now, since people 
obviously aren't interested in discussing it (not that my reply to 
Gerrit's flame even intended to do so).

Cheers,
Nicholas


--
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: Problem with Cygwin.bat

2003-08-08 Thread Vince Hoffman
try running the .bat file from a command prompt and see if it prints an
error.


> -Original Message-
> From: philippe guillaume [mailto:[EMAIL PROTECTED]
> Sent: 08 August 2003 13:22
> To: [EMAIL PROTECTED]
> Subject: Problem with Cygwin.bat
> 
> 
> I want to launch the tcsh-shell and not bash-shell at
> startup...
> So i modified the Cygwin.bat , replacing "bash --login
> -i" by "tcsh -l -i" ...
> But when i run Cygwin, it shuts down immediatly.
> 
> Why please ???
> 
> ;)
> 
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> --
> 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: Raw lpr outputs extra page

2003-08-08 Thread Rick Rankin

--- Rodrigo Medina <[EMAIL PROTECTED]> wrote:
>  Hello!
> 
> I want to report an extrange behavior of lpr.
> First my instalation:
> /proc/version:
> CYGWIN_95-4.0 1.3.22(0.78/3/2) 2003-03-18 09:20
> 
> Date of lpr:
> 244224 Jun 13 19:40 /bin/lpr
> 
> Printer: HP-DeskJet 670C, Standard instalation.
> 
> As I understand the man page of lpr, 'lpr -l -PLPT1 file_to_print' is
> supposed
> to put the file "file_to_print" in the printer queue without any processing.
> 
> I have found that it is not so. Apparently in some cases lpr appends
> something
> to the file.
> 
> You do a HP-file, file.prn,  using  the "print to file" option of some
> program
> (say WORDPAD).   If you send file.prn to the printer queue with the DOS
> command
> 
> >COPY  /B file.prn PRN:
> 
> or directly to the printer with the cygwin command:
> 
> $ cp file.prn /dev/lpt1
> 
> or with
> 
> $ cat file.prn > /dev/lpt1
> 
> you get the right result.
> If you send file.prn to the printer queue with
> 
> $ lpr -l -PLPT1 file.prn
> 
> you get what you expect plus an extra page with an "H" or "X" in the upper
> left corner.
> 
> If you send a DOS-text file you get the same result with lpr and with copy.
> The output stops in the last page because it needs a Form Feed. If you
> then  send a Form Feed with
> 
> $ echo $''\f''> /dev/lpt1
> 
> in both cases the last page is finished correctly.
> 
> If you put a Form Feed at the end of a DOS-text file, no matter how do you
> do it, both DOS COPY and CYGWIN cp yield the correct result. If you use
> 'lpr -l -PLPT1 file' the story is different. If the last byte of the file
> is the FF character an extra blank page is produced, but if the file 
> finishes with FF-LF or with FF-CR-LF the last page of the document is
> printed properly and no extra page is produced.
> 
> I hope that this observations can be useful in order to delucidate what
> is going on. 
> 
> I wonder if it were not convenient to add to lpr the option of appending
> a FF to the file to be printed.
>   
> A final comment about printing text files with the line-printer mode of the
> printer. In my case the printer is DOS-compatible, that is, it uses the 
> IBM 850 code.  Only DOS text files can be sent directly to the printer, 
> appart from the FF at the end. WINDOWS text files need additionally to
> be translated from the ISO-latin1 code to the IBM850 code. UNIX text files
> need the ISO to 850 translation, the LF to CR-LF conversion and the
> FF at the end.
>
 
Rodrigo,

I will try to spend a little time looking at this, but it's highly unlikely
that I'll be able to duplicate the problem because 1) I don't have the same
printer, 2) I don't have access to any machines running Win95, and 3) I don't
have access to any locally-connected printers.

I'd be interested to know if using "Printer Name" instead of lpt1 as the device
works any differently. In other words, if the name of your printer in the
Printers applet of Control Panel shows as "HP-Deskjet 670C", try using the
command

lpr -l -P "HP-Deskjet 670C" file.prn

to spool your file and see if it makes any difference. The code that allows lpr
to access devices like "lpt1" is experimental, at best, because I have no way
to test it due to item (3) above. The other items I would be interested in are
1) output from lpr when used with the -D flag (adds debugging printout) when
the device is lpt1, and 2) the actual contents of your file.prn, preferrably
archived and compressed.

--Rick

--
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: Operating system information

2003-08-08 Thread Larry Hall
Ehud Karni wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, 08 Aug 2003 11:20:46 -0400, Larry Hall <[EMAIL PROTECTED]> wrote:

[EMAIL PROTECTED] wrote:


Is it possible to find out the amount of physical memory and available swap
of the machine through cygwin?
In Solaris terms prtconf and swap -s
How abut 'more /proc/meminfo'?


Why not use free ?

Why not indeed! :-)

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746
--
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 1.5.1 libc.a link problem

2003-08-08 Thread Christopher Faylor
On Wed, Aug 06, 2003 at 11:10:15AM +0200, Ronald Landheer-Cieslak wrote:
>On Tue, Aug 05, 2003 at 11:58:51PM -0400, Christopher Faylor wrote:
>> On Tue, Aug 05, 2003 at 04:20:15PM -0400, Christopher Faylor wrote:
>> >On Tue, Aug 05, 2003 at 03:09:57PM -0400, Jason Tishler wrote:
>> >>While attempting to rebuild procmail against Cygwin 1.5.1, I believe I
>> >>have found a problem with libc.a that interferes with building 64-bit
>> >>apps.
>> >>
>> >>If one builds the attached test program without -lc, we get the
>> >>following:
>> >>
>> >>$ gcc -o stat stat.c
>> >>$ objdump -p stat.exe | fgrep stat
>> >>6100  510  _stat64
>> >>
>> >>But, if one builds it with -lc, we get the following:
>> >>
>> >>$ gcc -o stat stat.c -lc
>> >>$ objdump -p stat.exe | fgrep stat
>> >>6130  945  stat
>> >
>> >Ok.  Interesting.  I know what the problem is.  Should be "easy" to fix.
>> >
>> >Sounds like we need a 1.5.2.
>> 
>> Oh yeah.  That was wicked easy.
>> 
>> Can someone confirm or deny that the latest snapshot solves this
>> problem?
>Unless I did something wrong, I guess I'll have to deny it..
>I installed the complete snapshot (cygwin-inst) and get the same
>results as before.

I assume that you must not have correctly replaced your copy of
/lib/libc.a:

  % ls -l libc.a
  ls -l libc.a
  -rwxrwxrwx1 root cgf741756 Aug  5 23:29 libc.a
  % sum libc.a
  31407   725

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: SSH session terminates with Ctl+C

2003-08-08 Thread Larry Hall
Jeff Nokes wrote:

Don't do that.  Set CYGWIN to 'tty' in your environment before starting
Cygwin.  See .


Hi Larry,
Sorry about the confusion, I've never had to set this before, and I thought
that you meant the bash environment.  Your suggestion worked, but only when I:
   set CYGWIN tty

... in the .bat file I use to start the cygwin bash shell (cmd.exe).  If I set
this same environment variable in my windows environment (settings ->
control_panel ...) it didn't work.  Interestingly enough, either way I set it,
it did show up as being set in my bash environment once I started the shell. 
But I'm not sure why one way works over the other.

Anyway, I'm happy your suggestion works; no more Ctl+C killing my ssh
sessions.   Thank you very much.  Maybe we can end this rediculously long
thread now!


Glad to hear this works.  Setting 'tty' in CYGWIN from the control panel
should work as well.  That's the way I do it.  So there's something a
bit fishy there.  But, no matter (for you) I expect.  I am still surprised
that it's dependent on the server you log into, all things considered.
I'm fine with leaving that as a mystery for another day though.
--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746
--
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/


Problem with Cygwin.bat

2003-08-08 Thread philippe guillaume
I want to launch the tcsh-shell and not bash-shell at
startup...
So i modified the Cygwin.bat , replacing "bash --login
-i" by "tcsh -l -i" ...
But when i run Cygwin, it shuts down immediatly.

Why please ???

;)

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
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: What is the minimum needed to run gtar?

2003-08-08 Thread David Rothenberger
Christopher Faylor writes:
 > On Fri, Aug 08, 2003 at 09:12:45AM -0700, David Rothenberger wrote:
 > >David Rothenberger wrote:
 > >> 
 > >> David Rothenberger writes:
 > >>  > "Biederman, Steve" wrote:
 > >>  > >
 > >>  > > I want to allow the users I support to be able to run Cygwin tar on their 
 > >> Windows machines.
 > >>  > > These machines have not had any Cygwin installed; they're just bare Windows 
 > >> machines.
 > >>  > >
 > >>  > > I provided them tar.exe and cygwin1.dll and assumed that with these, they 
 > >> could run
 > >>  > > Cygwin tar sucessfully.  It appears that that isn't the case: machines 
 > >> without Cygwin
 > >>  > > installed see different behavior than machines which have it installed.  
 > >> (Running tar
 > >>  > > on machines without Cygwin installed creates incorrect tar archives.)
 > >>  >
 > >> [snip]
 > >>  > Through experimentation, I discovered that the problem went away if I
 > >>  > created an /etc mount.
 > >> 
 > >> I did a little debugging on this.  It turns out that when tar
 > >> "hangs", the process is in an infinite loop in malloc_consolidate().
 > >
 > >Some googling uncovered that loops in malloc_consolidate() are usually a
 > >sign of heap corruption.  More googling suggested that compiling the
 > >cygwin dll with --enable-malloc-debugging would be helpful for finding
 > >heap corruption.  But, I'm have quite a bit of trouble getting the dll
 > >to compile with that configure switch.
 > 
 > That's because it is currently broken.  There was a hack posted to get it
 > working.  I think it was to the cygwin mailing list.

I came up with a different hack to get it working enough for my
purposes.  After reading the thread Chris mentioned, I don't think
I'll submit those changes as a patch.

Enabling malloc debugging did allow me to find the source of the
heap corruption that was breaking tar.  I'll submit the patch to fix
it shortly.

Dave


--
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: Unable to bring up netscape as any other user

2003-08-08 Thread Menon, Girish (MED, WIPRO-GE MED)
I am not getting any error at all from the execution of the script. It
just quits. I checked the error code too. It is 0.

I also tried with giving the entire path, like /bin/env. That did not
work either.


-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 5:08 PM
To: Menon, Girish (MED, WIPRO-GE MED)
Cc: [EMAIL PROTECTED]
Subject: RE: Unable to bring up netscape as any other user


BTW, as I mentioned before, cygrunsrv has the -i/--interactive option
that
allows you to set this from the command line.

FYI, backtick processing does not happen in the background -- the
spawning
shell actually waits for the child to complete.  That said, what are the
exact errors you're getting when you try to execute that script?  Keep
in
mind that your environment (in particular, $PATH) may not be the same in
the spawned process and the interactive shell.  Try fully specifying the
paths to any commands ("env" and "grep" in your example).
Igor

On Wed, 6 Aug 2003, Menon, Girish (MED, WIPRO-GE MED) wrote:

> Never mind the question about setting the registry for "Allowing
service
> to interact with desktop"... I found that a dword of 110 will do for
the
> inetd registry entry.
>
> But I still had one question though. From the bash shell the ` (back
> ticks) work. But when I spawn a process and execute a shell script
which
> contains the back ticks, the process just chokes.
>
> For example, a simple shell script like
> #!/bin/sh
> ..
> ..
> myenv=`env | grep CYGWIN`
> ..
> ..
>
>
> I am able to execute this script properly from the bash shell (as any
> user on the system). But this same script when executed via a spawned
> process does not work. Looks like something is broken in my background
> processing.
>
> Any help?
>
> Girish
>
>
> -Original Message-
> From: Menon, Girish (MED, WIPRO-GE MED)
> Sent: Wednesday, August 06, 2003 3:01 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Unable to bring up netscape as any other user
>
>
> Also, rather than going via command line, is there any other way I can
> do the same setting (i.e. going via services and modifying the
> properties of inetd)? Any arguments to cygrunsrv or inetd or modifying
> the registry...
>
>
> -Original Message-
> From: Menon, Girish (MED, WIPRO-GE MED)
> Sent: Wednesday, August 06, 2003 1:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Unable to bring up netscape as any other user
>
>
> Great. It worked.
>
> Now I have a slightly differnt issue. If I try to bring up netscape
> manually from the bash window, it comes up. But if I try to bring it
up
> as a background process, it does not work. In my code, I tried to
spawn
> a new netscape process, but that failed. When I modified my code to
> instead call netscape directly, it comes up.
>
> Here's a snippet of my code:
>
>
> sprintf(shellExec, "%s/bin/sh.exe", getenv("SYSTEMDRIVE"));
> // spawn new service browser
> _flushall();
> _spawnlp(_P_DETACH, shellExec, shellExec, "netscape.exe", NULL);
>
>
>
>
> -Original Message-
> From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 12:01 PM
> To: Menon, Girish (MED, WIPRO-GE MED)
> Cc: [EMAIL PROTECTED]
> Subject: Re: Unable to bring up netscape as any other user
>
>
> On Wed, 6 Aug 2003, Menon, Girish (MED, WIPRO-GE MED) wrote:
>
> > Up until recently, I was using an older version of cygwin (1.3.10).
> With
> > the advent of the security patch for telnet, inetutils 1.3.23, I
> decided
> > to upgrade my cygwin version to the latest (1.3.22) with the
inetutils
> > 1.3.23.
> >
> > Ever since, I have been having some problems. I installed cygwin as
> > Administrator. If I become some other user and try to bring up
> netscape
> > (which was also installed as Administrator), netscape does not come
> up.
> >
> > If I do a ps, I see the netscape task is running, but I am not able
to
> > see the browser.
> >
> > I am attaching the cygcheck output. Any suggestions on where I am
> going
> > wrong.
>
> The netscape process would come up as a child process of the inetd
> service.  Therefore, the service should have interaction with desktop
> enabled for you to see the netscape window.  I've added an option for
> that
> to cygrunsrv, but inetd might not have one, so you'll have to go into
> the
> services panel and edit the properties of the inetd service to enable
> that.  Just check the "Allow service to interact with desktop"
checkbox.
> Hope this helps,
> Igor
>

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his
route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:  http://cygw

[ANNOUNCEMENT] CMake 1.6.7-2

2003-08-08 Thread William A. Hoffman
CMake 1.6.7-2 is now available on Cygwin mirrors.

This release is only to provide a cygwin 1.5.1 compiled version of cmake.
There are no changes to cmake source in this release.


See www.cmake.org for more information.

Bill Hoffman 
Cygwin CMake maintainer



--
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 1.5.1 libc.a link problem

2003-08-08 Thread Christopher Faylor
On Tue, Aug 05, 2003 at 03:09:57PM -0400, Jason Tishler wrote:
>While attempting to rebuild procmail against Cygwin 1.5.1, I believe I
>have found a problem with libc.a that interferes with building 64-bit
>apps.
>
>If one builds the attached test program without -lc, we get the
>following:
>
>$ gcc -o stat stat.c
>$ objdump -p stat.exe | fgrep stat
>6100  510  _stat64
>
>But, if one builds it with -lc, we get the following:
>
>$ gcc -o stat stat.c -lc
>$ objdump -p stat.exe | fgrep stat
>6130  945  stat

Ok.  Interesting.  I know what the problem is.  Should be "easy" to fix.

Sounds like we need a 1.5.2.

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: Less fails with link error

2003-08-08 Thread Larry Hall
David Balazic wrote:

If I try to run less from bash, I get a dialog saying :

less.exe - Entry Point Not Found

The procedure entry point __getreent could not be located in the dynamic
link library cygwin1.dll.
[OK]


You've installed some test packages but you're not running the test
cygwin package.  Rerun setup, make sure you *don't* change the default
"Curr" to "Exp" and let it install anything it needs to.  Try it again.

I would give you the "less" version number , but "rpm -q less" gives :

$ rpm -qa
error: db4 error(13) from dbenv->open: Permission denied
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
no packages
Doesn't anything work in cygwin  ? :-)


No, nothing does.  You shouldn't use it.  Try Windows apps and O/Ss.
They _always_ work.
Did you install 'less' via 'rpm'?  If you did, you want to inquire at the
site that provided 'less' as an RPM file for assistance.  If you did not
install 'less' via 'rpm', why are you surprised that it's not in the
RPM DB?  BTW, 'cygcheck -c less' always provides package version
information if you install via setup.exe.
--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746
--
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/


"mobile" cygwin

2003-08-08 Thread Bogdan Czyz
Hi there,
I'm trying to create custom cygwin build (about 40MBs). I mean I'm trying to 
collect most of shell and file tools, and have at least cygwin sshd working. 
I'd like to have everything on cd and when needed copy all cygwin directory 
structure to hard disk (not only my private pc's disk but pc's disk I work 
on that day - I don't want to install cygwin on each pc I got to work on) 
and run all the utilities and use for instance sshd for port forwarding.
I'm in half way. I got all utilities working in place, batch files to add 
and remove registry entries for cygwin (to get proper mounting points from 
bash). Last thing I can't figure out is sshd. To be more specific passwd. 
I'd like to have one (or couple) user(s) that I can work with independently 
of system. I'd like to run sshd on machine I work on and I wouldn't like to 
worry about creating new /etc/passwd each time. I'd like to use one of 
defined users with known password and do what I need to do. Is that possible 
at all with cygwin?? user independently?? If you have any ideas, please 
advice.

Thanks in advance,
Bogdan
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

--
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: ftw()

2003-08-08 Thread Gerrit P. Haase
Hallo Christopher,

> Now, a day later, we find that Gerrit's email has again been ignored
> and the Wourms plan is unworkable.

> Odd.

I'll try again:

ftw/fts/nftw from openbsd (it is not in freebsd or netbsd):
http://www.openbsd.org/cgi-bin/cvsweb/src/include/ftw.h
http://www.openbsd.org/cgi-bin/cvsweb/src/include/fts.h

http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/ftw.c
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/fts.c

http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/nftw.c

http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/ftw.3
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/fts.3

Is just lacking the 64bit version.

Gerrit
-- 
=^..^=


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



Operating system information

2003-08-08 Thread graham . pursey
Is it possible to find out the amount of physical memory and available swap
of the machine through cygwin?
In Solaris terms prtconf and swap -s

Thanks,

Graham



**
http://www.dstinternational.com

Notice:  This e-mail and any attachments are intended only for the individual or 
company to
 which it is addressed and may contain information which is privileged, confidential 
and 
prohibited from disclosure or unauthorized use under applicable law.  If you are not 
the 
intended recipient of this e-mail, you are hereby notified that any use, 
dissemination, or
 copying of this e-mail or the information contained in this e-mail is strictly 
prohibited
 by the sender. Whilst we run anti-virus software on all Internet emails we are not 
liable
 for any loss or damage. The recipient is advised to run their own anti-virus software.
If you have received this transmission in error, please return the material received 
to the
 sender and delete all copies from your system.  Thank you.


--
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: Directory problems after fresh install of v1.3.22-1

2003-08-08 Thread David Balazic

> --
> From: Max Bowsher[SMTP:[EMAIL PROTECTED]
> Sent: 5. avgust 2003 13:55
> To:   David Balazic; [EMAIL PROTECTED]
> Subject:  Re: Directory problems after fresh install of v1.3.22-1
> 
> David Balazic wrote:
> > Here it is :
> > ( cygcheck -s -v -r )
> 
> Hmm. That's weird. 
> 
> Does X:\cygwin\etc\profile exist?
> 
Yes.
Here are the contents :

# Some resources...

# Customizing Your Shell: http://www.dsl.org/cookbook/cookbook_5.html#SEC69
# Consistent BackSpace and Delete Configuration:
#   http://www.ibb.net/~anne/keyboard.html

# Setup some default paths.  Note that this order will allow user installed
#  software to override 'system' software

# If you wish to change the path on a user by user basis, it is recommended
you
#  edit ~/.bashrc

# If you wish to change the path for all users, it is recommended you edit
#  /etc/bash.bashrc

export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"

# Set the user id
export USER="`id -un`"

# Here is how HOME is set, in order of priority, when starting from Windows
# 1) From existing HOME in the Windows environment, translated to a Posix
path
# 2) from /etc/passwd, if there is an entry with a non empty directory field
# 3) from HOMEDRIVE/HOMEPATH
# 4) / (root)

# If the home directory doesn't exist, create it.
if [ ! -d "$HOME" ]; then
  mkdir -p "$HOME"
  # copy skeleton files
  cd /etc/skel
  for f in `/bin/find . -type f`; do
fDest=`echo $f | sed -e 's/^\.//g'`
if [ ! -e "$HOME$fDest" -a ! -L "$HOME$fDest" ]; then
  cp "$f" "$HOME/$fDest"
fi
  done
fi

# run all of the profile.d scripts
for i in /etc/profile.d/*.sh ; do
  if [ -f $i ]; then
. $i
  fi
done

# default to unix make mode
export MAKE_MODE=unix

# it is recommended that cvs uses ssh for it's remote shell environment
export CVS_RSH=/bin/ssh

# Patches to Cygwin always appreciated ;)
# export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/src

# Set a HOSTNAME variable
export HOSTNAME=`hostname`

# set a default prompt of: [EMAIL PROTECTED] current_directory
export PS1='\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '

# uncomment to use the terminal colours set in DIR_COLOR
# eval `dircolors -b /etc/DIR_COLOR`

# default to removing the write permission for group and other
# (files normally created with mode 777 become 755; files created with
# mode 666 become 644)
umask 022

# make sure we start in home
cd "$HOME"



> Max.
> 

--
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: [BUG] pututline () & rxvt: rxvt leaves stale utmp entries

2003-08-08 Thread Andrew DeFaria
Christopher Faylor wrote:

A simple test case. Sob. A simple test case. Oh, how I've missed you.

Given the good problem description and the simple test case, this 
shouldn't be hard to fix. I'll see what I can do. The behavior that 
you've described has bugged me for a while. I'm glad that you tracked 
down what was going on.
I wonder if this problem contributes to the problem of the shell process 
not dying when one click on the close button in rxvt...



--
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: Win2k and cygwin memory leak

2003-08-08 Thread Rolf Campbell
Christopher Faylor wrote:
As described, the memory leak is obviously not in cygwin.  It is in
windows.  I was adding some clarification to the issue by changing a
"may be" to a "definitely is".
I think that this kind of clarification is more useful than your
message, which essentially says "If we could figure out what was causing
the problem then maybe it could be fixed".  Personally, I don't see how
that observation is useful.
Having had some experience with this, I find it highly doubtful that any
useful data will come from people posting their "me too" experiences.
If someone wants to fix this then researching the Microsoft Knowledge
Base might be a place to start.  A google search might also be helpful.
Could it be *possible* that cygwin leaves some memory allocated?  Does 
windows claim to free all memory allocated by a process when it exits? 
What about cygwin shared memory?

I'm not claiming it's a cygwin problem, I'm just curious.

-Rolf



--
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: Unable to bring up netscape as any other user

2003-08-08 Thread Menon, Girish (MED, WIPRO-GE MED)
I am not getting any error at all from the execution of the script. It
just quits. I checked the error code too. It is 0.

I also tried with giving the entire path, like /bin/env. That did not
work either.


-Original Message-
From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 5:08 PM
To: Menon, Girish (MED, WIPRO-GE MED)
Cc: [EMAIL PROTECTED]
Subject: RE: Unable to bring up netscape as any other user


BTW, as I mentioned before, cygrunsrv has the -i/--interactive option
that
allows you to set this from the command line.

FYI, backtick processing does not happen in the background -- the
spawning
shell actually waits for the child to complete.  That said, what are the
exact errors you're getting when you try to execute that script?  Keep
in
mind that your environment (in particular, $PATH) may not be the same in
the spawned process and the interactive shell.  Try fully specifying the
paths to any commands ("env" and "grep" in your example).
Igor

On Wed, 6 Aug 2003, Menon, Girish (MED, WIPRO-GE MED) wrote:

> Never mind the question about setting the registry for "Allowing
service
> to interact with desktop"... I found that a dword of 110 will do for
the
> inetd registry entry.
>
> But I still had one question though. From the bash shell the ` (back
> ticks) work. But when I spawn a process and execute a shell script
which
> contains the back ticks, the process just chokes.
>
> For example, a simple shell script like
> #!/bin/sh
> ..
> ..
> myenv=`env | grep CYGWIN`
> ..
> ..
>
>
> I am able to execute this script properly from the bash shell (as any
> user on the system). But this same script when executed via a spawned
> process does not work. Looks like something is broken in my background
> processing.
>
> Any help?
>
> Girish
>
>
> -Original Message-
> From: Menon, Girish (MED, WIPRO-GE MED)
> Sent: Wednesday, August 06, 2003 3:01 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Unable to bring up netscape as any other user
>
>
> Also, rather than going via command line, is there any other way I can
> do the same setting (i.e. going via services and modifying the
> properties of inetd)? Any arguments to cygrunsrv or inetd or modifying
> the registry...
>
>
> -Original Message-
> From: Menon, Girish (MED, WIPRO-GE MED)
> Sent: Wednesday, August 06, 2003 1:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Unable to bring up netscape as any other user
>
>
> Great. It worked.
>
> Now I have a slightly differnt issue. If I try to bring up netscape
> manually from the bash window, it comes up. But if I try to bring it
up
> as a background process, it does not work. In my code, I tried to
spawn
> a new netscape process, but that failed. When I modified my code to
> instead call netscape directly, it comes up.
>
> Here's a snippet of my code:
>
>
> sprintf(shellExec, "%s/bin/sh.exe", getenv("SYSTEMDRIVE"));
> // spawn new service browser
> _flushall();
> _spawnlp(_P_DETACH, shellExec, shellExec, "netscape.exe", NULL);
>
>
>
>
> -Original Message-
> From: Igor Pechtchanski [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 12:01 PM
> To: Menon, Girish (MED, WIPRO-GE MED)
> Cc: [EMAIL PROTECTED]
> Subject: Re: Unable to bring up netscape as any other user
>
>
> On Wed, 6 Aug 2003, Menon, Girish (MED, WIPRO-GE MED) wrote:
>
> > Up until recently, I was using an older version of cygwin (1.3.10).
> With
> > the advent of the security patch for telnet, inetutils 1.3.23, I
> decided
> > to upgrade my cygwin version to the latest (1.3.22) with the
inetutils
> > 1.3.23.
> >
> > Ever since, I have been having some problems. I installed cygwin as
> > Administrator. If I become some other user and try to bring up
> netscape
> > (which was also installed as Administrator), netscape does not come
> up.
> >
> > If I do a ps, I see the netscape task is running, but I am not able
to
> > see the browser.
> >
> > I am attaching the cygcheck output. Any suggestions on where I am
> going
> > wrong.
>
> The netscape process would come up as a child process of the inetd
> service.  Therefore, the service should have interaction with desktop
> enabled for you to see the netscape window.  I've added an option for
> that
> to cygrunsrv, but inetd might not have one, so you'll have to go into
> the
> services panel and edit the properties of the inetd service to enable
> that.  Just check the "Allow service to interact with desktop"
checkbox.
> Hope this helps,
> Igor
>

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his
route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:  http://cygw

RE: Win2k and cygwin memory leak

2003-08-08 Thread Hannu E K Nevalainen \(garbage mail\)

 "Me too!" `8-7, well...

 I consider this be a fine-tune issue regarding Windows, this ofcourse
affects cygwin - and all other software packages that has been installed.
I'll let it be unsaid whether this should have been automated by M$ or
not... (I _do_ have an opinion... ;-)


After having read what is on this page:
> RAMpage =>   http://www.jfitz.com/software/RAMpage/

I can only say; I _DO_ agree.

 I have been running W98 (and SE) ever since I got my brand new [EMAIL PROTECTED]/128MB
RAM
(it was top spec. at that time!) - I installed W2K just recently. (Now w
256MB)

 The first 2-3 years it was turned on, all the time - running the first
"distributed.net" projects. At least three times a week I had to restart
windows, simply because RAM was all wasted. As I later concluded - it was
vcache (i.e. disk buffering) that filled up RAM to the extent that there was
NOTHING left for application use - at this point all memory allocations lead
to EXTENSIVE swap file use.

 IMO this behaviour was/is very prominent in W98. I found a remedy though...
first running a sibling to RAMpage, then by fiddling a bit with
"system.ini" - see below.

 This little addition to the ini-file has held the machine very much more
usable, with just a little more disk-thrashing as side effect.

 I wouldn't be too surprised if there STILL is something like this left in
more recent Windows versions.
If there is a this easy remedy for them is beyond my knowledge.

 So, cgf is right here IMO.



HOWTO, FYI:
 I have kept maxfilecache (KBytes) at 10-20% of installed RAM and chunksize
(Bytes) as high as I have considered reasonable.
 i.e.
   a) maxfilecache/chunksize should be a fairly high number. (better
cahche-ability)
   b) chunksize shouldn't be _too_ small. (too small -> overhead grows)

 Please note that I have NOT done any benchmarks here...


-- system.ini - addition/change for 256MB RAM --

[vcache]
maxfilecache=40960
chunksize=2048

--


/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems - 59?14'N, 17?12'E


--8<--

> "Christopher Faylor" <[EMAIL PROTECTED]>@cygwin.com on
> 08/07/2003 11:40:57
> AM
>
> Please respond to [EMAIL PROTECTED]
>
> Sent by:[EMAIL PROTECTED]
>
>
> To:[EMAIL PROTECTED]
> cc: (bcc: Brian Kelly/WTC1/Empire)
>
> Subject:Re: Win2k and cygwin memory leak
>
>
> On Thu, Aug 07, 2003 at 11:32:42AM -0400, Rolf Campbell wrote:
> >This may be a Win2000 problem, not a cygwin problem...What service pack
> >are you running?
>
> "May be"?  You run a bunch of programs, exit them, and Windows
> slowly loses
> memory after each exit?
>
> Hard to see how that's a cygwin problem.
>
> cgf

--END OF MESSAGE--


--
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: Win2k and cygwin memory leak

2003-08-08 Thread Andrew DeFaria
[EMAIL PROTECTED] wrote:

Forgot to add that I call the perl script every *FIVE* minutes - 24-7. 
The script is VERY memory intensive so it really works cygwin and the 
2000 Server HEAVY. If I didn't scrub the memory four times a day, the 
box would crash - and did just recently when I had turned off RAMpage 
for testing.
Running a very memory intensive process every 5 minutes seems wasteful 
to me. Why not make the very memory intensive process a daemon and write 
a very memory light client to query it?

Also, I may be naive or idealistic but I don't think that running out of 
memory should ever "crash" a system (depending on your definition of 
crash) rather it should either grind to a crawl or new processes should 
fail with out of memory errors. It is really crashing your 2000 server? 
If so who do you think is really responsible for such an (here's a clue) 
OS failure?



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