argument passing seems to be broken #9

Closed
opened 2018-06-27 13:19:13 +00:00 by george-hopkins · 1 comment
george-hopkins commented 2018-06-27 13:19:13 +00:00 (Migrated from github.com)

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`](https://gist.github.com/george-hopkins/33f7783aa0c9ab5943348eacdefe530b) slightly. I would expect the output to be: ```text 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 2018-07-18 11:42:17 +00:00 (Migrated from github.com)

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

Is this affecting other arch than x86_64 or just one arch?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/libucontext#9
There is no content yet.