[Barrelfish-users] Issue building new application -- Cannot create more caps in CNode
Benjamin Shelton
beshelto at vt.edu
Sun Apr 7 20:38:34 CEST 2013
Hi all,
I'm trying to build a simple ping-pong messaging application in Barrelfish
following the example in usr/examples/xmpl-msg.
I've done the following:
- Created usr/examples/xmpl-pingpong and wrote my code in pingpong.c
- Built an interface "xmplpingpong.if" as follows:
interface xmplpingpong "Example ping-pong message interface" {
message msg_there(char data[len]);
message msg_back(char data[len]);
};
Copied the interface to if/ and edited if/Hakefile to include it
- Built a Hakefile as follows:
[ build application { target = "examples/xmpl-pingpong",
cFiles = [ "pingpong.c" ],
flounderBindings = [ "xmplpingpong" ]
}
]
- Edited build/symbolic_targets.mk to include sbin/examples/xmpl-pingpong
under MODULES_COMMON
- Added the following lines to build/menu.lst:
module /x86_64/sbin/examples/xmpl-pingpong core=0 server
module /x86_64/sbin/examples/xmpl-pingpong core=1 client
Everything builds OK, and my test application runs fine with "make sim".
However, I'd like to run it on real hardware. I have Barrelfish set up to
netboot via pxegrub on a 64-core lab machine. It boots more-or-less OK
(doesn't get to the fish shell due to an ACPI issue), and I've verified
that I can run the xmpl-msg test by specifying it in the bootloader
arguments. However, when I try to run the xmpl-pingpong benchmark I
created above, I get the following error:
Kernel starting at address 0xffffff80079fb000
Barrelfish CPU driver starting on x86_64 apic_id 32
kernel 0: Measured 200008944 APIC timer counts in one RTC second, 250027
data points.
kernel 0: Measured 2200188 TSC counts per ms, 99 data points. Average
jitter 55 TSC ticks.
spawn module: x86_64/sbin/init
Raw MMAP from BIOS
0x00000000 - 0x0009e800 Type: 1 Length: 0x9e800
0x0009e800 - 0x000a0000 Type: 2 Length: 0x1800
0x000e8000 - 0x00100000 Type: 2 Length: 0x18000
0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000
0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000
0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000
0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000
0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000
0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000
0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000
0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000
0xffe00000 - 0x100000000 Type: 2 Length: 0x200000
0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000
Sorted MMAP
0x00000000 - 0x0009e800 Type: 1 Length: 0x9e800
0x0009e800 - 0x000a0000 Type: 2 Length: 0x1800
0x000e8000 - 0x00100000 Type: 2 Length: 0x18000
0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000
0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000
0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000
0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000
0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000
0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000
0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000
0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000
0xffe00000 - 0x100000000 Type: 2 Length: 0x200000
0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000
Preprocessed MMAP
0x00000000 - 0x0009e800 Type: 1 Length: 0x9e800
0x0009e800 - 0x000a0000 Type: 2 Length: 0x1800
0x000e8000 - 0x00100000 Type: 2 Length: 0x18000
0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000
0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000
0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000
0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000
0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000
0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000
0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000
0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000
0xffe00000 - 0x100000000 Type: 2 Length: 0x200000
0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000
Pagealigned MMAP
0x00000000 - 0x0009e000 Type: 1 Length: 0x9e000
0x0009e000 - 0x000a0000 Type: 2 Length: 0x2000
0x000e8000 - 0x00100000 Type: 2 Length: 0x18000
0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000
0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000
0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000
0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000
0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000
0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000
0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000
0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000
0xffe00000 - 0x100000000 Type: 2 Length: 0x200000
0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000
kernel 0: create_caps_to_cnode: Cannot create more caps in CNode
kernel 0 PANIC! kernel assertion "err_is_ok(err)" failed at
../kernel/arch/x86_64/startup_arch.c:412
kernel 0: exception 3 (error code 0x0): vec_bp: breakpoint
Faulting instruction pointer (or next instruction): 0xffffff8007a0b251
=> i.e. unrelocated kernel address 0x110251
Registers:
rax: 0xffffff8007a2a000 r8 : 0xffffffffffffffff
rbx: 0xffffff8008859120 r9 : 0x0000000000000000
rcx: 0x00000000000003f8 r10: 0x0000000000000000
rdx: 0xffffff8007abf2e0 r11: 0x0000000000000000
rsp: 0xffffff80082e4bc0 r12: 0x0000002027000000
rdi: 0x0000000000000000 r13: 0xffffff8007a245f8
rsi: 0x000000000000000a r14: 0xffffff8008859138
rip: 0xffffff8007a0b251 r15: 0x0000000100000000
Top o' stack:
0 0xffffff8008859120 (18446743524096708896)
1 0xffffff8007a0f1b8 (18446743524081725880)
2 0xffffff8000000020 (18446743523953737760)
3 0xffffff80082e4c30 (18446743524090989616)
4 0xffffff80082e4bf0 (18446743524090989552)
5 0x00000000082e4c40 (137251904)
6 0x0000000000200010 (2097168)
7 0xffffff8007a200f7 (18446743524081795319)
8 0xffffff8007a21cc0 (18446743524081802432)
9 0x000000000000019c (412)
kernel 0: Waiting for GDB connection...
Any idea what's going on? Am I missing something I need to do to create a
new application?
Thanks so much,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20130407/85ce1571/attachment.html
More information about the Barrelfish-users
mailing list