We have noticed some failures while running ppc32 runtime binaries in PPC64 machine.
getcontext (&ucp);
if (first_time == 1)
{
...
return 0;
}
first_time++;
ucp.uc_link = &oucp;
ucp.uc_stack.ss_sp = st1;
ucp.uc_stack.ss_size = sizeof st1;
oucp = ucp;
makecontext (&ucp, t1_func, 0);
if (setcontext (&ucp) != 0)
oucp has not been initialized by getcontext directly here, and that's
the requirement for contexts passed to makecontext/setcontext.
So, a correct program wouldn't do oucp = ucp; above, but instead
would call getcontext (&oucp); before or after the other getcontext
call.
On ppc this really can't work, as ucontext_t on ppc has embedded
pointers, so doing a structure copy doesn't create a valid ucontext.
================
10|0 /tset/LSB.os/jump/makecontext/T.makecontext 01:46:51|TC Start,
scenario ref 1-0
15|0 3.6-lite 3|TCM Start
400|0 1 1 01:46:51|IC Start
200|0 1 01:46:51|TP Start
520|0 1 00010579 2 1|child process timed out
220|0 1 2 01:47:16|UNRESOLVED
410|0 1 1 01:47:16|IC End
400|0 2 1 01:47:16|IC Start
200|0 2 01:47:16|TP Start
220|0 2 0 01:47:16|PASS
410|0 2 1 01:47:16|IC End
400|0 3 1 01:47:16|IC Start
200|0 3 01:47:16|TP Start
520|0 3 00010579 2 1|child process timed out
220|0 3 2 01:47:41|UNRESOLVED
410|0 3 1 01:47:41|IC End
80|0 0 01:47:43|TC End, scenario ref 1-0
900|01:47:43|TCC End
--
Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.