PtrPosCharPairSearch not working with valgrind #79
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BeRo1985/flre#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consider:
Prints
5as it should.Calling the same program with valgrind, it prints
-1(PtrPosCharPairSearch returns 0)fpc 3.2.2 on linux64, valgrind-3.16.1
When I tried to initialized the string with
s := 'ABRACADABRA', it worked the first time even with valgrind, but now it stopped working.It also seems to work with every other string. Like
'xABRACADABRA'. OrThat assumes rdi is aligned, does it not?
But it is not aligned since the offset is 2...
edit: Ok, the
and rdi,-32makes it aligned. But then it is reading from the string header