Modify

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#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:1 by Jon, 4 years ago

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

comment:2 by mLipok, 4 years ago

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 ?

Last edited 4 years ago by mLipok (previous) (diff)

comment:3 by J-Paul Mesnage, 4 years ago

Owner: set to J-Paul Mesnage
Status: newassigned

Thanks
a tentaive fix has been sent to Jon

comment:4 by J-Paul Mesnage, 4 years ago

Resolution: Fixed
Status: assignedclosed

final fix done by Jon

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.