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


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


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

0%

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:

Description

In Opencv 2.4.5 on Solaris

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

int main(){
printf("%i.%i", CV_MAJOR_VERSION, CV_MINOR_VERSION);
};
```

g++ -o opencv-link-test opencv-link-test.cc -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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/opencv-link-test...(no debugging symbols found)...done.
(gdb)
(gdb)
(gdb)
(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/libopencv_imgproc.so.2.4
(gdb) bt
#0 0xfe928333 in cv::initInterTab2D(int, bool) () from /opt/local/lib/libopencv_imgproc.so.2.4
#1 0xfeffbafc in _ctype () from /usr/lib/ld.so.1
#2 0x0804680c in ?? ()
#3 0x00000000 in ?? ()
(gdb)


History

Updated by Andrew Senin almost 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

Hi,

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.

Thanks,

P

Updated by Peter Braden almost 4 years ago

So I couldn't get 2.4.6.1 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