Bug 854675 - Tesseract crashes when given non existant file
Tesseract crashes when given non existant file
Product: Fedora
Classification: Fedora
Component: tesseract (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Karol Trzcionka
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-09-05 10:11 EDT by Tobias Mueller
Modified: 2013-07-31 22:05 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-31 22:05:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tobias Mueller 2012-09-05 10:11:42 EDT
Description of problem:
Tesseract crashes

this is bug 679802 continued, because I cannot set the version and resolution on the other bug.

For some reason abrt doesn't show up, so I traced it manually:

$ gdb --args tesseract grad.tiff output -l deu
GNU gdb (GDB) Fedora (
Copyright (C) 2012 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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /usr/bin/tesseract...Reading symbols from /usr/lib/debug/usr/bin/tesseract.debug...done.
(gdb) r
Starting program: /usr/bin/tesseract grad.tiff output -l deu
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Tesseract Open Source OCR Engine with LibTiff
Image file grad.tiff cannot be opened!

Program received signal SIGSEGV, Segmentation fault.
_IO_new_fclose (fp=0x0) at iofclose.c:57
57	  if (fp->_IO_file_flags & _IO_IS_FILEBUF)
(gdb) t a a bt full

Thread 1 (Thread 0x7ffff7fc7740 (LWP 20853)):
#0  _IO_new_fclose (fp=0x0) at iofclose.c:57
        status = <optimized out>
#1  0x0000000000402632 in main (argc=<optimized out>, argv=0x7fffffffdec8)
    at tesseractmain.cpp:375
        lang = <optimized out>
        arg = <optimized out>
        api = {_vptr.TessBaseAPI = 0x309260f070, tesseract_ = 0x69a810, 
          thresholder_ = 0x0, threshold_done_ = false, block_list_ = 0x0, 
          page_res_ = 0x0, input_file_ = 0x0, output_file_ = 0x69a7d0, 
          datapath_ = 0x69b4c0, language_ = 0x69b510, rect_left_ = 0, 
          rect_top_ = 0, rect_width_ = 0, rect_height_ = 0, image_width_ = 0, 
          image_height_ = 0}
        output_hocr = <optimized out>
        outfile = {data_ = 0x69a7b0}
        page_number = <optimized out>
        fp = 0x0
        fout = <optimized out>
        image = {bpp = 0 '\000', bps = 0 '\000', bytespp = 0 '\000', 
          lineskip = 0 '\000', captured = 0 '\000', photo_interp = 1 '\001', 
          xsize = 8, ysize = 0, res = 300, image = 0x0, xdim = -8800, 
          bufheight = 32767, fd = -1, reader = 0x308e221bc0, ymin = -1910368200, 
---Type <return> to continue, or q <return> to quit---
          ymax = 48}
        text_out = {data_ = 0x69b550}
        len = <optimized out>
        ext = 0x0
Comment 1 Fedora End Of Life 2013-07-03 19:25:12 EDT
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.
Comment 2 Fedora End Of Life 2013-07-31 22:05:44 EDT
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.