It seems that the second argument, which is passed to the function after a context switch, gets modified. To test this I modified test_libucontext.c slightly. I would expect the output to be:
start f2
start f1: 1 2 3 4
finish f2
finish f1
However, I actually get start f1: 1 X 3 4 where X is 66 (might be an arbitrary number) on Alpine Linux edge x64.
It seems that the second argument, which is passed to the function after a context switch, gets modified. To test this I modified
test_libucontext.c
slightly. I would expect the output to be:However, I actually get
start f1: 1 X 3 4
where X is 66 (might be an arbitrary number) on Alpine Linux edge x64.