Package: openalpr Version: 2.3.0-1+b4 Severity: normal -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
When reading a particular image, I've been able to reproduce a segmentation fault. I had been searching for images to test OpenALPR with, so I searched for an image [1] and ran 'alpr maxresdefault.jpg'. Other images I tested with work fine. I've included a backtrace I made on Buster. [1] https://i.ytimg.com/vi/2bhhILfgWQs/maxresdefault.jpg - -- System Information: Debian Release: buster/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.15.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages openalpr depends on: ii libc6 2.27-3 ii libgcc1 1:8-20180321-1 ii liblept5 1.75.3-3 ii libopenalpr2 2.3.0-1+b4 ii libopencv-calib3d3.2 3.2.0+dfsg-4+b4 ii libopencv-contrib3.2 3.2.0+dfsg-4+b4 ii libopencv-core3.2 3.2.0+dfsg-4+b4 ii libopencv-features2d3.2 3.2.0+dfsg-4+b4 ii libopencv-flann3.2 3.2.0+dfsg-4+b4 ii libopencv-highgui3.2 3.2.0+dfsg-4+b4 ii libopencv-imgcodecs3.2 3.2.0+dfsg-4+b4 ii libopencv-imgproc3.2 3.2.0+dfsg-4+b4 ii libopencv-ml3.2 3.2.0+dfsg-4+b4 ii libopencv-objdetect3.2 3.2.0+dfsg-4+b4 ii libopencv-photo3.2 3.2.0+dfsg-4+b4 ii libopencv-shape3.2 3.2.0+dfsg-4+b4 ii libopencv-stitching3.2 3.2.0+dfsg-4+b4 ii libopencv-superres3.2 3.2.0+dfsg-4+b4 ii libopencv-video3.2 3.2.0+dfsg-4+b4 ii libopencv-videoio3.2 3.2.0+dfsg-4+b4 ii libopencv-videostab3.2 3.2.0+dfsg-4+b4 ii libopencv-viz3.2 3.2.0+dfsg-4+b4 ii libstdc++6 8-20180321-1 ii libtesseract4 4.00~git2219-40f43111-1.2 openalpr recommends no packages. openalpr suggests no packages. - -- no debconf information *** /home/john/alpr/bt.txt #0 0x00007ffff3820f88 in tesseract::LTRResultIterator::WordFontAttributes(bool*, bool*, bool*, bool*, bool*, bool*, int*, int*) const (this=this@entry=0x555556009e40, is_bold=is_bold@entry=0x7fffffffbfb7, is_italic=is_italic@entry=0x7fffffffbfb7, is_underlined=is_underlined@entry=0x7fffffffbfb7, is_monospace=is_monospace@entry=0x7fffffffbfb7, is_serif=is_serif@entry=0x7fffffffbfb7, is_smallcaps=0x7fffffffbfb7, pointsize=0x7fffffffbfbc, font_id=0x7fffffffbfb8) at ltrresultiterator.cpp:172 #1 0x00007ffff7b126d3 in alpr::TesseractOcr::recognize_line(int, alpr::PipelineData*) (this=0x555555f329c0, line_idx=0, pipeline_data=0x7fffffffc640) at ./src/openalpr/ocr/tesseract_ocr.cpp:91 #2 0x00007ffff7b137e0 in alpr::OCR::performOCR(alpr::PipelineData*) (this=this@entry=0x555555f329c0, pipeline_data=pipeline_data@entry=0x7fffffffc640) at ./src/openalpr/ocr/ocr.cpp:48 #3 0x00007ffff7ae7d43 in alpr::AlprImpl::analyzeSingleCountry(cv::Mat, cv::Mat, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >) (this=this@entry=0x555555d12440, colorImg=..., grayImg=..., warpedRegionsOfInterest=std::vector of length 1, capacity 1 = {...}) at ./src/openalpr/alpr_impl.cpp:316 #4 0x00007ffff7aea0cd in alpr::AlprImpl::recognizeFullDetails(cv::Mat, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >) (this=this@entry=0x555555d12440, img=..., regionsOfInterest=std::vector of length 1, capacity 1 = {...}) at ./src/openalpr/alpr_impl.cpp:143 #5 0x00007ffff7aeccc5 in alpr::AlprImpl::recognize(cv::Mat, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >) (this=this@entry=0x555555d12440, img=..., regionsOfInterest=std::vector of length 1, capacity 1 = {...}) at ./src/openalpr/alpr_impl.cpp:478 #6 0x00007ffff7aed544 in alpr::AlprImpl::recognize(unsigned char*, int, int, int, std::vector<alpr::AlprRegionOfInterest, std::allocator<alpr::AlprRegionOfInterest> >) (this=this@entry=0x555555d12440, pixelData=pixelData@entry=0x7fffbf571020 "J>\026J>\026J>\026K?\027M>\027M>\027P?\030P?\030Q@\031Q@\031S@\032S@\032VA\033VA\033WB\034UB\034UB\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035R@\033R@\033RA\032Q@\031QA\027QA\026QA\026QC\023SE\024RF\020QE\017QF\rPE\vQF\fQG\vSH\nRE\aTE\006TE"..., bytesPerPixel=bytesPerPixel@entry=3, imgWidth=<optimized out>, imgHeight=<optimized out>, regionsOfInterest=std::vector of length 1, capacity 1 = {...}) at ./src/openalpr/alpr_impl.cpp:458 #7 0x00007ffff7ae0d20 in alpr::Alpr::recognize(unsigned char*, int, int, int, std::vector<alpr::AlprRegionOfInterest, std::allocator<alpr::AlprRegionOfInterest> >) (this=<optimized out>, pixelData=0x7fffbf571020 "J>\026J>\026J>\026K?\027M>\027M>\027P?\030P?\030Q@\031Q@\031S@\032S@\032VA\033VA\033WB\034UB\034UB\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035R@\033R@\033RA\032Q@\031QA\027QA\026QA\026QC\023SE\024RF\020QE\017QF\rPE\vQF\fQG\vSH\nRE\aTE\006TE"..., bytesPerPixel=3, imgWidth=<optimized out>, imgHeight=<optimized out>, regionsOfInterest=std::vector of length 1, capacity 1 = {...}) at ./src/openalpr/alpr.cpp:78 #8 0x0000555555569176 in detectandshow(alpr::Alpr*, cv::Mat, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool) (alpr=<optimized out>, frame=..., region=..., writeJson=<optimized out>) at ./src/main.cpp:332 #9 0x0000555555567071 in main(int, char const**) (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:266 -----BEGIN PGP SIGNATURE----- iQFGBAEBCgAwFiEEJwCMxdBfG24Y2trvfWFEpid5MHIFAlrFhA8SHGpzY290dEBw b3N0ZW8ubmV0AAoJEH1hRKYneTByhz8H/3o1mbDcWZMyMUE9ob+hVS/G786HAo9L UQMf5FfR3l8hPdiDIi5O3ud96/xC91bY3S/nNUndetPtw1aQE3GiO1gggG85OTkc yrTq09LdW3zO1vZ4IEUctab3B90dY2E50kZvplCPkRmCS4Mox34gQgJqS12oq/xD ArDrTrwVDG8CqhhPd2W82E17YA2HaN8aanWbrNwi9C9M77v25d7kcXlpEkejm/ng dPRP/J972h5fJxBDukcgVpklTJCPC1YQ4FU5F/O0ndBkUlnTFWraZvW4VaXmVuSY hy0qImbETocxppw5O88lwF7+58k9HSrqvHe2mhBxHPNzgP/7QKxsEhQ= =4IHr -----END PGP SIGNATURE-----