Hi Johannes, you forgot to pass the suppression files "src/.valgrind.supp" to valgrind. Also you can run valgrind check with "make memcheck".
//Kevin 2016-06-14 4:38 GMT+02:00 Frittum Johannes < [email protected]>: > Hi! > > Just noticed that make check for czmq is failing fom git latest in test > zsock: > > $ valgrind -v ./czmq_selftest -v -t zsock > > ==25433== Memcheck, a memory error detector > ==25433== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. > ==25433== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info > ==25433== Command: ./czmq_selftest -v -t zsock > ==25433== > --25433-- Valgrind options: > --25433-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp > --25433-- -v > --25433-- Contents of /proc/version: > --25433-- Linux version 3.13.0-88-generic (buildd@lcy01-36) (gcc > version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #135~precise1-Ubuntu SMP Thu > Jun 9 08:27:38 UTC 2016 > --25433-- Arch and hwcaps: X86, x86-sse1-sse2 > --25433-- Page sizes: currently 4096, max supported 4096 > > [...] > > Running czmq test 'zsock'... > --25433-- REDIR: 0x419e3a0 (free) redirected to 0x402b000 (free) > * zsock: > --25433-- REDIR: 0x419efc0 (calloc) redirected to 0x402a540 (calloc) > --25433-- REDIR: 0x41a2170 (__GI_strlen) redirected to 0x402c670 > (__GI_strlen) > --25433-- REDIR: 0x440d6a0 (operator new(unsigned int, std::nothrow_t > const&)) redirected to 0x402b790 (operator new(unsigned int, std::nothrow_t > const&)) > --25433-- REDIR: 0x419f8c0 (posix_memalign) redirected to 0x402a4a0 > (posix_memalign) > --25433-- REDIR: 0x419dec0 (malloc) redirected to 0x402be00 (malloc) > --25433-- REDIR: 0x440d600 (operator new(unsigned int)) redirected to > 0x402b950 (operator new(unsigned int)) > --25433-- REDIR: 0x41a3190 (memmove) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x425cb80 (__memmove_ssse3) redirected to 0x402e910 > (memmove) > --25433-- REDIR: 0x440b500 (operator delete(void*)) redirected to > 0x402ac90 (operator delete(void*)) > --25433-- REDIR: 0x41a1770 (index) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x41ba170 (__strchr_sse2_bsf) redirected to 0x402c280 > (index) > --25433-- REDIR: 0x41a2120 (strlen) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x41a90d0 (__strlen_sse2_bsf) redirected to 0x402c650 > (strlen) > --25433-- REDIR: 0x4226f20 (__memcpy_chk) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x425a270 (__memcpy_chk_ssse3) redirected to 0x402ef30 > (__memcpy_chk) > --25433-- REDIR: 0x41a2e60 (bcmp) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x426b760 (__memcmp_ssse3) redirected to 0x402e460 (bcmp) > --25433-- REDIR: 0x41a3910 (memcpy) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x425a280 (__memcpy_ssse3) redirected to 0x402d930 > (memcpy) > --25433-- REDIR: 0x41a2380 (rindex) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x41ba280 (__strrchr_sse2_bsf) redirected to 0x402c170 > (rindex) > --25433-- REDIR: 0x41a1aa0 (__GI_strcpy) redirected to 0x402c760 > (__GI_strcpy) > --25433-- REDIR: 0x41a3250 (memset) redirected to 0x40254a0 > (_vgnU_ifunc_wrapper) > --25433-- REDIR: 0x4259170 (__memset_sse2) redirected to 0x402e880 (memset) > ==25433== Invalid read of size 1 > ==25433== at 0x402C658: strlen (in > /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) > ==25433== by 0x40635A9: zmsg_addstr (zmsg.c:382) > ==25433== by 0x40C3DA5: ??? (in /usr/local/lib/libczmq.so.3.0.0) > ==25433== Address 0xffffffff is not stack'd, malloc'd or (recently) free'd > ==25433== > ==25433== > ==25433== Process terminating with default action of signal 11 (SIGSEGV) > ==25433== Access not within mapped region at address 0xFFFFFFFF > ==25433== at 0x402C658: strlen (in > /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) > ==25433== by 0x40635A9: zmsg_addstr (zmsg.c:382) > ==25433== by 0x40C3DA5: ??? (in /usr/local/lib/libczmq.so.3.0.0) > ==25433== If you believe this happened as a result of a stack > ==25433== overflow in your program's main thread (unlikely but > ==25433== possible), you can try to increase the size of the > ==25433== main thread stack using the --main-stacksize= flag. > ==25433== The main thread stack size used in this run was 8388608. > ==25433== > ==25433== HEAP SUMMARY: > ==25433== in use at exit: 142,188 bytes in 179 blocks > ==25433== total heap usage: 583 allocs, 404 frees, 284,456 bytes > allocated > ==25433== > ==25433== Searching for pointers to 179 not-freed blocks > ==25433== Checked 16,968,408 bytes > ==25433== > ==25433== LEAK SUMMARY: > ==25433== definitely lost: 0 bytes in 0 blocks > ==25433== indirectly lost: 0 bytes in 0 blocks > ==25433== possibly lost: 1,347 bytes in 39 blocks > ==25433== still reachable: 140,841 bytes in 140 blocks > ==25433== suppressed: 0 bytes in 0 blocks > ==25433== Rerun with --leak-check=full to see details of leaked memory > ==25433== > ==25433== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) > ==25433== > ==25433== 1 errors in context 1 of 1: > ==25433== Invalid read of size 1 > ==25433== at 0x402C658: strlen (in > /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) > ==25433== by 0x40635A9: zmsg_addstr (zmsg.c:382) > ==25433== by 0x40C3DA5: ??? (in /usr/local/lib/libczmq.so.3.0.0) > ==25433== Address 0xffffffff is not stack'd, malloc'd or (recently) free'd > ==25433== > ==25433== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) > > Maybe someone feels guilty and issues a pull request! > > Warm regards > Johannes Frittum > Wichtiger Hinweis: Diese E-Mail Nachricht kann Betriebs- oder > Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. > Wenn Sie nicht der Adressat sind und diese Nachricht irrtümlich erhalten > haben, ist Ihnen eine Verwendung des Inhalts, eine Vervielfältigung oder > Weitergabe dieser Nachricht ausdrücklich untersagt. Bitte benachrichtigen > Sie uns und vernichten Sie die empfangene Nachricht. Vielen Dank. Please > Note: This e-mail message may contain trade secrets or privileged, > undisclosed or otherwise confidential information. If you are not the > intended recipient and have received this message in error or by mistake > any unauthorized use, reproduction or distribution of this message is > strictly prohibited. Please notify us immediately and destroy the original > transmittal. Thank you for your cooperation. Austro Control Österreichische > Gesellschaft für Zivilluftfahrt mit beschränkter Haftung Sitz/Registered > address: Wien/ Vienna; Registriert unter/registered under: FN 71000m > Competent court/Firmenbuchgericht: HG Wien/commercial court Vienna; > Rechtsform/legal form: GmbH Postanschrift/postal address: Wagramer Straße > 19 - 1220 Wien/Vienna DVR: 0447277 > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
