Message238320
There is maybe a bug. Can you show an example of regex and a text where the memory leak occurs? You can use the tracemalloc module to check if there is a memory leak. Or use sys.getcounts() if you compiled Python in debug mode.
sre_lib.h is very complex, it uses the C instruction "goto" with regex bytecodes.
"DO_JUMP(JUMP_REPEAT, jump_repeat, ctx->pattern+ctx->pattern[0]);" calls "goto entrace" to execute following bytecodes, but later it comes back after DO_JUMP() with the "jump_repeat:" label:
https://hg.python.org/cpython/file/c89f7c34e356/Modules/sre_lib.h#l1180 |
|
| Date |
User |
Action |
Args |
| 2015-03-17 17:09:24 | vstinner | set | recipients:
+ vstinner, ezio.melotti, mrabarnett, abacabadabacaba |
| 2015-03-17 17:09:24 | vstinner | set | messageid: <[email protected]> |
| 2015-03-17 17:09:24 | vstinner | link | issue23689 messages |
| 2015-03-17 17:09:24 | vstinner | create | |
|