Bug in buffer manipulation logic
The following command fails with a segfault raised in __maskInput1
bin/icgrep -colors=always -segment-size=16384 '[a-z]{15}' ../QA/testfiles/4KiB-onepage -thread-num=1
It seems that some ItemCounts are out of range. I slightly annotated the code (as attached) and got the following trace:
bufferPtrTy = [1 x <2 x i64>]*
bufferPtrTy = [1 x [64 x <2 x i64>]]*
bufferPtrTy = [1 x [8 x <2 x i64>]]*
bufferPtrTy = [1 x <2 x i64>]*
bufferPtrTy = [1 x [64 x <2 x i64>]]*
ItemCountPhi = 8
selected = 1
inputBuffer = 562b3b34b000
itemsPerSegment = 80
start = 8
end = 9
numOfStreams = 1
bufferStorage = 7ffda8b7c350
ItemCountPhi = 20
selected = 1
inputBuffer = 562b3b1cc000
itemsPerSegment = 80
start = 20
end = 21
numOfStreams = 1
bufferStorage = 7ffda8b7c350
ItemCountPhi = 20
selected = 1
inputBuffer = 562b3b188000
itemsPerSegment = 80
start = 20
end = 21
numOfStreams = 1
bufferStorage = 7ffda8b7c2d8
ItemCountPhi = 8
selected = 1
inputBuffer = 562b3b1cc000
itemsPerSegment = 80
start = 8
end = 9
numOfStreams = 1
bufferStorage = 7ffda8b7c350
ItemCountPhi = 1002
selected = 200000000000000
inputBuffer = 562b3b298000
itemsPerSegment = 400
start = 400
end = 200000000001002
numOfStreams = 1
bufferStorage = 7ffda8b7c2c0
Segmentation fault
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information