[BRLTTY] I can't build brltty

Jean-Philippe MENGUAL mengualjeanphi at free.fr
Mon Jul 26 11:11:55 EDT 2010


Hi,

I tried 
valgrind ./tbl2hex ../Tables/fr_FR.ttb >/dev/null 2>/path/to/log-file :

after an ./autogen, it doesn't find it (even from Programs/ ). Only
tbl2hex.c appears, I guess it's not binary. So I tried after ./configure
(the line I show to start this thread). After ./configure, I do again
the valgrind command and get:

1. On my terminal, it freezes (I am not in interactive mode)
2. In the output file, I have:
==23489== Memcheck, a memory error detector.
==23489== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et
al.
==23489== Using LibVEX rev 1854, a library for dynamic binary
translation.
==23489== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==23489== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==23489== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et
al.
==23489== For more details, rerun with: -v
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E877: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x45E3C2: fillin_rpath
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x460443: _dl_init_paths
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x447B44: _dl_non_dynamic_init
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x4486AA: __libc_init_first
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x40FF37: (below main)
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E877: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x43E585: strdup
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x41A393: setlocale
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x400BB6: prepareProgram (program.c:92)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E877: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x419F5A: new_composite_name
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x41A50E: setlocale
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x400BB6: prepareProgram (program.c:92)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x40A691: pthread_rwlock_unlock
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x400BB6: prepareProgram (program.c:92)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x40A691: pthread_rwlock_unlock
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x41EBF2: textdomain
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x400BC0: prepareProgram (program.c:93)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E8AB: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x43E585: strdup
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x4044F5: strdupWrapper (misc.c:48)
==23489==    by 0x405829: getProgramPath (sys_linux.c:94)
==23489==    by 0x400BC5: prepareProgram (program.c:96)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E8AB: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x402A78: locatePathName (file.c:92)
==23489==    by 0x402AA8: isExplicitPath (file.c:112)
==23489==    by 0x400BE1: prepareProgram (program.c:98)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E8AB: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x402A78: locatePathName (file.c:92)
==23489==    by 0x402AA8: isExplicitPath (file.c:112)
==23489==    by 0x400BF5: prepareProgram (program.c:104)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E8AB: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x402A78: locatePathName (file.c:92)
==23489==    by 0x400C05: prepareProgram (program.c:129)
==23489==    by 0x40211E: processOptions (options.c:715)
==23489==    by 0x4005C3: main (tbl2hex.c:215)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x43E891: strlen
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x402B49: readLine (file.c:516)
==23489==    by 0x402CA7: processLines (file.c:559)
==23489==    by 0x40624E: processDataStream (datafile.c:737)
==23489==    by 0x407B60: processTextTableLines (ttb_compile.c:231)
==23489==    by 0x40811B: compileTextTable (ttb_native.c:175)
==23489==    by 0x400348: loadTextTable (tbl2hex.c:55)
==23489==    by 0x40063C: main (tbl2hex.c:229)
==23489== 
==23489== Conditional jump or move depends on uninitialised value(s)
==23489==    at 0x40A4C5: pthread_rwlock_wrlock
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x4415C9: wcsrtombs
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x426EA0: vfprintf
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x433BF6: vsnprintf
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x42F110: snprintf
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x4063DA: includeDataFile (datafile.c:638)
==23489==    by 0x4070E0: processIncludeOperands (datafile.c:654)
==23489==    by 0x407228: processPropertyOperand (datafile.c:677)
==23489==    by 0x407196: processUtf8Line (datafile.c:693)
==23489==    by 0x402C90: processLines (file.c:568)
==23489==    by 0x40624E: processDataStream (datafile.c:737)
==23489==    by 0x407B60: processTextTableLines (ttb_compile.c:231)
==23489== 
==23489== Syscall param futex(op) contains uninitialised byte(s)
==23489==    at 0x40A4F0: pthread_rwlock_wrlock
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x4415C9: wcsrtombs
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x426EA0: vfprintf
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x433BF6: vsnprintf
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x42F110: snprintf
(in /home/jp/Documentations/Traductions/brltty/Programs/tbl2hex)
==23489==    by 0x4063DA: includeDataFile (datafile.c:638)
==23489==    by 0x4070E0: processIncludeOperands (datafile.c:654)
==23489==    by 0x407228: processPropertyOperand (datafile.c:677)
==23489==    by 0x407196: processUtf8Line (datafile.c:693)
==23489==    by 0x402C90: processLines (file.c:568)
==23489==    by 0x40624E: processDataStream (datafile.c:737)
==23489==    by 0x407B60: processTextTableLines (ttb_compile.c:231)
==23489== 
==23489== ERROR SUMMARY: 36 errors from 12 contexts (suppressed: 0 from
0)
==23489== malloc/free: in use at exit: 0 bytes in 0 blocks.
==23489== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==23489== For counts of detected errors, rerun with: -v
==23489== All heap blocks were freed -- no leaks are possible.

I precise the problem is not due to my own configuration, since before
doing this on my system I did on several other systems before reporting
the problem here.

I hope it will help.

Regards,


Jean-Philippe MENGUAL


Le lundi 26 juillet 2010 à 10:28 -0400, Dave Mielke a écrit :
> [quoted lines by Jean-Philippe MENGUAL on 2010/07/25 at 15:58 +0200]
> 
> >Here's the output of the gdb's bt. I hope (and think) you'll understand
> >better than I. 
> 
> Well, yes, we understand what it's saying, but it's saying something that 
> shouldn't be occurring. :-)
> 
> Could you please do another test? cd to the Programs/ subdirectory of your 
> brltty build tree, and execute the following command:
> 
>    valgrind ./tbl2hex ../Tables/fr_FR.ttb >/dev/null 2>/path/to/log-file
> 



More information about the BRLTTY mailing list