Modify ↓
Opened on Mar 5, 2022 at 6:39:22 PM
Closed on Jun 15, 2022 at 11:00:36 AM
Last modified on Sep 26, 2022 at 4:21:46 PM
#3864 closed Bug (Fixed)
StringRegExp - AutoIt3.exe ended.rc:-1073741571
| Reported by: | mLipok | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.14.5 | Severity: | None |
| Keywords: | Cc: |
Description
This code
_Example() Func _Example() Local Const $s_RegExp = _ ; $s_RegExp comes from Func _PathSplit( '^\h*((?:\\\\\?\\)*(\\\\[^\?\/\\]+|[A-Za-z]:)?(.*[\/\\]\h*)?((?:[^\.\/\\]|(?(?=\.[^\/\\]*\.)\.))*)?([^\/\\]*))$' Local $sString = 'xxxxxxxxxx' For $iCounter = 1 To 11 ConsoleWrite("- step #" & $iCounter & ' StringLen= ' & StringLen($sString) & @CRLF) StringRegExp($sString, $s_RegExp, 0) $sString &= $sString Next EndFunc ;==>_Example3
ends with
- step #1 StringLen= 10 - step #2 StringLen= 20 - step #3 StringLen= 40 - step #4 StringLen= 80 - step #5 StringLen= 160 - step #6 StringLen= 320 - step #7 StringLen= 640 - step #8 StringLen= 1280 - step #9 StringLen= 2560 - step #10 StringLen= 5120 - step #11 StringLen= 10240 !>19:31:54 AutoIt3.exe ended.rc:-1073741571
I hope someday it will be possible to diagnose and fix it in the future.
Attachments (0)
Change History (4)
comment:2 by , on Mar 6, 2022 at 9:50:00 PM
Here is better, small example
; string preparation Local $sString = '' For $iCounter = 1 To 5380 $sString &= 'x' Next Local Const $s_RegExp = _ ; $s_RegExp comes from Func _PathSplit( '^\h*((?:\\\\\?\\)*(\\\\[^\?\/\\]+|[A-Za-z]:)?(.*[\/\\]\h*)?((?:[^\.\/\\]|(?(?=\.[^\/\\]*\.)\.))*)?([^\/\\]*))$' StringRegExp($sString, $s_RegExp, 0)
this example ends with:
ended.rc:-1073741571
Is there a way to prevent this error in AutoIt internal C++ code for StringRegExp function ?
comment:3 by , on Apr 8, 2022 at 12:27:21 PM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
Thanks
a tentaive fix has been sent to Jon
comment:4 by , on Jun 15, 2022 at 11:00:36 AM
| Resolution: | → Fixed |
|---|---|
| Status: | assigned → closed |
final fix done by Jon
Note:
See TracTickets
for help on using tickets.

Cheers, Can you just comment what the expected behaviour is? I can see something is doubling but not what is supposed to be happening :)