Hi,

On 2025-10-26 17:47, James McCoy wrote:
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.



Thanks for finding root cause.


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.

But any specific flag is responsible for this or all of these flag.
I will try to test this scenario again and let you know the result.


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.


Yes right, the code is written in both c and rust. I can try to gather more details to help confirm whether this matches GCC bug #121689.


Thanks Trupti.

Reply via email to