Debugger shows array as <uninitialized>

When debugging, arrays sometimes are displayed as <uninitialized>, like so:

    someArray = <uninitialized> {
      _buffer = {
        _storage = 0x20005555561f3700 {
          Swift.__SwiftNativeNSArrayWithContiguousStorage = {}
          countAndCapacity = {
            _storage ={...}
          }
        }
      }
    }

Inspecting the storage shows _storage = {count:1, _capacityAndFlags:2}, so clearly there is an element in the array.

Using po shows the array contents in dump format correctly.

What causes this and how can it be improved?

Is this a problem just on this particular setup?

$ swift --version
Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.10
DISTRIB_CODENAME=oracular
DISTRIB_DESCRIPTION="Ubuntu 24.10"

It seems to come from llvm-project/lldb/source/Plugins/Language/Swift/SwiftArray.cpp at 2495f601eb7b96393d705a4ae95d564f18c66c7a · swiftlang/llvm-project · GitHub

Can you post a (minimal) example that reliably reproduces the problem?