]> Kevux Git Server - fll/commit
Progress: controller program, address issues with invalid reads/writes.
authorKevin Day <thekevinday@gmail.com>
Sun, 14 Feb 2021 23:19:08 +0000 (17:19 -0600)
committerKevin Day <thekevinday@gmail.com>
Sun, 14 Feb 2021 23:19:08 +0000 (17:19 -0600)
commit7165576e358fe1cc65f192a86ad54781ebff7204
tree66c11e6e652c0fc714e594be7ca0b40df3f1560d
parentc6e77d53eec62d5356d5f6546ad27e9af4febabe
Progress: controller program, address issues with invalid reads/writes.

I have finally identified the cause of the confusing invalid reads/writes.
It seems that using the pointers to memory address directly associated with the thread data and then accessed within a fork() call is a problem.
By copying the data to variables local to a function and then using that memory address, the read/write problems go away.

This commit only performs an immediate fix for the current problem.
What I really need to do next is to rewrite/restructure much of the code with this behavior in consideration.
There were a lot of experimental changes I performed while trying to identify this problem.

There are still some additional locking and other thread problems to solve.
These will hopefully be fixed by the planned rewrite cleanup that I need to do.
level_3/controller/c/private-rule.c