Segmentation Fault in filter2D() for (larger) Gabor filters with Python, Linux (Bug #2644)
Description
Attached python code gives me a segfault for gabor filters with ksize > (11,11).
It does not segfault for unary filters.
System:
OS: Ubuntu 12.04 LTS
OpenCV: 2.4.0 (current stable)
Python: 2.7.3
History
Updated by Alexander Smorkalov about 12 years ago
- Category set to imgproc, video
- Target version set to 2.4.4
- Assignee set to Vadim Pisarevsky
Updated by Akos Marton about 12 years ago
Please find the attached cpp (sorry for not writing Python code), tested on the latest snapshot, haven't experienced any problem so far. Memory-leaks were also checked.
- File gabor.cpp added
Updated by Johannes Bauer about 12 years ago
Akos Marton wrote:
Please find the attached cpp (sorry for not writing Python code), tested on the latest snapshot, haven't experienced any problem so far. Memory-leaks were also checked.
The Cpp version works fine for me. I changed the Python script so it was closer to the simpler Cpp program (approximate PI, 1 color channel) and it still segfaulted on me.
I strace'd both versions to make sure they were using exactly the same libraries. The Python version loads a lot more opencv libraries (and apparently doesn't use them), but the ones they both use are the same.
Updated by Akos Marton about 12 years ago
A callstack would be fine to have.
One way to create it is written here [1], not Python related, but helps.
Updated by Johannes Bauer about 12 years ago
Sorry it took me so long.
Have a core dump!
(made with the original Python script attached to this issue)
Updated by Johannes Bauer about 12 years ago
- File core.bz2 added
Updated by Vadim Pisarevsky about 12 years ago
- Affected version set to 2.4.3
- Target version deleted (
2.4.4)
Updated by Vadim Pisarevsky about 12 years ago
- Assignee deleted (
Vadim Pisarevsky)
Updated by Ilya Lysenkov about 12 years ago
- Assignee set to Ilya Lysenkov
Updated by Ilya Lysenkov about 12 years ago
Thank you for the report and the code. However, I was not able to reproduce the problem. There were changes in Python bindings recently so probably the problem is already fixed.
System:
OpenCV 2.4 branch (commit 3a55fb9d), debug and release builds
Ubuntu 12.04.1 LTS
Python 2.7.3
- Status changed from Open to Cancelled
- Category changed from imgproc, video to python bindings
Updated by Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4