Found this series of valgrind warnings on today's master while working on unrelated task. The warnings can be triggered by pactl load-module module-null-sink. The first bad commit is: Author: David Henningsson <david.henningsson at canonical.com> Date: Fri Dec 5 11:54:39 2014 +0100 memblock: Avoid block ID collisions when exporting memory blocks ==555== Conditional jump or move depends on uninitialised value(s) ==555== at 0x5D69C64: pa_memexport_process_release (memblock.c:1141) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Conditional jump or move depends on uninitialised value(s) ==555== at 0x5D69C72: pa_memexport_process_release (memblock.c:1145) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Use of uninitialised value of size 8 ==555== at 0x5D69C85: pa_memexport_process_release (memblock.c:1148) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Use of uninitialised value of size 8 ==555== at 0x5D69C97: pa_memexport_process_release (memblock.c:1152) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Use of uninitialised value of size 8 ==555== at 0x5D69C9F: pa_memexport_process_release (memblock.c:1154) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Use of uninitialised value of size 8 ==555== at 0x5D69CAF: pa_memexport_process_release (memblock.c:1154) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Conditional jump or move depends on uninitialised value(s) ==555== at 0x5D69D4F: pa_memexport_process_release (memblock.c:1154) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Use of uninitialised value of size 8 ==555== at 0x5D69CBF: pa_memexport_process_release (memblock.c:1154) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Use of uninitialised value of size 8 ==555== at 0x5D69CE4: pa_memexport_process_release (memblock.c:1155) ==555== by 0x5D6A148: pa_memexport_free (memblock.c:1122) ==555== by 0x5D732BA: prepare_next_write_item (pstream.c:566) ==555== by 0x5D732BA: do_write (pstream.c:608) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== ==555== Syscall param socketcall.sendto(msg) points to uninitialised byte(s) ==555== at 0x7C0F6BB: send (in /lib64/libpthread-2.20.so) ==555== by 0x5D57381: pa_write (core-util.c:445) ==555== by 0x5D612F8: pa_iochannel_write (iochannel.c:226) ==555== by 0x5D72F93: do_write (pstream.c:653) ==555== by 0x5D73CA4: do_pstream_read_write (pstream.c:201) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== Address 0x1bcab0ec is 92 bytes inside a block of size 712 alloc'd ==555== at 0x4C2B030: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==555== by 0x510370E: pa_xmalloc0 (xmalloc.c:76) ==555== by 0x5D71E27: _pa_xnew0_internal (xmalloc.h:77) ==555== by 0x5D71E27: pa_pstream_new (pstream.c:261) ==555== by 0x18B755A6: pa_native_protocol_connect (protocol-native.c:5127) ==555== by 0x5D79E2D: callback (socket-server.c:146) ==555== by 0x50EF143: dispatch_pollfds (mainloop.c:657) ==555== by 0x50EF143: pa_mainloop_dispatch (mainloop.c:900) ==555== by 0x50EF519: pa_mainloop_iterate (mainloop.c:931) ==555== by 0x50EF5BF: pa_mainloop_run (mainloop.c:946) ==555== by 0x406DB5: main (main.c:1136) ==555== -- Alexander E. Patrakov