Deletion of Stream
s with many Chunk
s can trigger stack overflow
#1550
Labels
Stream
s with many Chunk
s can trigger stack overflow
#1550
The individual
Chunk
s in aStream
are stored as a linked list. Currently deletion of aStream
s with manyChunk
s can trigger stack overflows, see e.g., the runtime behavior caused due to #1549 (which should just have caused the parser to not trim, but never to segfault). This is due to how the default generated dtr orChunk
works: to clean up the nextChunk
and to traverse the list the compiler generates a recursive call due to the definition of_next
,spicy/hilti/runtime/include/types/stream.h
Line 251 in 50e487c
We should replace this e.g., with an explicit cleanup.
The text was updated successfully, but these errors were encountered: