[MacPorts] #47549: opencv @2.4.11_0 - fails to load tiff files

MacPorts noreply at macports.org
Thu Apr 23 09:23:08 PDT 2015

#47549: opencv @2.4.11_0 - fails to load tiff files
 Reporter:  jose.goicolea@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.3.3
 Keywords:                   |       Port:  opencv
 The latest version of opencv @2.4.11_0 fails when loading .tiff files.
 However, if I activate the previous version @2.4.10 _0 it runs ok.

 My operating system is mac OS X 10.7.5, xcode version 4.6.2

 I noticed the problem when running auto-multiple-choice, which uses the
 opencv libraries. With the help of the auto-multiple-choice developer, we
 have spotted the problem and reproduced it in a basic example. This
 example includes a simple load.c file and a tiff file, included.

 The compilation and execution commands for the test case I provide are
 gcc -I/opt/local/include/opencv -I/opt/local/include -L/opt/local/lib
 -lopencv_core -lopencv_highgui -lopencv_imgproc load.c -o load
 ./load  t6_0000.tif

 Under opencv @2.4.10_0 it compiles and runs ok (no output expected). Under
 opencv @2.4.11_1 it fails with "Segmentation fault: 11". I have run it
 with gdb and backtrace, the output is:
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_INVALID_ADDRESS at address: 0x000000010720e180
 0x000000010060dadc in put1bitbwtile ()
 (gdb) backtrace
 #0  0x000000010060dadc in put1bitbwtile ()
 #1  0x000000010060b7b0 in gtStripContig ()
 #2  0x000000010060953d in TIFFReadRGBAStrip ()
 #3  0x000000010027f264 in cv::TiffDecoder::readData ()
 #4  0x0000000100262a9a in cv::imread_ ()
 #5  0x000000010026651f in cvLoadImage ()
 #6  0x000000010000322b in main ()


Ticket URL: <https://trac.macports.org/ticket/47549>
MacPorts <https://www.macports.org/>
Ports system for OS X

More information about the macports-tickets mailing list