 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Eggi Guest
|
Posted: Tue Jun 13, 2006 10:46 am Post subject: Loop (registry) with over long keys creates stack overflow |
|
|
On the pc with the hdaudio driver from realtek (5.10.0.5224 Rev. A) and the Microsoft Windows Universal Audio Architecture Update (Q888111) I find very mutch over long keys under HKLM\system\controlset\Deviceclasses\... . My program crash traceable by this keys.
Dr. Watson:
Application exception occurred:
App: A:\Vorbereitung_Image.exe (pid=880)
When: 6/12/2006 @ 16:51:02.968
Exception number: c00000fd (stack overflow)
*----> System Information <----*
Computer Name: XW4300
User Name: Administrator
Terminal Session Id: 0
Number of Processors: 1
Processor Type: x86 Family 15 Model 4 Stepping 3
Windows Version: 5.1
Current Build: 2600
Service Pack: 2
Current Type: Multiprocessor Free
Registered Organization: XXXX
Registered Owner: User
*----> Task List <----*
0 System Process
4 System
468 smss.exe
712 csrss.exe
736 winlogon.exe
780 services.exe
792 lsass.exe
944 svchost.exe
1024 svchost.exe
1120 svchost.exe
1164 svchost.exe
1220 svchost.exe
1484 spoolsv.exe
1628 LSSrvc.exe
1656 nvsvc32.exe
216 alg.exe
360 wuauclt.exe
1200 Explorer.EXE
2024 wmiprvse.exe
328 wpabaln.exe
880 Vorbereitung_Image.exe
680 drwtsn32.exe
*----> Module List <----*
(0000000000400000 - 0000000000476000: A:\Vorbereitung_Image.exe
(000000005ad70000 - 000000005ada8000: C:\WINDOWS\system32\uxtheme.dll
(0000000071aa0000 - 0000000071aa8000: C:\WINDOWS\system32\WS2HELP.dll
(0000000071ab0000 - 0000000071ac7000: C:\WINDOWS\system32\WS2_32.dll
(0000000071ad0000 - 0000000071ad9000: C:\WINDOWS\system32\WSOCK32.dll
(00000000763b0000 - 00000000763f9000: C:\WINDOWS\system32\comdlg32.dll
(0000000076b40000 - 0000000076b6d000: C:\WINDOWS\system32\WINMM.dll
(0000000077120000 - 00000000771ac000: C:\WINDOWS\system32\OLEAUT32.dll
(00000000773d0000 - 00000000774d2000: C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.dll
(00000000774e0000 - 000000007761c000: C:\WINDOWS\system32\ole32.dll
(0000000077b40000 - 0000000077b62000: C:\WINDOWS\system32\Apphelp.dll
(0000000077c00000 - 0000000077c08000: C:\WINDOWS\system32\VERSION.dll
(0000000077c10000 - 0000000077c68000: C:\WINDOWS\system32\msvcrt.dll
(0000000077d40000 - 0000000077dd0000: C:\WINDOWS\system32\USER32.dll
(0000000077dd0000 - 0000000077e6b000: C:\WINDOWS\system32\ADVAPI32.dll
(0000000077e70000 - 0000000077f01000: C:\WINDOWS\system32\RPCRT4.dll
(0000000077f10000 - 0000000077f56000: C:\WINDOWS\system32\GDI32.dll
(0000000077f60000 - 0000000077fd6000: C:\WINDOWS\system32\SHLWAPI.dll
(000000007c800000 - 000000007c8f4000: C:\WINDOWS\system32\kernel32.dll
(000000007c900000 - 000000007c9b0000: C:\WINDOWS\system32\ntdll.dll
(000000007c9c0000 - 000000007d1d4000: C:\WINDOWS\system32\SHELL32.dll
*----> State Dump for Thread Id 0x238 <----*
eax=0000108c ebx=00036244 ecx=00032f98 edx=00000011 esi=003927b9 edi=00000000
eip=0044ee75 esp=00035f90 ebp=00000000 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
*** WARNING: Unable to verify checksum for A:\Vorbereitung_Image.exe
*** ERROR: Module load completed but symbols could not be loaded for A:\Vorbereitung_Image.exe
function: Vorbereitung_Image
0044ee5b 83c004 add eax,0x4
0044ee5e 8500 test [eax],eax
0044ee60 94 xchg eax,esp
0044ee61 8b00 mov eax,[eax]
0044ee63 50 push eax
0044ee64 c3 ret
0044ee65 51 push ecx
0044ee66 8d4c2408 lea ecx,[esp+0x8]
0044ee6a 81e900100000 sub ecx,0x1000
0044ee70 2d00100000 sub eax,0x1000
FAULT ->0044ee75 8501 test [ecx],eax ds:0023:00032f98=00033f70
0044ee77 3d00100000 cmp eax,0x1000
0044ee7c 73ec jnb Vorbereitung_Image+0x4ee6a (0044ee6a)
0044ee7e 2bc8 sub ecx,eax
0044ee80 8bc4 mov eax,esp
0044ee82 8501 test [ecx],eax
0044ee84 8be1 mov esp,ecx
0044ee86 8b08 mov ecx,[eax]
0044ee88 8b4004 mov eax,[eax+0x4]
0044ee8b 50 push eax
0044ee8c c3 ret
*----> Stack Back Trace <----*
WARNING: Stack unwind information not available. Following frames may be wrong.
ChildEBP RetAddr Args to Child
00000000 00000000 00000000 00000000 00000000 Vorbereitung_Image+0x4ee75
*----> Raw Stack Dump <----*
0000000000035f90 b9 27 39 00 1a b4 41 00 - a1 21 42 00 00 00 00 00 .'9...A..!B.....
0000000000035fa0 44 62 03 00 00 00 00 00 - 00 00 00 00 6f 27 39 00 Db..........o'9.
0000000000035fb0 00 00 00 00 44 62 03 00 - 00 00 00 00 00 00 00 00 ....Db..........
0000000000035fc0 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 ................
0000000000035fd0 b9 27 39 00 00 00 00 00 - 00 00 00 00 44 62 03 00 .'9.........Db..
0000000000035fe0 00 00 00 00 44 62 03 00 - 00 00 00 00 00 00 00 00 ....Db..........
0000000000035ff0 6f 27 39 00 83 45 41 00 - 48 00 9e 00 6b 27 39 00 o'9..EA.H...k'9.
0000000000036000 96 19 42 00 03 00 00 00 - 38 60 03 00 00 00 00 00 ..B.....8`......
0000000000036010 44 62 03 00 00 00 00 00 - 00 00 00 00 e2 9d 00 00 Db..............
0000000000036020 00 00 00 00 00 00 00 00 - 0d 27 39 00 00 00 00 00 .........'9.....
0000000000036030 44 62 03 00 41 00 00 00 - 00 00 00 00 00 00 00 00 Db..A...........
0000000000036040 3d fb 90 7c fc 60 03 00 - 00 00 00 00 6f 27 39 00 =..|.`......o'9.
0000000000036050 6c fb 90 7c 71 fb 90 7c - 00 00 00 00 fc 60 03 00 l..|q..|.....`..
0000000000036060 08 02 00 00 58 60 03 00 - a8 68 15 00 c4 60 03 00 ....X`...h...`..
0000000000036070 00 00 00 00 0d 27 39 00 - 0d 27 39 00 05 21 42 00 .....'9..'9..!B.
0000000000036080 02 00 00 00 b4 60 03 00 - 00 00 00 00 44 62 03 00 .....`......Db..
0000000000036090 00 00 00 00 00 00 00 00 - e2 9d 00 00 00 00 00 00 ................
00000000000360a0 00 00 00 00 88 f3 12 00 - ed 26 39 00 00 00 00 00 .........&9.....
00000000000360b0 00 00 00 00 00 00 00 00 - e1 8a c6 01 00 00 00 00 ................
00000000000360c0 00 00 00 00 bc 09 91 7c - 0d 27 39 00 00 00 00 00 .......|.'9.....
Can you check this?
Thanks Eggi |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Jun 13, 2006 12:41 pm Post subject: |
|
|
I think a stack overflow would mean that your script is using more than 4 MB of stack space, which is a lot. It would be good to see the relevant part of your script, which you can either post here or send to support@autohotkey.com. Also, if your version of AutoHotkey is more than 6 months old, it might help to upgrade.
Thanks. |
|
| Back to top |
|
 |
Eggi Guest
|
Posted: Tue Jun 13, 2006 3:12 pm Post subject: |
|
|
Hi Chris,
I validate the version 1.0.30.04 and use since then the loop function in my script. I have install a new type of pc with the current driver and have now this problem in windows 2000 and XP pro.
The part of my script:
| Code: | Loop, HKEY_LOCAL_MACHINE, , 1, 1
{
if a_LoopRegType = key
value =
else
{
RegRead, value
}
if value = %XXXX%
{
MsgBox, 35, Aenderung , (%A_LoopRegKey%\%A_LoopRegSubKey%\)`n`n%a_LoopRegName% = %value% (%a_LoopRegType%)`n`nDurch - %Name% - ersetzten?
IfMsgBox, Yes, RegWrite, %Name%
if ErrorLevel <> 0
{
MsgBox, 16, Error!, Fehler beim Schreiben der Registry.
}
IfMsgBox, Cancel, break
}
}
|
My temporary solution, I use now: Loop, HKEY_LOCAL_MACHINE, Software, 1, 1
That’s work ok, because the long keys is under HKEY_LOCAL_MACHINE \SYSTEM\.
Best regards
Eggi |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Thu Jun 15, 2006 1:33 am Post subject: |
|
|
| Thanks for the update. I'll research this and let you know what I find out. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6702 Location: France (near Paris)
|
Posted: Thu Jun 15, 2006 9:30 am Post subject: |
|
|
Perhaps you should put a sticky on this section (supposing people will read it) asking to report the version of AutoHotkey they are using, the system on which they run it (which flavor of Windows) and asking to try with the latest version of AHK if they can.
A bug report of a version dating several months ago is likely to be obsolete (or not, but at least, it may save you some precious time). _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Sat Jun 17, 2006 2:25 pm Post subject: |
|
|
(thanks for the suggestion above)
I believe the issue reported in this topic has been fixed in today's v1.0.44.07. If you have any more problems with it, please let me know. And thanks for reporting it. |
|
| Back to top |
|
 |
Mustang
Joined: 17 May 2007 Posts: 359 Location: England
|
Posted: Wed Jan 09, 2008 1:55 am Post subject: |
|
|
Version 1.0.47.05 still crashes with the same symptoms
Some of the key names that crash for me:
| Code: | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{f33fdc04-d1ac-4e8e-9a30-19bbd4b108ae}\
##?#WpdBusEnumRoot#UMB#2&37c186b&0&STORAGE#VOLUME#1&19F7E59C&0&_??_USBSTOR#DISK&VEN_CBM&PROD_FLASH_DISK&REV_5.00#0845003246F80009&0##
{f33fdc04-d1ac-4e8e-9a30-19bbd4b108ae} |
| Code: | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6ac27878-a6fa-4155-ba85-f98f491d4f33}\
##?#WpdBusEnumRoot#UMB#2&37c186b&0&STORAGE#VOLUME#1&19F7E59C&0&_??_USBSTOR#DISK&VEN_CBM&PROD_FLASH_DISK&REV_5.00#0845003246F80009&0##
{6ac27878-a6fa-4155-ba85-f98f491d4f33} |
| Code: | HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\DeviceClasses\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}\
##?#STORAGE#VOLUME#1&19F7E59C&0&_??_USBSTOR#DISK&VEN_CBM&PROD_FLASH_DISK&REV_5.00#0845003246F80009&0#{53F56307-B6BF-11D0-94F2-00A0C91EFB8B}#
{53f5630d-b6bf-11d0-94f2-00a0c91efb8b} |
Even if I put a "Continue" it seams to go back and read the same key again
[Moderator's note: Added arbitrary newlines to avoid scrolling of page. Join back the strings if needed.] |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Sun Mar 02, 2008 5:46 pm Post subject: |
|
|
I have some registry keys in similar locations that seem just as long, but I can't reproduce a stack overflow. If you or anyone has a .reg file that can be temporarily applied to create a long key, along with a script to reproduce the error, that would help.
Thanks. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|