Date: Sun, 05 Oct 2014 08:17:01 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-testing@freebsd.org Subject: [Bug 193499] [tests] usr.bin/yacc/err_syntax27.error failures with the latest kyua Message-ID: <bug-193499-32464-WdTBy6epK4@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-193499-32464@https.bugs.freebsd.org/bugzilla/> References: <bug-193499-32464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193499 --- Comment #7 from Craig Rodrigues <rodrigc@FreeBSD.org> --- Some more info. If I run this testcase under valgrind, I get some warnings. valgrind --track-origins=yes -v yacc -v -d -p err_syntax27_ -b test-err_syntax27 ./err_syntax27.y ==57756== Memcheck, a memory error detector ==57756== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==57756== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==57756== Command: yacc -v -d -p err_syntax27_ -b test-err_syntax27 ./err_syntax27.y ==57756== --57756-- Valgrind options: --57756-- --track-origins=yes --57756-- -v --57756-- Contents of /proc/version: --57756-- Arch and hwcaps: AMD64, amd64-sse3-cx16-avx --57756-- Page sizes: currently 4096, max supported 4096 --57756-- Valgrind library directory: /usr/local/lib/valgrind --57756-- Reading syms from /libexec/ld-elf.so.1 --57756-- object doesn't have a symbol table --57756-- Reading syms from /usr/bin/byacc --57756-- Reading syms from /usr/local/lib/valgrind/memcheck-amd64-freebsd --57756-- object doesn't have a symbol table --57756-- object doesn't have a dynamic symbol table --57756-- Scheduler: using generic scheduler lock implementation. --57756-- Reading suppressions file: /usr/local/lib/valgrind/default.supp ==57756== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-57756-by-rodrigc-on-??? ==57756== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-57756-by-rodrigc-on-??? ==57756== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-57756-by-rodrigc-on-??? ==57756== ==57756== TO CONTROL THIS PROCESS USING vgdb (which you probably ==57756== don't want to do, unless you know exactly what you're doing, ==57756== or are doing some strange experiment): ==57756== /usr/local/lib/valgrind/../../bin/vgdb --pid=57756 ...command... ==57756== ==57756== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==57756== /path/to/gdb yacc ==57756== and then give GDB the following command ==57756== target remote | /usr/local/lib/valgrind/../../bin/vgdb --pid=57756 ==57756== --pid is optional if only one valgrind process is running ==57756== --57756-- Reading syms from /usr/local/lib/valgrind/vgpreload_core-amd64-freebsd.so --57756-- object doesn't have a symbol table --57756-- Reading syms from /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so --57756-- object doesn't have a symbol table --57756-- Reading syms from /lib/libc.so.7 --57756-- object doesn't have a symbol table --57756-- REDIR: 0x136c1e0 (strncmp) redirected to 0x1025080 (strncmp) --57756-- REDIR: 0x1371520 (memset) redirected to 0x1025e60 (memset) --57756-- REDIR: 0x136c220 (strlen) redirected to 0x10247b0 (strlen) --57756-- REDIR: 0x12d8e10 (malloc) redirected to 0x10211c0 (malloc) --57756-- REDIR: 0x136b520 (strcpy) redirected to 0x1024810 (strcpy) --57756-- REDIR: 0x1303d50 (rindex) redirected to 0x1023fe0 (rindex) --57756-- REDIR: 0x1371580 (memcpy) redirected to 0x1025330 (memcpy) --57756-- REDIR: 0x136c300 (index) redirected to 0x10240a0 (index) --57756-- REDIR: 0x12dbdb0 (calloc) redirected to 0x10230e0 (calloc) --57756-- REDIR: 0x136b600 (strcmp) redirected to 0x1025170 (strcmp) ==57756== Conditional jump or move depends on uninitialised value(s) ==57756== at 0x4134B6: copy_param (reader.c:675) ==57756== by 0x40CF9C: read_declarations (reader.c:1359) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== Uninitialised value was created by a heap allocation ==57756== at 0x1021293: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==57756== by 0x410BDC: get_line (reader.c:128) ==57756== by 0x40ECFE: nextc (reader.c:214) ==57756== by 0x40CEC8: read_declarations (reader.c:1311) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== ==57756== Conditional jump or move depends on uninitialised value(s) ==57756== at 0x4134C3: copy_param (reader.c:677) ==57756== by 0x40CF9C: read_declarations (reader.c:1359) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== Uninitialised value was created by a heap allocation ==57756== at 0x1021293: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==57756== by 0x410BDC: get_line (reader.c:128) ==57756== by 0x40ECFE: nextc (reader.c:214) ==57756== by 0x40CEC8: read_declarations (reader.c:1311) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== yacc: e - line 3 of "./err_syntax27.y", missing '}' --57756-- REDIR: 0x12df240 (free) redirected to 0x10223c0 (free) ==57756== ==57756== HEAP SUMMARY: ==57756== in use at exit: 8,769 bytes in 9 blocks ==57756== total heap usage: 17 allocs, 8 frees, 17,084 bytes allocated ==57756== ==57756== Searching for pointers to 9 not-freed blocks ==57756== Checked 4,540,024 bytes ==57756== ==57756== LEAK SUMMARY: ==57756== definitely lost: 0 bytes in 0 blocks ==57756== indirectly lost: 0 bytes in 0 blocks ==57756== possibly lost: 0 bytes in 0 blocks ==57756== still reachable: 8,769 bytes in 9 blocks ==57756== suppressed: 0 bytes in 0 blocks ==57756== Rerun with --leak-check=full to see details of leaked memory ==57756== ==57756== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ==57756== ==57756== 1 errors in context 1 of 2: ==57756== Conditional jump or move depends on uninitialised value(s) ==57756== at 0x4134C3: copy_param (reader.c:677) ==57756== by 0x40CF9C: read_declarations (reader.c:1359) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== Uninitialised value was created by a heap allocation ==57756== at 0x1021293: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==57756== by 0x410BDC: get_line (reader.c:128) ==57756== by 0x40ECFE: nextc (reader.c:214) ==57756== by 0x40CEC8: read_declarations (reader.c:1311) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== ==57756== ==57756== 1 errors in context 2 of 2: ==57756== Conditional jump or move depends on uninitialised value(s) ==57756== at 0x4134B6: copy_param (reader.c:675) ==57756== by 0x40CF9C: read_declarations (reader.c:1359) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== Uninitialised value was created by a heap allocation ==57756== at 0x1021293: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==57756== by 0x410BDC: get_line (reader.c:128) ==57756== by 0x40ECFE: nextc (reader.c:214) ==57756== by 0x40CEC8: read_declarations (reader.c:1311) ==57756== by 0x40CE02: reader (reader.c:3250) ==57756== by 0x405ED1: main (main.c:692) ==57756== ==57756== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193499-32464-WdTBy6epK4>