DanielStutzbach / blist

A list-like type with better asymptotic performance and similar performance on small lists
Other
310 stars 36 forks source link

Segfault with gcc 11 #98

Open stefanor opened 2 years ago

stefanor commented 2 years ago

Noticed in Debian that blist segfaults with GCC-11, in test_LIFO.

test_LIFO (test_blist.BListTest) ... 
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a9c55e in blist_locate (self=<optimized out>, i=63, 
    child=child@entry=0x7fffffffa468, idx=idx@entry=0x7fffffffa45c, before=0x7fffffffa470)
    at blist/_blist.c:1327
1327                            so_far -= p->n;

I can't reproduce it with a pydebug build. Haven't dug into the failure, at all.