|
From: <sv...@va...> - 2012-01-29 02:27:43
|
Author: florian
Date: 2012-01-29 02:23:07 +0000 (Sun, 29 Jan 2012)
New Revision: 12359
Log:
Add testcase for bugzilla #287260. Testcase by M.Welinder
(mwe...@gm...). Announce bug fix.
Added:
trunk/memcheck/tests/bug287260.c
trunk/memcheck/tests/bug287260.stderr.exp
trunk/memcheck/tests/bug287260.vgtest
Modified:
trunk/NEWS
trunk/memcheck/tests/
trunk/memcheck/tests/Makefile.am
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2012-01-28 14:20:30 UTC (rev 12358)
+++ trunk/NEWS 2012-01-29 02:23:07 UTC (rev 12359)
@@ -46,6 +46,7 @@
283413 Fix wrong sanity check
286270 vgpreload is not friendly to 64->32 bit execs, gives ld.so warnings
286374 Running cachegrind with --branch-sim=yes on 64-bit PowerPC program fails
+287260 Incorrect conditional jump or move depends on uninitialised value(s)
287858 VG_(strerror): unknown error
289699 vgdb connection in relay mode erroneously closed due to buffer overrun
289939 wish: complete monitor cmd 'leak_check' with details about leaked or reachable blocks
Property changes on: trunk/memcheck/tests
___________________________________________________________________
Name: svn:ignore
- *.dSYM
*.stderr.diff*
*.stderr.out
*.stdout.diff*
*.stdout.out
.deps
accounting
addressable
atomic_incs
badaddrvalue
badfree
badjump
badjump2
badloop
badpoll
badrw
big_blocks_freed_list
brk
brk2
buflen_check
calloc-overflow
clientperm
clientstackperm
custom-overlap
custom_alloc
deep_templates
describe-block
dir
doublefree
erringfds
error_counts
errs1
err_disable1
err_disable2
err_disable3
err_disable4
execve1
execve2
exitprog
file_locking
filter_leak_check_size
filter_stderr
fprw
fwrite
hello
holey_buffer_too_small
inits
inline
leak-0
leak-cases
leak-cycle
leak-delta
leak-pool
leak-regroot
leak-tree
leakotron
linux-capget
linux-syscalls-2007
linux-syslog-syscall
linux-timerfd-syscall
long-supps
long_namespace_xml
lsframe1
lsframe2
Makefile
Makefile.in
mallinfo
malloc1
malloc2
malloc3
malloc_free_fill
malloc_usable
manuel1
manuel2
manuel3
match-overrun
memalign2
memalign_test
memcmptest
mempool
mempool2
metadata
mismatches
mmaptest
nanoleak
nanoleak2
nanoleak_supp
new_nothrow
new_override
noisy_child
null_socket
origin1-yes
origin2-not-quite
origin3-no
origin4-many
origin5-bz2
origin6-fp
oset_test
overlap
partiallydefinedeq
partial_load
pdb-realloc
pdb-realloc2
pipe
pointer-trace
post-syscall
realloc1
realloc2
realloc3
sbfragment
scalar
scalar_exit_group
scalar_fork
scalar_supp
scalar_vfork
sh-mem
sh-mem-random
sigaltstack
sigkill
signal2
sigprocmask
stack_changes
stack_switch
strchr
str_tester
supp1
supp2
suppfree
supp_unknown
threadederrno
trivialleak
unit_libcbase
unit_oset
varinfo1
varinfo2
varinfo3
varinfo4
varinfo5
varinfo5so.so
varinfo6
vcpu_bz2
vcpu_fbench
vcpu_fnfns
vgtest_ume
weirdioctl
with space
wrap1
wrap2
wrap3
wrap4
wrap5
wrap6
wrap7
wrap7so.so
wrap8
writev1
xml1
zeropage
+ *.dSYM
*.stderr.diff*
*.stderr.out
*.stdout.diff*
*.stdout.out
.deps
accounting
addressable
atomic_incs
badaddrvalue
badfree
badjump
badjump2
badloop
badpoll
badrw
big_blocks_freed_list
brk
brk2
buflen_check
bug287260
calloc-overflow
clientperm
clientstackperm
custom-overlap
custom_alloc
deep_templates
describe-block
dir
doublefree
erringfds
error_counts
errs1
err_disable1
err_disable2
err_disable3
err_disable4
execve1
execve2
exitprog
file_locking
filter_leak_check_size
filter_stderr
fprw
fwrite
hello
holey_buffer_too_small
inits
inline
leak-0
leak-cases
leak-cycle
leak-delta
leak-pool
leak-regroot
leak-tree
leakotron
linux-capget
linux-syscalls-2007
linux-syslog-syscall
linux-timerfd-syscall
long-supps
long_namespace_xml
lsframe1
lsframe2
Makefile
Makefile.in
mallinfo
malloc1
malloc2
malloc3
malloc_free_fill
malloc_usable
manuel1
manuel2
manuel3
match-overrun
memalign2
memalign_test
memcmptest
mempool
mempool2
metadata
mismatches
mmaptest
nanoleak
nanoleak2
nanoleak_supp
new_nothrow
new_override
noisy_child
null_socket
origin1-yes
origin2-not-quite
origin3-no
origin4-many
origin5-bz2
origin6-fp
oset_test
overlap
partiallydefinedeq
partial_load
pdb-realloc
pdb-realloc2
pipe
pointer-trace
post-syscall
realloc1
realloc2
realloc3
sbfragment
scalar
scalar_exit_group
scalar_fork
scalar_supp
scalar_vfork
sh-mem
sh-mem-random
sigaltstack
sigkill
signal2
sigprocmask
stack_changes
stack_switch
strchr
str_tester
supp1
supp2
suppfree
supp_unknown
threadederrno
trivialleak
unit_libcbase
unit_oset
varinfo1
varinfo2
varinfo3
varinfo4
varinfo5
varinfo5so.so
varinfo6
vcpu_bz2
vcpu_fbench
vcpu_fnfns
vgtest_ume
weirdioctl
with space
wrap1
wrap2
wrap3
wrap4
wrap5
wrap6
wrap7
wrap7so.so
wrap8
writev1
xml1
zeropage
Modified: trunk/memcheck/tests/Makefile.am
===================================================================
--- trunk/memcheck/tests/Makefile.am 2012-01-28 14:20:30 UTC (rev 12358)
+++ trunk/memcheck/tests/Makefile.am 2012-01-29 02:23:07 UTC (rev 12359)
@@ -66,6 +66,7 @@
big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \
brk2.stderr.exp brk2.vgtest \
buflen_check.stderr.exp buflen_check.vgtest buflen_check.stderr.exp-kfail \
+ bug287260.stderr.exp bug287260.vgtest \
calloc-overflow.stderr.exp calloc-overflow.vgtest\
clientperm.stderr.exp \
clientperm.stdout.exp clientperm.vgtest \
@@ -222,6 +223,7 @@
big_blocks_freed_list \
brk2 \
buflen_check \
+ bug287260 \
calloc-overflow \
clientperm \
custom_alloc \
Added: trunk/memcheck/tests/bug287260.c
===================================================================
--- trunk/memcheck/tests/bug287260.c (rev 0)
+++ trunk/memcheck/tests/bug287260.c 2012-01-29 02:23:07 UTC (rev 12359)
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+typedef struct {
+ unsigned int stuff : 21;
+ signed int rotation : 10;
+} Oink;
+
+int
+main (int argc, char **argv)
+{
+ volatile Oink r;
+
+ r.rotation = 45;
+ fprintf (stderr, "%d\n", r.rotation);
+ return 0;
+}
Added: trunk/memcheck/tests/bug287260.stderr.exp
===================================================================
--- trunk/memcheck/tests/bug287260.stderr.exp (rev 0)
+++ trunk/memcheck/tests/bug287260.stderr.exp 2012-01-29 02:23:07 UTC (rev 12359)
@@ -0,0 +1,11 @@
+
+45
+
+HEAP SUMMARY:
+ in use at exit: 0 bytes in 0 blocks
+ total heap usage: 0 allocs, 0 frees, 0 bytes allocated
+
+For a detailed leak analysis, rerun with: --leak-check=full
+
+For counts of detected and suppressed errors, rerun with: -v
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Added: trunk/memcheck/tests/bug287260.vgtest
===================================================================
--- trunk/memcheck/tests/bug287260.vgtest (rev 0)
+++ trunk/memcheck/tests/bug287260.vgtest 2012-01-29 02:23:07 UTC (rev 12359)
@@ -0,0 +1 @@
+prog: bug287260
|