|
Bugzilla – Full Text Bug Listing |
| Summary: | Missing GIL lock in generated callback destructor | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Alex Afanasyev <alexander.afanasyev> |
| Component: | python bindings | Assignee: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs, tomh |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | patch | ||
Thank you, the patch looks great. committed as: 3dc19f3ac5a7 |
Created attachment 1659 [details] patch The callback destructor is calling Py_DECREF on the python object, which may ultimately lead to destruction of the python object. Without GIL locking, this can miserably fail with mysterious segfault. The attached patch solves the problem.