<div dir="ltr">Hi all,<div><br></div><div>I&#39;m trying to build a simple ping-pong messaging application in Barrelfish following the example in usr/examples/xmpl-msg.</div><div><br></div><div style>I&#39;ve done the following:</div>
<div style><br></div><div style>- Created usr/examples/xmpl-pingpong and wrote my code in pingpong.c</div><div style>- Built an interface &quot;xmplpingpong.if&quot; as follows:</div><div style><br></div><div style><div>interface xmplpingpong &quot;Example ping-pong message interface&quot; {</div>
<div>          message msg_there(char data[len]);</div><div>          message msg_back(char data[len]);</div><div>};</div><div><br></div><div style>Copied the interface to if/ and edited if/Hakefile to include it</div><div style>
<br></div><div style>- Built a Hakefile as follows:</div><div style><br></div><div style><div>[ build application { target = &quot;examples/xmpl-pingpong&quot;,</div><div>                      cFiles = [ &quot;pingpong.c&quot; ],</div>
<div>                      flounderBindings = [ &quot;xmplpingpong&quot; ]</div><div>                    }</div><div>]</div><div><br></div><div style>- Edited build/<a href="http://symbolic_targets.mk">symbolic_targets.mk</a> to include sbin/examples/xmpl-pingpong under MODULES_COMMON</div>
<div style>- Added the following lines to build/menu.lst:</div><div style><br></div><div style><div>module /x86_64/sbin/examples/xmpl-pingpong core=0 server</div><div>module /x86_64/sbin/examples/xmpl-pingpong core=1 client</div>
<div><br></div><div style>Everything builds OK, and my test application runs fine with &quot;make sim&quot;.  However, I&#39;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&#39;t get to the fish shell due to an ACPI issue), and I&#39;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:</div>
<div style><br></div><div style><div>Kernel starting at address 0xffffff80079fb000</div><div>Barrelfish CPU driver starting on x86_64 apic_id 32</div><div>kernel 0: Measured 200008944 APIC timer counts in one RTC second, 250027 data points.</div>
<div>kernel 0: Measured 2200188 TSC counts per ms, 99 data points. Average jitter 55 TSC ticks.</div><div>spawn module: x86_64/sbin/init</div><div>Raw MMAP from BIOS</div><div>        0x00000000 - 0x0009e800 Type: 1 Length: 0x9e800</div>
<div>        0x0009e800 - 0x000a0000 Type: 2 Length: 0x1800</div><div>        0x000e8000 - 0x00100000 Type: 2 Length: 0x18000</div><div>        0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000</div><div>        0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000</div>
<div>        0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000</div><div>        0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000</div><div>        0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000</div><div>        0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000</div>
<div>        0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000</div><div>        0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000</div><div>        0xffe00000 - 0x100000000 Type: 2 Length: 0x200000</div><div>        0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000</div>
<div>Sorted MMAP</div><div>        0x00000000 - 0x0009e800 Type: 1 Length: 0x9e800</div><div>        0x0009e800 - 0x000a0000 Type: 2 Length: 0x1800</div><div>        0x000e8000 - 0x00100000 Type: 2 Length: 0x18000</div><div>
        0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000</div><div>        0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000</div><div>        0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000</div><div>        0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000</div>
<div>        0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000</div><div>        0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000</div><div>        0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000</div><div>        0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000</div>
<div>        0xffe00000 - 0x100000000 Type: 2 Length: 0x200000</div><div>        0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000</div><div>Preprocessed MMAP</div><div>        0x00000000 - 0x0009e800 Type: 1 Length: 0x9e800</div>
<div>        0x0009e800 - 0x000a0000 Type: 2 Length: 0x1800</div><div>        0x000e8000 - 0x00100000 Type: 2 Length: 0x18000</div><div>        0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000</div><div>        0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000</div>
<div>        0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000</div><div>        0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000</div><div>        0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000</div><div>        0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000</div>
<div>        0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000</div><div>        0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000</div><div>        0xffe00000 - 0x100000000 Type: 2 Length: 0x200000</div><div>        0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000</div>
<div>Pagealigned MMAP</div><div>        0x00000000 - 0x0009e000 Type: 1 Length: 0x9e000</div><div>        0x0009e000 - 0x000a0000 Type: 2 Length: 0x2000</div><div>        0x000e8000 - 0x00100000 Type: 2 Length: 0x18000</div>
<div>        0x00100000 - 0xd7e60000 Type: 1 Length: 0xd7d60000</div><div>        0xd7e6e000 - 0xd7e70000 Type: 9 Length: 0x2000</div><div>        0xd7e70000 - 0xd7e94000 Type: 3 Length: 0x24000</div><div>        0xd7e94000 - 0xd7ec0000 Type: 4 Length: 0x2c000</div>
<div>        0xd7ec0000 - 0xd7ee0000 Type: 2 Length: 0x20000</div><div>        0xd7eed000 - 0xd7f00000 Type: 2 Length: 0x13000</div><div>        0xd7f00000 - 0xd8000000 Type: 2 Length: 0x100000</div><div>        0xe0000000 - 0xf0000000 Type: 2 Length: 0x10000000</div>
<div>        0xffe00000 - 0x100000000 Type: 2 Length: 0x200000</div><div>        0x100000000 - 0x2027000000 Type: 1 Length: 0x1f27000000</div><div>kernel 0: create_caps_to_cnode: Cannot create more caps in CNode</div><div>
kernel 0 PANIC! kernel assertion &quot;err_is_ok(err)&quot; failed at ../kernel/arch/x86_64/startup_arch.c:412</div><div>kernel 0: exception 3 (error code 0x0): vec_bp: breakpoint</div><div>Faulting instruction pointer (or next instruction): 0xffffff8007a0b251</div>
<div>  =&gt; i.e. unrelocated kernel address 0x110251</div><div>Registers:</div><div> rax: 0xffffff8007a2a000  r8 : 0xffffffffffffffff</div><div> rbx: 0xffffff8008859120  r9 : 0x0000000000000000</div><div> rcx: 0x00000000000003f8  r10: 0x0000000000000000</div>
<div> rdx: 0xffffff8007abf2e0  r11: 0x0000000000000000</div><div> rsp: 0xffffff80082e4bc0  r12: 0x0000002027000000</div><div> rdi: 0x0000000000000000  r13: 0xffffff8007a245f8</div><div> rsi: 0x000000000000000a  r14: 0xffffff8008859138</div>
<div> rip: 0xffffff8007a0b251  r15: 0x0000000100000000</div><div>Top o&#39; stack:</div><div> 0       0xffffff8008859120 (18446743524096708896)</div><div> 1       0xffffff8007a0f1b8 (18446743524081725880)</div><div> 2       0xffffff8000000020 (18446743523953737760)</div>
<div> 3       0xffffff80082e4c30 (18446743524090989616)</div><div> 4       0xffffff80082e4bf0 (18446743524090989552)</div><div> 5       0x00000000082e4c40 (137251904)</div><div> 6       0x0000000000200010 (2097168)</div><div>
 7       0xffffff8007a200f7 (18446743524081795319)</div><div> 8       0xffffff8007a21cc0 (18446743524081802432)</div><div> 9       0x000000000000019c (412)</div><div>kernel 0: Waiting for GDB connection...</div></div><div style>
<br></div><div style>Any idea what&#39;s going on?  Am I missing something I need to do to create a new application?</div><div style><br></div><div style>Thanks so much,<br>Ben</div></div></div></div></div>