public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Strange delays - need to recompile bash for latest snapshot?
@ 1999-09-27  4:46 Philip Aston
  1999-09-27  7:11 ` Corinna Vinschen
  1999-09-30 23:42 ` Philip Aston
  0 siblings, 2 replies; 10+ messages in thread
From: Philip Aston @ 1999-09-27  4:46 UTC (permalink / raw)
  To: cygwin

Hi,

A few days ago someone reported random delays under the latest
cygwin1.dll. I saw the same, and cgf's 'its fixed in the latest
version' message - so I grabbed the cygwin1-1990917.dll and
cygwin-inst-1990913.tar.

This still appears to have some delays when access the file system
[1]. Using strace bash, I see a large pause in several calls to
lookup_name, followed by a Win32 error - see below.

I guess this is down to the security changes. Do I need to recompile
bash? I've succesfully dropped in snapshots before, and the I didn't
bother with the cygwin-inst file. Am I wrong in thinking that
cygwin1-1990917 and cygwin-inst-1990913 are all I need?

BTW I made the first step at recompiling bash from the old user-src I
have lying around, but failed at the first hurdle:

PS02235:philipa% cd /usr/local/src/cygwin-distsrc/
/usr/local/src/cygwin-distsrc
PS02235:philipa% ./configure
Configuring for a i686-pc-cygwin32 host.
Created "Makefile" in /usr/local/src/cygwin-distsrc using "mh-frag"
/bin/ld: cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

This and everything else works fine with an old dll - my train journey
is coming to an end, so I've decided to give in and revert back to the
earlier dll...

Thanks,

Phil


Footnotes: 
[1]  My file system is FAT


<snip>

  672  645215 [main] ls 1017 hinfo::de_linearize_fd_array: fd 1, name {stdout}, win32 name \dev\pipe, status 0x18008
  501  646255 [main] ls 1017 hinfo::build_fhandler:  - cb 64, fd 1, fh 0xA031148
  494  655509 [main] ls 1017 fhandler_base::de_linearize: access_ 0x40000000, status 0x18008, io_handle 0xEC, output_handle 0xEC
  539  656048 [main] ls 1017 hinfo::de_linearize_fd_array: len 83
12027  668075 [main] ls 1017 hinfo::de_linearize_fd_array: fd 2, name {stderr}, win32 name \dev\pipe, status 0x18008
  622  669257 [main] ls 1017 hinfo::build_fhandler:  - cb 64, fd 2, fh 0xA031250
  493  670785 [main] ls 1017 fhandler_base::de_linearize: access_ 0x40000000, status 0x18008, io_handle 0x100, output_handle 0x100
  541  671326 [main] ls 1017 hinfo::de_linearize_fd_array: len 83
  649  671975 [main] ls 1017 pinfo_init: pid 1017, pgid 1014
 2073  674048 [main] ls 1017 __get_signal_mutex: acquired for ../../../sdevo/winsup/debug.cc:71
  696  674744 [main] ls 1017 __release_signal_mutex: released at ../../../sdevo/winsup/debug.cc:80
42722  717466 [main] ls 1017 sigproc_init: process/signal handling enabled(10C1)
 1000  718466 [main] ls 1017 dll_crt0_1: Application CYGWIN version: 20.1, api: 0.0
  723  719189 [main] ls 1017 dll_crt0_1: CYGWIN DLL version: 22.0, api: 0.15
  561  720482 [main] ls 1017 build_argv: argv[0] = 'ls'
  713  721195 [main] ls 1017 build_argv: argv[1] = '/usr/local/src'
  710  721905 [main] ls 1017 build_argv: argv[2] = '(null)'
 2191  724096 [main] ls 1017 DllList::initAll: call to DllList::initAll
  744  724840 [main] ls 1017 dll_crt0_1: user_data->main 0x40167C
36170  761010 [sig] ls 1017 lookup_name: name: philipa


** Pause here! **


11337  772347 [sig] ls 1017 lookup_name: LookupAccountName(philipa) Win32 error +1332
  759  773106 [sig] ls 1017 ../../../sdevo/winsup/security.cc:183 seterrno: unknown error 1332
  930  774036 [sig] ls 1017 wait_sig: sigcatch_nonmain 0x28
  541  774577 [sig] ls 1017 wait_sig: subproc_ready 0x15C
873095 86546516 [main] ls 1017! spawn_guts: res = 20000
  545 86547061 [main] ls 1017! my_parent_is_alive: parent still alive
  957 86548018 [main] ls 1017! spawn_guts: parent = 0xA01C770

<snip>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
  1999-09-27  4:46 Strange delays - need to recompile bash for latest snapshot? Philip Aston
@ 1999-09-27  7:11 ` Corinna Vinschen
  1999-09-28  5:27   ` Philip Aston
  1999-09-30 23:42   ` Corinna Vinschen
  1999-09-30 23:42 ` Philip Aston
  1 sibling, 2 replies; 10+ messages in thread
From: Corinna Vinschen @ 1999-09-27  7:11 UTC (permalink / raw)
  To: Philip Aston; +Cc: cygwin

Philip Aston wrote:
> [...]
> [1]. Using strace bash, I see a large pause in several calls to
> lookup_name, followed by a Win32 error - see below.
> [...]
> 11337  772347 [sig] ls 1017 lookup_name: LookupAccountName(philipa) Win32 error +1332
>   759  773106 [sig] ls 1017 ../../../sdevo/winsup/security.cc:183 seterrno: unknown error 1332

Hi Philip,

maybe the name philipa is used in /etc/passwd but it's not
your true NT login name? This results in such problems when
CYGWIN=ntsec is set and it's set by default.

You don't have to compile bash. It has nothing to do with
this phenomenon.

There are two possible solutions,

either edit your /etc/passwd and /etc/group files to let them
reflect your NT user and group settings as much as possible
(don't use abbreviations of the true login names!)

or set CYGWIN=nontsec.

Regards,
Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
  1999-09-27  7:11 ` Corinna Vinschen
@ 1999-09-28  5:27   ` Philip Aston
  1999-09-28 12:04     ` Corinna Vinschen
  1999-09-30 23:42     ` Philip Aston
  1999-09-30 23:42   ` Corinna Vinschen
  1 sibling, 2 replies; 10+ messages in thread
From: Philip Aston @ 1999-09-28  5:27 UTC (permalink / raw)
  To: Corinna Vinschen; +Cc: cygwin

Corinna Vinschen writes:
 > Hi Philip,
 > 
 > maybe the name philipa is used in /etc/passwd but it's not
 > your true NT login name?

AFAICT it is - what's the definitive way of asking NT? I think its in
a different NT domain that I only sync with when I dial up, would this
be the problem?

 > This results in such problems when CYGWIN=ntsec is set and it's set
 > by default.
 > 
 > You don't have to compile bash. It has nothing to do with
 > this phenomenon.

Good.
Did I even have to install the "inst" distribution? Whats the miniumum 
needed with a new snapshot?

 > There are two possible solutions,
 > 
 > either edit your /etc/passwd and /etc/group files to let them
 > reflect your NT user and group settings as much as possible
 > (don't use abbreviations of the true login names!)
 > 
 > or set CYGWIN=nontsec.

I did this. Or rather "CYGWIN=tty nontsec", which I assume to be the
same thing.

Appears to be fine now, thanks for your help.

- Phil


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
  1999-09-28  5:27   ` Philip Aston
@ 1999-09-28 12:04     ` Corinna Vinschen
  1999-09-30 23:42       ` Corinna Vinschen
  1999-09-30 23:42     ` Philip Aston
  1 sibling, 1 reply; 10+ messages in thread
From: Corinna Vinschen @ 1999-09-28 12:04 UTC (permalink / raw)
  To: Philip Aston; +Cc: cygwin, Earnie Boyd

Philip Aston wrote:
> 
> Corinna Vinschen writes:
>  > Hi Philip,
>  >
>  > maybe the name philipa is used in /etc/passwd but it's not
>  > your true NT login name?
> 
> AFAICT it is - what's the definitive way of asking NT? I think its in
> a different NT domain that I only sync with when I dial up, would this
> be the problem?

As I mentioned in my last mail, it's only a problem if you wish to
use the `ntsec' feature. In this case it's essential that your
passwd and group files are generated according to the SAM of your
NT domain. If you're a domain member,
call `mkpasswd -g -d YOURDOMAIN > /etc/passwd'
and  `mkgroup -d YOURDOMAIN > /etc/group'
else
call `mkpasswd -g -l > /etc/passwd'
and  `mkgroup -l > /etc/group'.

> [...]
> Did I even have to install the "inst" distribution? Whats the miniumum
> needed with a new snapshot?

Nothing. You may still use the old headers and libraries. In this case
you will not get the new features but your new compiled apps are still
compatible to B20.1. If you use the new headers and libs, your new apps
would only run with newer snapshots (since b21.0.8 of late Dec-98).

>  > or set CYGWIN=nontsec.
> 
> I did this. Or rather "CYGWIN=tty nontsec", which I assume to be the
> same thing.

Ok, read it as `CYGWIN=... nontsec ...'

> Appears to be fine now, thanks for your help.
> 
> - Phil

You're welcome,
Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
  1999-09-28  5:27   ` Philip Aston
  1999-09-28 12:04     ` Corinna Vinschen
@ 1999-09-30 23:42     ` Philip Aston
  1 sibling, 0 replies; 10+ messages in thread
From: Philip Aston @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Corinna Vinschen; +Cc: cygwin

Corinna Vinschen writes:
 > Hi Philip,
 > 
 > maybe the name philipa is used in /etc/passwd but it's not
 > your true NT login name?

AFAICT it is - what's the definitive way of asking NT? I think its in
a different NT domain that I only sync with when I dial up, would this
be the problem?

 > This results in such problems when CYGWIN=ntsec is set and it's set
 > by default.
 > 
 > You don't have to compile bash. It has nothing to do with
 > this phenomenon.

Good.
Did I even have to install the "inst" distribution? Whats the miniumum 
needed with a new snapshot?

 > There are two possible solutions,
 > 
 > either edit your /etc/passwd and /etc/group files to let them
 > reflect your NT user and group settings as much as possible
 > (don't use abbreviations of the true login names!)
 > 
 > or set CYGWIN=nontsec.

I did this. Or rather "CYGWIN=tty nontsec", which I assume to be the
same thing.

Appears to be fine now, thanks for your help.

- Phil


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
  1999-09-27  7:11 ` Corinna Vinschen
  1999-09-28  5:27   ` Philip Aston
@ 1999-09-30 23:42   ` Corinna Vinschen
  1 sibling, 0 replies; 10+ messages in thread
From: Corinna Vinschen @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Philip Aston; +Cc: cygwin

Philip Aston wrote:
> [...]
> [1]. Using strace bash, I see a large pause in several calls to
> lookup_name, followed by a Win32 error - see below.
> [...]
> 11337  772347 [sig] ls 1017 lookup_name: LookupAccountName(philipa) Win32 error +1332
>   759  773106 [sig] ls 1017 ../../../sdevo/winsup/security.cc:183 seterrno: unknown error 1332

Hi Philip,

maybe the name philipa is used in /etc/passwd but it's not
your true NT login name? This results in such problems when
CYGWIN=ntsec is set and it's set by default.

You don't have to compile bash. It has nothing to do with
this phenomenon.

There are two possible solutions,

either edit your /etc/passwd and /etc/group files to let them
reflect your NT user and group settings as much as possible
(don't use abbreviations of the true login names!)

or set CYGWIN=nontsec.

Regards,
Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Strange delays - need to recompile bash for latest snapshot?
  1999-09-27  4:46 Strange delays - need to recompile bash for latest snapshot? Philip Aston
  1999-09-27  7:11 ` Corinna Vinschen
@ 1999-09-30 23:42 ` Philip Aston
  1 sibling, 0 replies; 10+ messages in thread
From: Philip Aston @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

Hi,

A few days ago someone reported random delays under the latest
cygwin1.dll. I saw the same, and cgf's 'its fixed in the latest
version' message - so I grabbed the cygwin1-1990917.dll and
cygwin-inst-1990913.tar.

This still appears to have some delays when access the file system
[1]. Using strace bash, I see a large pause in several calls to
lookup_name, followed by a Win32 error - see below.

I guess this is down to the security changes. Do I need to recompile
bash? I've succesfully dropped in snapshots before, and the I didn't
bother with the cygwin-inst file. Am I wrong in thinking that
cygwin1-1990917 and cygwin-inst-1990913 are all I need?

BTW I made the first step at recompiling bash from the old user-src I
have lying around, but failed at the first hurdle:

PS02235:philipa% cd /usr/local/src/cygwin-distsrc/
/usr/local/src/cygwin-distsrc
PS02235:philipa% ./configure
Configuring for a i686-pc-cygwin32 host.
Created "Makefile" in /usr/local/src/cygwin-distsrc using "mh-frag"
/bin/ld: cannot open crt0.o: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

This and everything else works fine with an old dll - my train journey
is coming to an end, so I've decided to give in and revert back to the
earlier dll...

Thanks,

Phil


Footnotes: 
[1]  My file system is FAT


<snip>

  672  645215 [main] ls 1017 hinfo::de_linearize_fd_array: fd 1, name {stdout}, win32 name \dev\pipe, status 0x18008
  501  646255 [main] ls 1017 hinfo::build_fhandler:  - cb 64, fd 1, fh 0xA031148
  494  655509 [main] ls 1017 fhandler_base::de_linearize: access_ 0x40000000, status 0x18008, io_handle 0xEC, output_handle 0xEC
  539  656048 [main] ls 1017 hinfo::de_linearize_fd_array: len 83
12027  668075 [main] ls 1017 hinfo::de_linearize_fd_array: fd 2, name {stderr}, win32 name \dev\pipe, status 0x18008
  622  669257 [main] ls 1017 hinfo::build_fhandler:  - cb 64, fd 2, fh 0xA031250
  493  670785 [main] ls 1017 fhandler_base::de_linearize: access_ 0x40000000, status 0x18008, io_handle 0x100, output_handle 0x100
  541  671326 [main] ls 1017 hinfo::de_linearize_fd_array: len 83
  649  671975 [main] ls 1017 pinfo_init: pid 1017, pgid 1014
 2073  674048 [main] ls 1017 __get_signal_mutex: acquired for ../../../sdevo/winsup/debug.cc:71
  696  674744 [main] ls 1017 __release_signal_mutex: released at ../../../sdevo/winsup/debug.cc:80
42722  717466 [main] ls 1017 sigproc_init: process/signal handling enabled(10C1)
 1000  718466 [main] ls 1017 dll_crt0_1: Application CYGWIN version: 20.1, api: 0.0
  723  719189 [main] ls 1017 dll_crt0_1: CYGWIN DLL version: 22.0, api: 0.15
  561  720482 [main] ls 1017 build_argv: argv[0] = 'ls'
  713  721195 [main] ls 1017 build_argv: argv[1] = '/usr/local/src'
  710  721905 [main] ls 1017 build_argv: argv[2] = '(null)'
 2191  724096 [main] ls 1017 DllList::initAll: call to DllList::initAll
  744  724840 [main] ls 1017 dll_crt0_1: user_data->main 0x40167C
36170  761010 [sig] ls 1017 lookup_name: name: philipa


** Pause here! **


11337  772347 [sig] ls 1017 lookup_name: LookupAccountName(philipa) Win32 error +1332
  759  773106 [sig] ls 1017 ../../../sdevo/winsup/security.cc:183 seterrno: unknown error 1332
  930  774036 [sig] ls 1017 wait_sig: sigcatch_nonmain 0x28
  541  774577 [sig] ls 1017 wait_sig: subproc_ready 0x15C
873095 86546516 [main] ls 1017! spawn_guts: res = 20000
  545 86547061 [main] ls 1017! my_parent_is_alive: parent still alive
  957 86548018 [main] ls 1017! spawn_guts: parent = 0xA01C770

<snip>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
  1999-09-28 12:04     ` Corinna Vinschen
@ 1999-09-30 23:42       ` Corinna Vinschen
  0 siblings, 0 replies; 10+ messages in thread
From: Corinna Vinschen @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Philip Aston; +Cc: cygwin, Earnie Boyd

Philip Aston wrote:
> 
> Corinna Vinschen writes:
>  > Hi Philip,
>  >
>  > maybe the name philipa is used in /etc/passwd but it's not
>  > your true NT login name?
> 
> AFAICT it is - what's the definitive way of asking NT? I think its in
> a different NT domain that I only sync with when I dial up, would this
> be the problem?

As I mentioned in my last mail, it's only a problem if you wish to
use the `ntsec' feature. In this case it's essential that your
passwd and group files are generated according to the SAM of your
NT domain. If you're a domain member,
call `mkpasswd -g -d YOURDOMAIN > /etc/passwd'
and  `mkgroup -d YOURDOMAIN > /etc/group'
else
call `mkpasswd -g -l > /etc/passwd'
and  `mkgroup -l > /etc/group'.

> [...]
> Did I even have to install the "inst" distribution? Whats the miniumum
> needed with a new snapshot?

Nothing. You may still use the old headers and libraries. In this case
you will not get the new features but your new compiled apps are still
compatible to B20.1. If you use the new headers and libs, your new apps
would only run with newer snapshots (since b21.0.8 of late Dec-98).

>  > or set CYGWIN=nontsec.
> 
> I did this. Or rather "CYGWIN=tty nontsec", which I assume to be the
> same thing.

Ok, read it as `CYGWIN=... nontsec ...'

> Appears to be fine now, thanks for your help.
> 
> - Phil

You're welcome,
Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
  1999-09-28  5:58 Earnie Boyd
@ 1999-09-30 23:42 ` Earnie Boyd
  0 siblings, 0 replies; 10+ messages in thread
From: Earnie Boyd @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Philip Aston, Corinna Vinschen; +Cc: cygwin

--- Philip Aston <philipa@parallax.co.uk> wrote:
-8<-
> Good.
> Did I even have to install the "inst" distribution? Whats the miniumum 
> needed with a new snapshot?
> 
-8<-

If you install the cygwin-inst you will need to rebuild any libraries you might
use with the new headers.  Although the cygwin1.dll is backward compatible the
headers and libraries are not.  However, it is to your benefit to install the
cygwin-inst package because of the numerous fixes to headers and libraries.

=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >

Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >

(If you respond to the list, then please don't cc me)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Strange delays - need to recompile bash for latest snapshot?
@ 1999-09-28  5:58 Earnie Boyd
  1999-09-30 23:42 ` Earnie Boyd
  0 siblings, 1 reply; 10+ messages in thread
From: Earnie Boyd @ 1999-09-28  5:58 UTC (permalink / raw)
  To: Philip Aston, Corinna Vinschen; +Cc: cygwin

--- Philip Aston <philipa@parallax.co.uk> wrote:
-8<-
> Good.
> Did I even have to install the "inst" distribution? Whats the miniumum 
> needed with a new snapshot?
> 
-8<-

If you install the cygwin-inst you will need to rebuild any libraries you might
use with the new headers.  Although the cygwin1.dll is backward compatible the
headers and libraries are not.  However, it is to your benefit to install the
cygwin-inst package because of the numerous fixes to headers and libraries.

=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >

Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >

(If you respond to the list, then please don't cc me)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-09-30 23:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-27  4:46 Strange delays - need to recompile bash for latest snapshot? Philip Aston
1999-09-27  7:11 ` Corinna Vinschen
1999-09-28  5:27   ` Philip Aston
1999-09-28 12:04     ` Corinna Vinschen
1999-09-30 23:42       ` Corinna Vinschen
1999-09-30 23:42     ` Philip Aston
1999-09-30 23:42   ` Corinna Vinschen
1999-09-30 23:42 ` Philip Aston
1999-09-28  5:58 Earnie Boyd
1999-09-30 23:42 ` Earnie Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).