Modify

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#3864 closed Bug (Fixed)

StringRegExp - AutoIt3.exe ended.rc:-1073741571

Reported by: mLipok Owned by: Jpm
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 Changed 3 years ago by Jon

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 Changed 3 years ago by mLipok

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 3 years ago by mLipok (previous) (diff)

comment:3 Changed 3 years ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Thanks
a tentaive fix has been sent to Jon

comment:4 Changed 3 years ago by Jpm

  • Resolution set to Fixed
  • Status changed from assigned to closed

final fix done by Jon

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.