Closed GoogleCodeExporter closed 9 years ago
What steps will reproduce the problem? 1. chekout recent svn tesseract-ocr 2. compile with leptonlib-1.63 3. run What is the expected output? What do you see instead? just run but segfaults What version of the product are you using? On what operating system? recent svn 319 on ubuntu 8.10 Please provide any additional information below. [/media/sdc1/tesseract-ocr-read-only]$ gdb -q tesseract Reading symbols from /usr/bin/tesseract...r done. (gdb) r Starting program: /usr/bin/tesseract [Thread debugging using libthread_db enabled] /usr/bin/tesseract:Error:Usage:/usr/bin/tesseract imagename outputbase [-l lang] [configfile [[+|-]varfile]...] Program received signal SIGSEGV, Segmentation fault. ERRCODE::error (this=0x81ff190, caller=0xbfffe3e1 "/usr/bin/tesseract", action=1 '\001', format=0x81bed2c "%s imagename outputbase [-l lang] [configfile [[+|-]varfile]...]\n") at errcode.cpp:99 99 if (!*p) (gdb) bt full #0 ERRCODE::error (this=0x81ff190, caller=0xbfffe3e1 "/usr/bin/tesseract", action=1 '\001', format=0x81bed2c "%s imagename outputbase [-l lang] [configfile [[+|-]varfile]...]\n") at errcode.cpp:99 msg = "/usr/bin/tesseract:Error:Usage:/usr/bin/tesseract imagename outputbase [-l lang] [configfile [[+|-]varfile]...]\n\n", '\000' <repeats 679 times>"\221, \237\267\267", '\000' <repeats 32 times>, "0\000\000\000\030%/\bx\301ķ\000\000\000\000 \000\000\000\004\000\000\000\311\312\000\000\004 \000\000\000 %/\b", '\000' <repeats 32 times>, "\030%/\bp\301ķp\301ķ \000\000\000\000\000\000\000\000\004", '\000' <repeats 11 times>"\364"... msgptr = 0xbfffcce7 "/usr/bin/tesseract imagename outputbase [-l lang] [configfile [[+|-]varfile]...]\n\n" #1 0x0804c22c in main (argc=1, argv=0xbfffe234) at tesseractmain.cpp:174 outfile = {data_ = 0x82f2520} lang = <value optimised out> arg = <value optimised out> api = {_vptr.TessBaseAPI = 0x0, tesseract_ = 0x0, thresholder_ = 0x0, threshold_done_ = false, block_list_ = 0x0, page_res_ = 0x0, input_file_ = 0x0, output_file_ = 0x0, datapath_ = 0x0, language_ = 0x0, rect_left_ = 0, rect_top_ = 0, rect_width_ = 0, rect_height_ = 0, image_width_ = 0, image_height_ = 0} image = {bpp = 0 '\000', bps = 0 '\000', bytespp = 0 '\000', lineskip = 0 '\000', captured = 0 '\000', photo_interp = 0 '\000', xsize = 0, ysize = 0, res = 0, image = 0x0, xdim = 0, bufheight = 0, fd = 0, reader = 0, ymin = 0, ymax = 0} text_out = {data_ = 0x0} pix = <value optimised out> fp = <value optimised out> (gdb) i r eax 0x71 113 ecx 0x71 113 edx 0x1 1 ebx 0xbfffcce7 -1073754905 esp 0xbfffcca0 0xbfffcca0 ebp 0xbfffd0d8 0xbfffd0d8 esi 0xbfffccc8 -1073754936 edi 0x1 1 eip 0x81a79e8 0x81a79e8 <ERRCODE::error(char const*, signed char, char const*, ...) const+328> eflags 0x10297 [ CF PF AF SF IF RF ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) q A debugging session is active. Inferior 1 [process 8441] will be killed. Quit anyway? (y or n) y
Original issue reported on code.google.com by kuh...@gmail.com on 9 Dec 2009 at 5:54
kuh...@gmail.com
Fixed.
Original comment by theraysm...@gmail.com on 20 May 2010 at 5:01
theraysm...@gmail.com
Original issue reported on code.google.com by
kuh...@gmail.com
on 9 Dec 2009 at 5:54