Skip to content

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Jan 13, 2026

Valgrind reported some uses of uninitialized memory when running the
regression tests under it. This patch addresses the following valgrind
reported issues:

  1. LogBuffer flush:
    Syscall param write(buf) points to uninitialised byte(s)
    at Log::flush_thread_main(void*)
    by LogBuffer::LogBuffer(LogConfig const*, LogObject*, ...)

  2. Cache test pwrite:
    Syscall param pwrite64(buf) points to uninitialised byte(s)
    at AIOThreadInfo::aio_thread_main(AIOThreadInfo*)
    by Stripe::Stripe(CacheDisk*, long, long, int, int)

@bneradt bneradt added this to the 10.2.0 milestone Jan 13, 2026
@bneradt bneradt self-assigned this Jan 13, 2026
@bneradt bneradt added the Bug label Jan 13, 2026
@bneradt bneradt force-pushed the fix_valgrind_regression_tests_reports branch from 2e93317 to cdeb457 Compare January 14, 2026 18:52
Valgrind reported some uses of uninitialized memory when running the
regression tests under it. This patch addresses the following valgrind
reported issues:

1. LogBuffer flush:
   Syscall param write(buf) points to uninitialised byte(s)
      at Log::flush_thread_main(void*)
      by LogBuffer::LogBuffer(LogConfig const*, LogObject*, ...)

2. Cache test pwrite:
   Syscall param pwrite64(buf) points to uninitialised byte(s)
      at AIOThreadInfo::aio_thread_main(AIOThreadInfo*)
      by Stripe::Stripe(CacheDisk*, long, long, int, int)
@bneradt bneradt force-pushed the fix_valgrind_regression_tests_reports branch from cdeb457 to 1c00d38 Compare January 14, 2026 18:53
Copy link
Contributor

@masaori335 masaori335 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Both memories are just allocated and not initialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants