Chenhx / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

segfault in tesseractmain.cpp - double fclose() #320

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
  /usr/local/bin/tesseract rscan0002.jpg out

What do you see instead?
  -----
  Tesseract Open Source OCR Engine with Leptonica
  Segmentation fault
  -----

What version of the product are you using? On what operating system?
  Current SVN trunk as of 6 June 2010.
  Linux 2.6.32-22-generic (Ubuntu 10.04 64-bit)
  leptonlib-1.65

Please provide any additional information below.
  It looks like the file was being closed twice when HAVE_LIBLEPT is defined. Explicitly setting the pointer to NULL and checking for that value fixed it for me, or maybe it should be #ifdef'ed out?

Original issue reported on code.google.com by sout...@gmail.com on 7 Jun 2010 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
Patch applied in revision 401; thanks.

Original comment by joregan on 9 Jun 2010 at 11:52