ID 353320 - Python garbage collect causes Mari 4.1v1 to crash and abort the process

Follow

Problem summary
In Mari 4.1v1, Python garbage collect causes Mari to crash and abort the process

Customer reported version
4.1
Customer reported platform
centos7

Steps to reproduce

1) Launch Mari in Verbose
2) In the Python Console pane, run the following:

import gc
gc.collect()
3) Mari crashes and the process aborts with the following printed to the terminal/log:
MriBin: Modules/gcmodule.c:366: visit_decref: Assertion 'gc->gc.gc_refs != 0' failed.

Workaround
Unknown. 

Reproduced by support
Mari 4.1v1 - CentOS 7.5

Earliest version tested
Last working version - Mari 4.0v4

Expected behaviour
Mari should complete the action and not abort the process

Actual behaviour
Mari crashes and errors are returned in the terminal process

    We're sorry to hear that

    Please tell us why