Hi Waldek,
Thanks for the quick response. For more details, I am trying to run a research prototype that requires both Python 3 and Java 8 to run correctly, and I placed the prototype's executable files (which includes large amounts of static data required to run the program) as an image in the apps directory to be linked to the image. The individual files are not huge (up to a few hundred MB each), but rather there are a lot of files that need to be included to run the prototype (totalling altogether 2-3 GB). I wasn't sure if this was the best approach. It seems that I could also dynamically link it in the .img file after the fact, since I only need the Python and Java images to run the program correctly?
The error I am getting occurs when I run the following command: `./scripts/build fs_size_mb=8192 image=python-from-host,java8,prototype` where prototype contains my large executable files. The error I receive is during the build process. It will state:
```
Assertion failed: virt >= phys_mem (core/mmu.cc: virt_to_phys: 184)
[backtrace]
0x0000000040244a7c <__assert_fail+28>
0x00000000402b85fc <mmu::virt_to_phys(void*)+92>
0x00000000402ef3e2 <void mmu::virt_to_phys<virtio::vring::add_sg(void*, unsigned int, virtio::vring_desc::flags)::{lambda(unsigned long, unsigned long)#1}>(void*, unsigned long, virtio::vring::add_sg(void*, unsigned int, virtio::vring_desc::flags)::{lambda(unsigned long, unsigned long)#1})+34>
0x00000000402ef1e6 <virtio::blk::make_request(bio*)+470>
0x000010000006b1e5 <???+438757>
0x000010000009620a <???+614922>
0x000010000006e476 <???+451702>
0x000010000009620a <???+614922>
0x0000000040260e1e <???+1076235806>
0x0000000040260ef2 <taskqueue_thread_loop+82>
0x000000004037db2d <thread_main_c+45>
0x000000004030b361 <???+1076933473>
```
I'm using the most recent OSv pulled from Github. I'm not using node but Python. To my best understanding, this is what I got using readelf for Java and Python. I used the files within my own machine that were then transferred into OSv. I wasn't sure how to use `readelf` within the unikernel itself, so I might need guidance on using readelf within OSv if this is not sufficient.
openjdk-8-zulu-full's java binary:
```
Elf file type is EXEC (Executable file)
Entry point 0x400570
There are 9 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x0001f8 0x0001f8 R E 0x8
INTERP 0x000238 0x0000000000400238 0x0000000000400238 0x00001c 0x00001c R 0x1
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x0008c4 0x0008c4 R E 0x200000
LOAD 0x000d98 0x0000000000600d98 0x0000000000600d98 0x00027c 0x000290 RW 0x200000
DYNAMIC 0x000dd0 0x0000000000600dd0 0x0000000000600dd0 0x000210 0x000210 RW 0x8
NOTE 0x000254 0x0000000000400254 0x0000000000400254 0x000044 0x000044 R 0x4
GNU_EH_FRAME 0x000818 0x0000000000400818 0x0000000000400818 0x000024 0x000024 R 0x4
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x8
GNU_RELRO 0x000d98 0x0000000000600d98 0x0000000000600d98 0x000268 0x000268 R 0x1
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.ABI-tag .note.gnu.build-id .hash .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_d .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame
03 .ctors .dtors .jcr .data.rel.ro .dynamic .got .got.plt .data .bss
04 .dynamic
05 .note.ABI-tag .note.gnu.build-id
06 .eh_frame_hdr
07
08 .ctors .dtors .jcr .data.rel.ro .dynamic .got ```
python3.10.12:
```
Elf file type is DYN (Position-Independent Executable file)
Entry point 0x22cb80
There are 13 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x0002d8 0x0002d8 R 0x8
INTERP 0x000318 0x0000000000000318 0x0000000000000318 0x00001c 0x00001c R 0x1
[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x06c228 0x06c228 R 0x1000
LOAD 0x06d000 0x000000000006d000 0x000000000006d000 0x2b0dad 0x2b0dad R E 0x1000
LOAD 0x31e000 0x000000000031e000 0x000000000031e000 0x23ee58 0x23ee58 R 0x1000
LOAD 0x55d810 0x000000000055e810 0x000000000055e810 0x045528 0x08b6c8 RW 0x1000
DYNAMIC 0x562bc8 0x0000000000563bc8 0x0000000000563bc8 0x000220 0x000220 RW 0x8
NOTE 0x000338 0x0000000000000338 0x0000000000000338 0x000030 0x000030 R 0x8
NOTE 0x000368 0x0000000000000368 0x0000000000000368 0x000044 0x000044 R 0x4
GNU_PROPERTY 0x000338 0x0000000000000338 0x0000000000000338 0x000030 0x000030 R 0x8
GNU_EH_FRAME 0x4e72a4 0x00000000004e72a4 0x00000000004e72a4 0x012e74 0x012e74 R 0x4
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10
GNU_RELRO 0x55d810 0x000000000055e810 0x000000000055e810 0x0067f0 0x0067f0 R 0x1
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.gnu.property .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt
03 .init .plt .plt.got .plt.sec .text .fini
04 .rodata .stapsdt.base .eh_frame_hdr .eh_frame
05 .init_array .fini_array .data.rel.ro .dynamic .got .data .PyRuntime .probes .bss
06 .dynamic
07 .note.gnu.property
08 .note.gnu.build-id .note.ABI-tag
09 .note.gnu.property
10 .eh_frame_hdr
11
12 .init_array .fini_array .data.rel.ro .dynamic .got ```
Let me know if there is anything else you would like to see, or if you would like more clarification on anything mentioned above. Thank you for the help!
Sincerely,
Darren