On Tue, 2015-04-07 at 17:22 +0100, "João M. S. Silva" wrote:
> 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

--db-attach=yes is deprecated in 3.10
and will be removed (sooner or later).

Better use the Valgrind gdbserver.

See
http://www.valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.gdbserver
for more information.

Philippe



------------------------------------------------------------------------------
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