Schroot core dump

With the latest schroot’s package i have

/usr/include/c++/12.1.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = char; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Abandon (core dumped)

I have seen the old pkgbuild and now they use cmake and i want to test if the option “dchroot” make a change : old config the differences are :

--enable-dchroot \
--with-bash-completion-dir=/usr/share/bash-completion/completions/ \

how do i enable with cmake :

dchroot=(ON|OFF) Enable dchroot compatibility`

in the new pkgbuild :

cd build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc \
		..
	make

Check the upstream CMakeLists.txt.

You can run cmake -LAH >options.txt 2>&1 to see the available options.

See CMake package guidelines - ArchWiki

I must have done a typo before

-Ddchroot=ON \

is alright
but same core dumped…

Apparently you’re not the only one: FS#76884 - schroot crash: stl_vector.h: Assertion ‘__n < this->size()’ failed.