Reproduced. Trying to remember how to coax GDB into showing line numbers.

===

$ gdb tesseract
GNU gdb (GDB) 7.3-debian
Copyright (C) 2011 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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/tesseract...(no debugging symbols found)...done.
(gdb) run aIR4W.jpg output
Starting program: /usr/bin/tesseract aIR4W.jpg output
[Thread debugging using libthread_db enabled]
Tesseract Open Source OCR Engine v3.02 with Leptonica
tesseract: ../ccstruct/ratngs.h:405: const STRING&
WERD_CHOICE::unichar_string() const: Assertion
`unichar_string_.length() <= 0 || unichar_string_.length() >= length_'
failed.

Program received signal SIGABRT, Aborted.
0x00007ffff65fc475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) backtrace
#0  0x00007ffff65fc475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff65ff6f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff65f5621 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff77f630c in WERD_CHOICE::unichar_string() const () from
/usr/lib/libtesseract.so.3
#4  0x00007ffff79ba49d in WERD_CHOICE::operator+=(WERD_CHOICE const&)
() from /usr/lib/libtesseract.so.3
#5  0x00007ffff7859ceb in
tesseract::Tesseract::split_and_recog_word(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#6  0x00007ffff7858e2f in
tesseract::Tesseract::recog_word_recursive(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#7  0x00007ffff7859ae9 in
tesseract::Tesseract::split_and_recog_word(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#8  0x00007ffff7858e2f in
tesseract::Tesseract::recog_word_recursive(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#9  0x00007ffff7859ae9 in
tesseract::Tesseract::split_and_recog_word(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#10 0x00007ffff7858e2f in
tesseract::Tesseract::recog_word_recursive(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#11 0x00007ffff7858961 in tesseract::Tesseract::recog_word(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#12 0x00007ffff784f7e2 in
tesseract::Tesseract::tess_segment_pass2(WERD_RES*,
BLOB_CHOICE_LIST_CLIST*) () from /usr/lib/libtesseract.so.3
#13 0x00007ffff7803884 in
tesseract::Tesseract::match_word_pass2(WERD_RES*, ROW*, BLOCK*) ()
from /usr/lib/libtesseract.so.3
#14 0x00007ffff780309f in
tesseract::Tesseract::TrainedXheightFix(WERD_RES*, BLOCK*, ROW*) ()
from /usr/lib/libtesseract.so.3
#15 0x00007ffff78034ec in
tesseract::Tesseract::classify_word_pass2(BLOCK*, ROW*, WERD_RES*) ()
from /usr/lib/libtesseract.so.3
#16 0x00007ffff7802402 in
tesseract::Tesseract::classify_word_and_language(void
(tesseract::Tesseract::*)(BLOCK*, ROW*, WERD_RES*), BLOCK*, ROW*,
WERD_RES*) () from /usr/lib/libtesseract.so.3
#17 0x00007ffff77ffbc8 in
tesseract::Tesseract::recog_all_words(PAGE_RES*, ETEXT_DESC*, TBOX
const*, char const*, int) () from /usr/lib/libtesseract.so.3
#18 0x00007ffff77ef57d in
tesseract::TessBaseAPI::Recognize(ETEXT_DESC*) () from
/usr/lib/libtesseract.so.3
#19 0x00007ffff77efe11 in tesseract::TessBaseAPI::ProcessPage(Pix*,
int, char const*, char const*, int, STRING*) () from
/usr/lib/libtesseract.so.3
#20 0x00007ffff77efac4 in tesseract::TessBaseAPI::ProcessPages(char
const*, char const*, int, STRING*) () from /usr/lib/libtesseract.so.3
#21 0x00000000004015dc in main ()



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to