New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regexp: high memory use #61439
Comments
I cannot follow what your problem is, can you post a small reproduction program ? |
regex have memeory leak: |
@epowsal Thanks for reporting the issue. Do you mind sharing a complete example on https://play.golang.com/? Thanks |
I am sorry. I have not time do that. |
@epowsal the code you sent here #61439 (comment) does not compile ( |
I am sorry. I have not right to send the code. |
Unfortunately it is unlikely that we will be able to fix anything without a test case and without a clear explanation of the problem. |
Today I test once again. The problem disappear. It's just my mistake. I am sorry interrupt you guys.Now the program run very good. |
6914 chars long length regex like this:"^[a-zA-Z0-9 \r\n\t`\~\!@®#\$%\^&\*\(\)_\+\-=\{\}\|\[\]\\:";'<>\?,./“”•....]+"
If the regex add some special chars the memory will leak. the special chars like this:"▁▂▃▄▅▆▇█▉▊▋▋▌▍▎▏▐░▒▓▔■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱►◄◆◇◈◘◙◚◛◢◣◤◥◧◨◩◪◫☖☗❏❐❑❒❖❘❙❚◊✉♟♙♜♖♞♘♝♗♛♕♚♔☩☢☎"
befor add the special chars max meory 10GB with long time running.
after add special chars memory increase to full until program crash only use some minutes .
1.20.5
windows computer memroy size is 32GB
The text was updated successfully, but these errors were encountered: