An even simpler way, don't need the expect program. Create a thread in
a 64-bit process, and try to execve() a 32-bit executable:
> #include <unistd.h>
> #include <pthread.h>
>
> void *thread_main() {
> char *cmdline[] = { "./testcase32", NULL };
> execve(cmdline[0], cmdline, NULL);
> }
>
> int main() {
> pthread_t thread;
> pthread_create(&thread, NULL, thread_main, NULL);
> pthread_join(thread, NULL);
> return 0;
> }
Regards,
--
Steven Chamberlain
[email protected]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]