Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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" To: Content-Transfer-Encoding: 8bit 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/