27.07.2022 19:32 Jivanmukta kirjutas:
>
> I have object of my class source_file:
[...]
> The problem is that in some moment of time source_lines[318] is
> unexpectedly modified, I don't know why and when, although the file is
> correctly loaded to source_lines[], I mean open() works fine and some
> time later get_next_line() returns spoilt string. Conditional
> breakpoints don't work (I use VSCodium).
> How to find the moment of modification of source_line[318]?
If it is well reproducible, then a data breakpoint should work fine.
Note that hardware data breakpoints are max 4 or 8 bytes, so you will
need to figure out the exact address in the memory which will be
illegally modified, and put a data breakpoint on it.
> bool inside_php,
Last time I used PHP as an in-process library, it wrote over some random
foreign memory when initializing itself. It was a bit tricky to cope
with as I was not able to compile its sources any more :-S