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
BUG: Memory leak when the module created by MOD_DEF
is not decreased on failure (static analyzer report)
#8091
Comments
Thanks for the report.
On inspection, this analysis looks valid.
On inspection, this analysis looks valid.
On inspection, this analysis looks valid. Note that the macro
On inspection, this analysis looks valid. Note that the macro
On inspection, this analysis looks valid.
On inspection, this analysis looks valid.
On inspection, this analysis looks valid. There's also further places in that |
For the |
Macro
MOD_DEF
will create a module PyObject with a new reference returned and assigned to the first argument.numba/numba/_pymodule.h
Line 16 in 468647d
The following places invoke the macro but do not decrease the refcnt of the module PyObject on failure.
Invoked here:
numba/numba/_dispatcher.cpp
Line 1211 in 468647d
Function returns without decreasing the refcnt.
numba/numba/_dispatcher.cpp
Line 1217 in 468647d
Internal Report ID: 0dc3d1
Invoked here:
numba/numba/_dynfuncmod.c
Line 66 in 468647d
Function returns without decreasing the refcnt.
numba/numba/_dynfuncmod.c
Line 71 in 468647d
Internal Report ID: 235f50
Invoked here:
numba/numba/_helpermod.c
Line 288 in 468647d
Function returns in macro
import_array
without decreasing the refcnt.numba/numba/_helpermod.c
Line 292 in 468647d
Internal Report ID: f3d5d2
Invoked here:
numba/numba/core/runtime/_nrt_pythonmod.c
Line 193 in 468647d
Function returns in macro
import_array
without decreasing the refcnt.numba/numba/core/runtime/_nrt_pythonmod.c
Line 196 in 468647d
Internal Report ID: 724a48
Invoked here:
numba/numba/experimental/jitclass/_box.c
Line 156 in 468647d
Function returns without decreasing the refcnt.
numba/numba/experimental/jitclass/_box.c
Line 162 in 468647d
Internal Report ID: 31f898
Invoked here:
numba/numba/mviewbuf.c
Line 356 in 468647d
Function returns without decreasing the refcnt.
numba/numba/mviewbuf.c
Line 362 in 468647d
Internal Report ID: f68b83
Invoked here:
numba/numba/np/ufunc/_internal.c
Line 762 in 468647d
Function returns without decreasing the refcnt.
numba/numba/np/ufunc/_internal.c
Line 769 in 468647d
Internal Report ID: ed7b7c
The text was updated successfully, but these errors were encountered: