Segmentation Fault in filter2D() for (larger) Gabor filters with Python, Linux (Bug #2644)


Added by Johannes Bauer about 12 years ago. Updated about 12 years ago.


Status:Cancelled Start date:2012-12-18
Priority:Normal Due date:
Assignee:Ilya Lysenkov % Done:

0%

Category:python bindings
Target version:2.4.4
Affected version:2.4.3 Operating System:
Difficulty: HW Platform:
Pull request:

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


gabor.py (525 Bytes) Johannes Bauer, 2012-12-18 11:59 am

gabor-output.txt (438 Bytes) Johannes Bauer, 2012-12-18 11:59 am

gabor.cpp - testing source (662 Bytes) Akos Marton, 2012-12-25 10:40 pm

core.bz2 (5 Bytes) Johannes Bauer, 2013-01-10 09:14 am


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.

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.

[1] http://www.network-theory.co.uk/articles/gccdebug.html

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

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

Also available in: Atom PDF