delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/16/15:57:12

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: RE: Bash login breaks if too many environment variables are set
Date: Fri, 16 Sep 2005 21:55:47 +0200
Message-ID: <67B13185D126644BA1AC929BE1F942AD7A5B56@dekomplm001.net.plm.eds.com>
From: "Hommersom, Fred" <fhommers AT ugs DOT com>
To: <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j8GJvBOC010799

>>You can help by running the new snapshot under strace, like you did before.

I have done three tests:
below the maximum
exactly the maximum
over the maximum

**********************************************
Here are the results of the test below the maximum 
**********************************************
Program name: c:\cygwin\bin\bash.exe (pid 3260, ppid 1)
App version:  1005.18, api: 0.132
DLL version:  1005.19, api: 0.138
DLL build:    20050916 12:02:10SNP
OS version:   Windows NT-5.1
Heap size:    1073741824
Date/Time:    2005-09-16 21:41:35
**********************************************
   23     240 [main] bash 3260 set_myself: myself->dwProcessId 3260
   20     260 [main] bash 3260 time: 1126899695 = time (0)
  496     756 [main] bash 3260 environ_init: GetEnvironmentStrings returned 0x2452F8 - "=C:=C:\Data\locations\tc50_custy00"
   36     792 [main] bash 3260 environ_init: 0x10010238: !C:=C:\Data\locations\tc50_custy00
   32     824 [main] bash 3260 environ_init: 0x10010260: ACD=C:\Data\TC\TC50\support\acd
....many more lines



**********************************************
Here are the results for the exact number where it went wrong.
**********************************************

*** internal error reading the windows environment - too many environment variables?

**********************************************
Program name: c:\cygwin\bin\bash.exe (pid 3140, ppid 1)
App version:  1005.18, api: 0.132
DLL version:  1005.19, api: 0.138
DLL build:    20050916 12:02:10SNP
OS version:   Windows NT-5.1
Heap size:    1073741824
Date/Time:    2005-09-16 21:37:00
**********************************************
   26     538 [main] bash 3140 set_myself: myself->dwProcessId 3140
   24     562 [main] bash 3140 time: 1126899420 = time (0)
14408   14970 [main] bash 3140 environ_init: GetEnvironmentStrings returned 0x2452F8 - "x$"
   46   15016 [main] bash 3140 environ_init: 0x10010238: X$
   35   15051 [main] bash 3140 environ_init: 0x10010248: ðH$
   76   15127 [main] bash 3140 handle_exceptions: In cygwin_except_handler exc 0xC0000005 at 0x610D6BD1 sp 0x22ED64
   24   15151 [main] bash 3140 handle_exceptions: In cygwin_except_handler sig 11 at 0x610D6BD1
   21   15172 [main] bash 3140 handle_exceptions: In cygwin_except_handler calling 0x0



**********************************************
Here are the results if the environment size is increased by 10 characters
No error message in the window. bash quits immediately. The environmentstring is truncated.

**********************************************
Program name: c:\cygwin\bin\bash.exe (pid 568, ppid 1)
App version:  1005.18, api: 0.132
DLL version:  1005.19, api: 0.138
DLL build:    20050916 12:02:10SNP
OS version:   Windows NT-5.1
Heap size:    1073741824
Date/Time:    2005-09-16 21:44:55
**********************************************
   23     282 [main] bash 568 set_myself: myself->dwProcessId 568
   20     302 [main] bash 568 time: 1126899895 = time (0)
  408     710 [main] bash 568 environ_init: GetEnvironmentStrings returned 0x2552F8 - "=C:=C:\Data\location"
   35     745 [main] bash 568 environ_init: 0x10010238: !C:=C:\Data\location

no more lines in this trace

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019