Hi,

I'm trying to debug a program with memcheck. There is an error:

--19524-- memcheck GC: 1000 nodes, 419 survivors (41.9%)
--19524-- memcheck GC: 1014 new table size (driftup)
--19524-- REDIR: 0x72c60c0 (libc.so.6:__strspn_sse42) redirected to 
0x4c32010 (strspn)
==19524== Conditional jump or move depends on uninitialised value(s)
==19524==    at 0x5A1E317: 
tesseract::Tesseract::quality_based_rejection(PAGE_RES_IT&, unsigned 
char) (docqual.cpp:145)
==19524==    by 0x5A11871: 
tesseract::Tesseract::rejection_passes(PAGE_RES*, ETEXT_DESC*, TBOX 
const*, char const*) (control.cpp:680)
==19524==    by 0x5A1551E: 
tesseract::Tesseract::recog_all_words(PAGE_RES*, ETEXT_DESC*, TBOX 
const*, char const*, int) (control.cpp:371)
==19524==    by 0x5A05D93: 
tesseract::TessBaseAPI::Recognize(ETEXT_DESC*) (baseapi.cpp:747)
==19524==    by 0x5A05F7C: tesseract::TessBaseAPI::GetUTF8Text() 
(baseapi.cpp:1019)
==19524==    by 0x41D2D1: Tesseract::ocr(cv::Mat) (Tesseract.cpp:26)
==19524==    by 0x4066F8: main (test.cpp:206)
==19524==
==19524==
==19524== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- y

and then I attach to gdb but get:

Failed to read a valid object file image from memory.
0x0000000005a1e317 in tesseract::Tesseract::quality_based_rejection 
(this=this@entry=0x1a47b780, page_res_it=...,
     good_quality_doc=good_quality_doc@entry=1 '\001') at docqual.cpp:145
145       if ((tessedit_good_quality_unrej && good_quality_doc))
(gdb) p tessedit_good_quality_unrej
$1 = {<tesseract::Param> = {name_ = 0x5bdf54f 
"tessedit_good_quality_unrej", info_ = 0x5bdf56b "Reduce rejection on 
good docs", init_ = false,
     debug_ = false}, value_ = 1 '\001', params_vec_ = 0x1a47b9a0}
(gdb) p good_quality_doc
$2 = 1 '\001'

What does "Failed to read a valid object file image from memory" mean? 
Does it come from gdb or may be caused upstream by valgrind?

This is a "Conditional jump or move" error but the variables, as printed 
above in gdb, seem initialized? So it this a false positive?

Any help?

Thanks.

-- 
João M. S. Silva

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to