I just ran into this today (using valgrind-3.4.0.SVN for its nifty
track-origins option):

$ valgrind --track-origins=yes Hammer/net_unittests
--gtest_filter=GZipUnitTest.DecodeDeflate

[ RUN      ] GZipUnitTest.DecodeDeflate
Conditional jump or move depends on uninitialised value(s)
   at longest_match (deflate.c:1121)
   by deflate_slow (deflate.c:1595)
   by MOZ_Z_deflate (deflate.c:790)
   by (anonymous namespace)::GZipUnitTest::CompressAll((anonymous
namespace)::EncodeMode, char const*, int, char*, int*)
(gzip_filter_unittest.cc:142)
   by (anonymous namespace)::GZipUnitTest::SetUp()
(gzip_filter_unittest.cc:75)
   by testing::Test::Run() (gtest.cc:1829)
   by testing::internal::TestInfoImpl::Run() (gtest.cc:1999)
   by testing::internal::TestInfoImpl::RunTest(testing::TestInfo*)
(gtest-internal-inl.h:574)
   by void testing::internal::List<testing::TestInfo*>::ForEach<void
(*)(testing::TestInfo*)>(void (*)(testing::TestInfo*)) const
(gtest-internal-inl.h:335)
   by testing::TestCase::Run() (gtest.cc:2094)
   by testing::TestCase::RunTestCase(testing::TestCase*)
(gtest-internal-inl.h:687)
   by void testing::internal::List<testing::TestCase*>::ForEach<void
(*)(testing::TestCase*)>(void (*)(testing::TestCase*)) const
(gtest-internal-inl.h:335)
 Uninitialised value was created by a heap allocation
   at malloc (vg_replace_malloc.c:207)
   by MOZ_Z_zcalloc (zutil.c:306)
   by MOZ_Z_deflateInit2_ (deflate.c:287)
   by MOZ_Z_deflateInit_ (deflate.c:210)
   by (anonymous namespace)::GZipUnitTest::CompressAll((anonymous
namespace)::EncodeMode, char const*, int, char*, int*)
(gzip_filter_unittest.cc:120)
   by (anonymous namespace)::GZipUnitTest::SetUp() (gzip_filter_unittest.cc:75)
   by testing::Test::Run() (gtest.cc:1829)
   by testing::internal::TestInfoImpl::Run() (gtest.cc:1999)
   by testing::internal::TestInfoImpl::RunTest(testing::TestInfo*)
(gtest-internal-inl.h:574)
   by void testing::internal::List<testing::TestInfo*>::ForEach<void
(*)(testing::TestInfo*)>(void (*)(testing::TestInfo*)) const
(gtest-internal-inl.h:335)
   by testing::TestCase::Run() (gtest.cc:2094)
   by testing::TestCase::RunTestCase(testing::TestCase*)
(gtest-internal-inl.h:687)

[       OK ] GZipUnitTest.DecodeDeflate

(Strange that zcalloc calls malloc instead of calloc on 32 bit
machines.  I wonder what the thinking there was?)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-dev" group.
To post to this group, send email to chromium-dev@googlegroups.com
To unsubscribe from this group, send email to 
chromium-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/chromium-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to