You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is as much for other users as for the developers.
I'm using re2 in a Django app, and stored a large compiled re2 regex in a Redis cache. When I pulled it out of the cache, the 'pattern' attribute didn't make it out alive - it was 'None'. Naively using the object's 'match' method caused a segmentation fault.
Simple solution - don't store compiled regexs in Redis.
Perhaps there is also room here for the code to fail a bit more gracefully.
The text was updated successfully, but these errors were encountered:
This is as much for other users as for the developers.
I'm using re2 in a Django app, and stored a large compiled re2 regex in a Redis cache. When I pulled it out of the cache, the 'pattern' attribute didn't make it out alive - it was 'None'. Naively using the object's 'match' method caused a segmentation fault.
Simple solution - don't store compiled regexs in Redis.
Perhaps there is also room here for the code to fail a bit more gracefully.
The text was updated successfully, but these errors were encountered: