den-run-ai / mipt-course

Automatically exported from code.google.com/p/mipt-course
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Не работают death-тесты под valgrind #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Buildbot сваливается с ошибкой при запуске 
death-тестов под valgrind.

Original issue reported on code.google.com by dmitriy.borodiy on 20 Dec 2012 at 11:23

GoogleCodeExporter commented 9 years ago
Пример ошибки:
http://ubermipt.com:8080/builders/linux-bot/builds/53/steps/run%20tests%20under%
20Valgrind/logs/stdio
[ RUN      ] LZWDictionaryTests.AddAndRequestSomeStringsTest
==16764== Syscall param clone(child_tidptr) contains uninitialised byte(s)
==16764==    at 0x5951481: clone (clone.S:84)
==16764==    by 0x4615EC: testing::internal::ExecDeathTest::AssumeRole() 
(gtest-death-test.cc:1101)
==16764==    by 0x44B12A: 
Lzw::LZWDictionaryTests_AddAndRequestSomeStringsTest_Test::TestBody() 
(lzw_test.cpp:32)
==16764== 
==16767== Invalid write of size 4
==16767==    at 0x4610E3: testing::internal::ExecDeathTestSpawnChild(char* 
const*, int) (gtest-death-test.cc:1037)
==16767==    by 0x59514BC: clone (clone.S:112)
==16767==    by 0x5C40A1F: ???
==16767==  Address 0xffffffffffffffe0 is not stack'd, malloc'd or (recently) 
free'd
==16767== 
==16767== Process terminating with default action of signal 11 (SIGSEGV)
==16767==  Access not within mapped region at address 0xFFFFFFFFFFFFFFE0
==16767==    at 0x4610E3: testing::internal::ExecDeathTestSpawnChild(char* 
const*, int) (gtest-death-test.cc:1037)
==16767==    by 0x59514BC: clone (clone.S:112)
==16767==    by 0x5C40A1F: ???

Есть ощущение, что это исправляется просто 
апдейтом Valgrind'а.

Original comment by timurrrr on 20 Dec 2012 at 6:09