04-19-2023 06:58 AM
This VI causes my LV 2021 32bit to crash, but not with 64bit LV. Is there something wrong with the regex itself? On regex101 it works flawlessly.
04-19-2023 07:03 AM
Even it crashes LV2023 (32bit).
Note: I don't have 64bit installed
04-19-2023 07:15 AM
Some more investigation - if I shorten the string part between the "recipeAttributeList", it works and executes in no time. I did some benchmark with putting more and more text in the string input and for me it stops working at ~ 2780 characters, see the example. No memory raise detected.
03-11-2026 09:45 AM
I have a regex example that crashes LabVIEW 2022Q3 64 bits by calling Search and Replace String.
Pretty sure some excessive greedy backtracking is causing the problem and we've replaced this with something that doesn't crash, though maybe LabVIEW could just error out somehow and not go puff.
03-11-2026 10:05 AM
Is it a crash or does it just return an error? LV regex I think is based on PCRE so will return an error on encountering a null character.
03-11-2026 10:10 AM
@billko wrote:
Is it a crash or does it just return an error? LV regex I think is based on PCRE so will return an error on encountering a null character.
Hard crash. No nulls in the string. Probably recursion / out of stack space when doing greedy backtracking.