Eric Blake wrote: > On 03/29/2010 02:11 AM, Jim Meyering wrote: >> This is on x86_64, which means we're using the included regex code: >> >> printf '\357\274\241\n'>in; LC_ALL=en_US.UTF-8 valgrind src/grep $'\357' in
Hi Eric, > Just noticing this mail; is there any chance that this might be related > to the regex memory failure reported against m4 when building on AIX? > Any progress on tracking it down? I haven't looked further, since it seemed like it could be triggered only in a contrived scenario. For the record, from what I recall, this was reading memory that was uninitialized only because one or both of the search string or the first byte of input constitute an invalid mbchar. >> I'm not planning to investigate this before the release, >> but in case someone else has more time... >> >> Conditional jump or move depends on uninitialised value(s) >> at 0x398F6E2617: iswalnum (wcfuncs.c:41) >> by 0x4202FD: peek_token (regcomp.c:1928) >> by 0x41FD9C: fetch_token (regcomp.c:1766) >> by 0x4208AB: parse (regcomp.c:2116) >> by 0x41D726: re_compile_internal (regcomp.c:816) >> by 0x41C712: rpl_re_compile_pattern (regcomp.c:237) >> by 0x402535: GEAcompile (dfasearch.c:156) >> by 0x40210B: Gcompile (grep.c:7) >> by 0x4074AA: main (main.c:2162) >> >> Use of uninitialised value of size 8 >> at 0x398F6E2630: iswalnum (wcfuncs.c:41) >> by 0x4202FD: peek_token (regcomp.c:1928) >> by 0x41FD9C: fetch_token (regcomp.c:1766) >> by 0x4208AB: parse (regcomp.c:2116) >> by 0x41D726: re_compile_internal (regcomp.c:816) >> by 0x41C712: rpl_re_compile_pattern (regcomp.c:237) >> by 0x402535: GEAcompile (dfasearch.c:156) >> by 0x40210B: Gcompile (grep.c:7) >> by 0x4074AA: main (main.c:2162) >> >> Conditional jump or move depends on uninitialised value(s) >> at 0x420306: peek_token (regcomp.c:1928) >> by 0x41FD9C: fetch_token (regcomp.c:1766) >> by 0x4208AB: parse (regcomp.c:2116) >> by 0x41D726: re_compile_internal (regcomp.c:816) >> by 0x41C712: rpl_re_compile_pattern (regcomp.c:237) >> by 0x402535: GEAcompile (dfasearch.c:156) >> by 0x40210B: Gcompile (grep.c:7) >> by 0x4074AA: main (main.c:2162)
