On Thu, Oct 16, 2025 at 12:13:59PM +0530, Trupti wrote:
On 2025-10-15 15:56, James McCoy wrote:
tree-sitter test
tree-sitter: ./lib/src/./././././array.h:175: _array__erase: Assertion `index < self->size' failed.

This is the same issue that was already reported as #1118048. I'll use
#1118048 to disable asserts in optimized builds.


Thanks for looking into this.

I did some narrowing down and the bug is reproducible when building
tree-sitter with "-O1 -fgcse -fschedule-insns -fstrict-aliasing". Remove
any of the -f switches and the bug does not reproduce.

It seems like this could be related to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121689 but given there's a
mix of C and Rust code, I'm not sure how to help get the relevant
information for GCC folks to debug.

Cheers,
--
James (he/him)
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to