Bug#743141: system hangs when building gcc on kfreebsd-amd64
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
steven@pyro.eu.org
Reply to: