[Barrelfish-users] spawn_program freezes when executing on different core then 0.

Kornilios Kourtis kornilios.kourtis at inf.ethz.ch
Wed Mar 20 13:07:14 CET 2013


Hi Mateusz,

On Mon, Mar 18, 2013 at 09:49:56PM +0100, Mateusz Olczak wrote:
> Hi,
> 
> When I attempt to spawn a process on any other core then 0 spawn_program freezes and does not return.
> Even pike has this issue. What might be going on?
> 
> The program I'm executing is very simple:
> 
> #include <stdio.h>
> 
> int main(int argc, char *argv[])
> {
> 	printf("%s with arguments: ", argv[0]);
> 
> 	for (int i = 0; i < argc; i++)
> 		printf("%s ", argv[i]);
> 
> 	printf("\n");
> 
> 	return 0;
> }

I tried to reproduce this using xmpl-hello and fish, but it seems to
work OK:

| > oncore 0 x86_64/sbin/hellotest
| spawnd.0: spawning /x86_64/sbin/hellotest on core 0
| > hellotest.0: Hello world (debug_printf)
| Hello world (normal printf)
| arg[0] = x86_64/sbin/hellotest
| 
| > oncore 1 x86_64/sbin/hellotest
| spawnd.1: spawning /x86_64/sbin/hellotest on core 1
| > hellotest.1: Hello world (debug_printf)
| Hello world (normal printf)
| arg[0] = x86_64/sbin/hellotest

Can you try the above and see if it works for your setup? How do you invoke
spawn_program?

cheers,
Kornilios.

-- 
Kornilios Kourtis



More information about the Barrelfish-users mailing list