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
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to