Skip to content

[lldb] wrong std::deque size #144555

@nd-work

Description

@nd-work

Happens with XCode 26 beta.

To reproduce:

  • debug the program:
#include <deque>

int main() {
  std::deque<int> d;
  d.push_back(1);
  return 0; //break
}
  • print d once the breakpoint is reached:
(lldb) frame var d
(std::deque<int>) d = size=0 {}

Seems to happen because map_endcap in stddeque_SynthProvider.update is zero, while map_first, map_begin, and map_end are not.

Works fine with /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1900.178.0) from XCode 16.3.
Doesn't work with /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 2000.60.0) from XCode 26 beta.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions