kaniini / libucontext

ucontext implementation featuring glibc-compatible ABI
Other
106 stars 41 forks source link

argument passing seems to be broken #9

Closed george-hopkins closed 6 years ago

george-hopkins commented 6 years ago

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.

fabled commented 6 years ago

Is this affecting other arch than x86_64 or just one arch?