Segfault in cv::initInterTab2D in libopencv_imgproc (Bug #3163)

Added by Peter Braden about 4 years ago. Updated almost 4 years ago.

Status:Cancelled Start date:2013-07-18
Priority:Normal Due date:
Assignee:Peter Braden % Done:


Category:imgproc, video
Target version:Next Hackathon
Affected version:2.4.0 - 2.4.5 Operating System:Linux
Difficulty:Medium HW Platform:x86
Pull request:


In Opencv 2.4.5 on Solaris

#include <opencv/cv.h>
#include <opencv2/imgproc/imgproc.hpp>

int main(){

g++ -o opencv-link-test -L/opt/local/lib -lopencv_core -lopencv_imgproc -I /opt/local/include/

[root@da10e4ec-10d6-4690-903c-185867b476cd ~]# gdb opencv-link-test
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-sun-solaris2.11".
For bug reporting instructions, please see:
Reading symbols from /root/opencv-link-test...(no debugging symbols found)...done.
(gdb) run
Starting program: /root/opencv-link-test
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0xfe928333 in cv::initInterTab2D(int, bool) () from /opt/local/lib/
(gdb) bt
#0 0xfe928333 in cv::initInterTab2D(int, bool) () from /opt/local/lib/
#1 0xfeffbafc in _ctype () from /usr/lib/
#2 0x0804680c in ?? ()
#3 0x00000000 in ?? ()


Updated by Andrew Senin about 4 years ago

Hello Peter,

Thank you for posting this issue.

Could you please provide the following information:
- version of Solaris
- version of the compiler
- did you compile OpenCV on your own?

I'm afraid that currently we have limited resources. And we don't have Solaris around. So if you could investigate this issue and get back with some additional details on this issue or send a fixing pull request this would be really appreciated!

The only advice I can make so far is to try using the newest version of OpenCV which is 2.4.6. Possibly your problem is already fixed by someone.

  • Difficulty set to Medium
  • Target version set to Next Hackathon
  • Assignee set to Peter Braden
  • Status changed from New to Incomplete

Updated by Ivan Korolev almost 4 years ago

  • Category set to imgproc, video

Updated by Peter Braden almost 4 years ago


This is on Solaris 5.11.

I didn't build opencv myself - but I'm currently building the new version from source to see if it's fixed - I'll keep you posted.



Updated by Peter Braden almost 4 years ago

So I couldn't get to build cleanly, but after some hacking to get it to compile, the bug seems to be fixed in the newest release.

Updated by Ivan Korolev almost 4 years ago

It seems that the issue has been resolved, I am closing the ticket.

  • Status changed from Incomplete to Cancelled

Also available in: Atom PDF