PC Review


Reply
Thread Tools Rate Thread

cmd for loop crashes on XP SP 2

 
 
=?Utf-8?B?Wm9l?=
Guest
Posts: n/a
 
      7th Nov 2006
For example on some Windows XP SP 2 (but not all) excuting that command:

for /f %i in ('echo hello') do echo %i

makes cmd.exe crash with an "Access Violation".

Here is the stack trace when crashing under WinDbg:

msvcrt.dll!_wcslen() + 0x8
msvcrt.dll!__wpopen() + 0x1e0
cmd.exe!_FParseWork@12() + 0x31c
cmd.exe!_eFor@4() + 0xab
cmd.exe!_Dispatch@8() + 0x274a
cmd.exe!_main() + 0x7bc9
cmd.exe!_mainCRTStartup() + 0x10e
kernel32.dll!_BaseProcessStart@4() + 0x23

It looks related to that problem:
http://support.microsoft.com/KB/886659

How can I get the working patch ?
The one I found here:
http://hf.xable.net/index.php
didn't solve the problem !

Best,
Zoe

 
Reply With Quote
 
 
 
 
Jon
Guest
Posts: n/a
 
      8th Nov 2006


I was more than a little surprised to hear the following from "Zoe"
<(E-Mail Removed)> in message
news:23B40D6B-B48F-411F-BDF2-(E-Mail Removed)...
> For example on some Windows XP SP 2 (but not all) excuting that command:
>
> for /f %i in ('echo hello') do echo %i
>
> makes cmd.exe crash with an "Access Violation".
>
> Here is the stack trace when crashing under WinDbg:
>
> msvcrt.dll!_wcslen() + 0x8
> msvcrt.dll!__wpopen() + 0x1e0
> cmd.exe!_FParseWork@12() + 0x31c
> cmd.exe!_eFor@4() + 0xab
> cmd.exe!_Dispatch@8() + 0x274a
> cmd.exe!_main() + 0x7bc9
> cmd.exe!_mainCRTStartup() + 0x10e
> kernel32.dll!_BaseProcessStart@4() + 0x23
>
> It looks related to that problem:
> http://support.microsoft.com/KB/886659
>
> How can I get the working patch ?
> The one I found here:
> http://hf.xable.net/index.php
> didn't solve the problem !
>
> Best,
> Zoe
>


A couple of other articles to read (relate to earlier versions of Windows
but the principles may still apply)

Explanation......
http://support.microsoft.com/kb/250998


Workaround - not for XP but might work
http://support.microsoft.com/kb/195009/EN-US/


--
Jon


 
Reply With Quote
 
=?Utf-8?B?Wm9l?=
Guest
Posts: n/a
 
      8th Nov 2006

Hi Jon,

I set the value DisableHeapLookaside
for cmd.exe and even for explorer.exe and kernel32.dll
and reboot to make sure but it unfortunately didn't solve the problem
most likely because I use Win XP as you pointed out.

Thanks a lot for your kind answer anyway.

All the best,
Zoe

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple print loop crashes Ken Microsoft Excel Programming 3 5th Aug 2008 08:34 PM
Infinite loop when IE crashes =?Utf-8?B?eXM5NDkx?= Windows XP Internet Explorer 0 26th Jul 2005 04:11 PM
Explorer.exe crashes, computer in endless loop Ikke Microsoft Windows 2000 2 23rd Jul 2005 01:06 PM
PPT2003 Loop crashes PPT2002 jimcoughlan@btinternet.com Microsoft Powerpoint 3 12th May 2005 09:38 PM
WMP in reinstall loop and crashes explorer shella Windows XP Video 0 2nd Sep 2004 03:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 PM.