Liblor / advanced_operating_systems_2020

Advanced Operating System Course at ETHZ
MIT License
19 stars 4 forks source link

SYS_ERR_CAP_NOT_FOUND when setting up channel #80

Closed eikendev closed 4 years ago

eikendev commented 4 years ago

This sometimes happens on 396e7eebe778e302b55b1a174c02ec38dd56de23.

dummy.0.0: Setting up a new channel to serial.
dummy.0.0: initializing static heap
dummy.0.0: Setting up a new channel to init.
init.0.0: new pid is 81
rpc-test.0.0: client_spawn_cb(...)
Dinit.0.0: open_recv_cb()
init.0.0: open_recv_cb()
dummy.0.0: Setting up a new channel to serial.
miinit.0.0: open_recv_cb()
dummy.0.0: Setting up a new channel to memory.
aupinit.0.0: processserver service_recv_cb()
init.0.0: name is: /armv8/sbin/dummy
ERROR: dummy.0 in aos_rpc_lmp_setup_channel() /source//lib/aos/aos_rpc_lmp.c:786
ERROR: transient
dummy.0.0: Setting up a new channel to serial.
dummy.0.0: initializing static heap
dummy.0.0: Setting up a new channel to init.
ERROR: init.0 in paging_map_fixed_single_pt3() /source//lib/aos/paging.c:525
ERROR:
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
init.0.0: vnode_map failed: Capability not found (empty slot encountered)
ERROR: init.0 in paging_map_fixed_attr() /source//lib/aos/paging.c:609
ERROR:
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in paging_map_fixed_attr() /source//lib/aos/paging.c:610
ERROR: paging_map_fixed_single_pt3 failed

Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in slab_refill_pages() /source//lib/aos/slab.c:193
ERROR:
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in slab_ensure_threshold() /source//lib/aos/slab.c:230
ERROR:
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in mm_alloc_aligned() /source//lib/mm/mm.c:240
ERROR:
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in vnode_create() /source//lib/aos/capabilities.c:680
ERROR:
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in pt_alloc() /source//lib/aos/paging.c:44
ERROR:
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
init.0.0: vnode_create failed: Failure in ram_alloc()
ERROR: init.0 in paging_create_vnode() /source//lib/aos/paging.c:342
ERROR:
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
init.0.0: pt_alloc failed: Failure in ram_alloc()
ERROR: init.0 in paging_create_pd() /source//lib/aos/paging.c:486
ERROR:
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
init.0.0: paging_create_vnode ObjType_VNode_AARCH64_l3 failed: Failure in ram_alloc()
ERROR: init.0 in paging_map_fixed_single_pt3() /source//lib/aos/paging.c:508
ERROR:
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
init.0.0: paging_create_pd failed: Failure in ram_alloc()
ERROR: init.0 in paging_map_fixed_attr() /source//lib/aos/paging.c:609
ERROR:
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in paging_map_fixed_attr() /source//lib/aos/paging.c:610
ERROR: paging_map_fixed_single_pt3 failed

Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
ERROR: init.0 in elf_allocator_cb() /source//lib/spawn/spawn.c:90
ERROR:
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
init.0.0: paging_map_frame_attr() failed: Failure in ram_alloc()
ERROR: init.0 in parse_elf() /source//lib/spawn/spawn.c:263
ERROR:
Failure: (         libelf) Nested failure in allocator function [ELF_ERR_ALLOCATE]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         kernel) Capability not found (empty slot encountered) [SYS_ERR_CAP_NOT_FOUND]
init.0.0: elf_load() failed: Nested failure in allocator function
ERROR: init.0 in spawn_load_argv() /source//lib/spawn/spawn.c:576
ERROR:
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (         libelf) Nested failure in allocator function [ELF_ERR_ALLOCATE]
dummy.0.0: initializing static heap
dummy.0.0: Setting up a new channel to init.
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
init.0.0: parse_elf() failed: Failure in spawn_elf_map
ERROR: init.0 in spawn_load_by_name() /source//lib/spawn/spawn.c:649
ERROR:
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (         libelf) Nested failure in allocator function [ELF_ERR_ALLOCATE]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
Failure: (         libaos) Refilling slab allocator failed [LIB_ERR_SLAB_REFILL]
init.0.0: spawn_load_argv() failed: Failure in spawn_elf_map
ERROR: init.0 in spawn_cb() /source//usr/init/main.c:117
ERROR:
Failure: (          spawn) Failure while loading [SPAWN_ERR_LOAD]
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (         libelf) Nested failure in allocator function [ELF_ERR_ALLOCATE]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
ERROR: init.0 in spawn_cb() /source//usr/init/main.c:118
ERROR: spawn_load_by_name()
Failure: (          spawn) Failure while loading [SPAWN_ERR_LOAD]
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (         libelf) Nested failure in allocator function [ELF_ERR_ALLOCATE]
ERROR: dummy.0 in aos_rpc_lmp_setup_channel() /source//lib/aos/aos_rpc_lmp.c:786
ERROR: transient
dummy.0.0: Setting up a new channel to serial.
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
ERROR: init.0 in handle_spawn_process() /source//usr/init/processserver.c:141
ERROR:
Failure: (          spawn) Failure while loading [SPAWN_ERR_LOAD]
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (          spawn) Failure in spawn_elf_map [SPAWN_ERR_ELF_MAP]
Failure: (         libelf) Nested failure in allocator function [ELF_ERR_ALLOCATE]
Failure: (         libaos) Failure in vspace_map() wrapper function [LIB_ERR_VSPACE_MAP]
Failure: (         libaos) Failure in ram_alloc() [LIB_ERR_RAM_ALLOC]
rpc-test.0.0: client_spawn_cb(...)
ERROR: rpc-test.0 in client_spawn_cb() /source//lib/aos/aos_rpc_lmp.c:356
ERROR: Dinit.0.0: open_recv_cb()
init.0.0: open_recv_cb()
dummy.0.0: Setting up a new channel to serial.
leopoldsedev commented 4 years ago

To be honest I think that was caused by 396e7eebe778e302b55b1a174c02ec38dd56de23, which was reverted. So we shouldn't see this again.