Open razvand opened 3 months ago
MariaDB (PR #45) crashes when started. Use the following commands to replicate:
wget https://raw.githubusercontent.com/unikraft/catalog-for-maintainers/main/utils/start-buildkit.sh source start-buildkit.sh git clone https://github.com/unikraft/catalog cd catalog git remote add unikraft-upb https://github.com/unikraft-upb/catalog git fetch unikraft-upb git checkout -b razvand/library/mongo unikraft-upb/razvand/library/mongo cd library/mongo/6.0 sed -i "s/# CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/" Kraftfile kraft build --no-cache --no-update --plat qemu --arch x86_64 kraft rm --all ; kraft run --rm --log-type basic --log-level debug -M 1024M -p 27017:27017 .
The output message is:
{"t":{"$date":"2024-03-06T17:01:07.113+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}} write(fd:1, "{"t":{"$date":"2024-03-0"..., 188) = 188 prlimit64(0x0, 0x7, ...) = 0x0 mmap(NULL, 69632, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, fd:-1, 0) = va:0x1001f86000 mprotect(va:0x1001f87000, 65536, PROT_READ|PROT_WRITE) = OK rt_sigprocmask(0x0, 0x10008f89e0, ...) = 0x0 clone3(0x432e7d5c0, 0x58, ...) = Function not implemented (-38) clone(CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, va:0x1001f95970, <ref:0x1001f96910>pid:4, <ref:0x1001f96910>pid:4, va:0x1001f96640) = pid:4 rt_sigprocmask(0x2, 0x432e7d720, ...) = 0x0 mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, fd:-1, 0) = va:0x1001f97000 mmap(NULL, 69632, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, fd:-1, 0) = va:0x1002097000 mprotect(va:0x1002098000, 65536, PROT_READ|PROT_WRITE) = OK rt_sigprocmask(0x0, 0x10008f89e0, ...) = 0x0 clone3(0x432e7d8f0, 0x58, ...) = Function not implemented (-38) clone(CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, va:0x10020a6970, <ref:0x10020a7910>pid:5, <ref:0x10020a7910>pid:5, va:0x10020a7640) = pid:5 rt_sigprocmask(0x2, 0x432e7da50, ...) = 0x0 gettimeofday(0x432e7db10, 0x0, ...) = 0x0 futex(va:0x1001f85910, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME) = OK [ 2.252165] CRIT: [libukvmem] Cannot handle read page fault at 0x0 (ec: 0x0): -14 [ 2.254162] CRIT: [libkvmplat] RIP: 000000100d51d6f9 CS: 0008 [ 2.255695] CRIT: [libkvmplat] RSP: 0000001001f5feb0 SS: 0010 EFLAGS: 00010202 [ 2.257633] CRIT: [libkvmplat] RAX: 0000000000000000 RBX: 0000001001c8fed0 RCX: 0000000000000000 [ 2.259982] CRIT: [libkvmplat] RDX: 0000000000000001 RSI: 000000100eb131d8 RDI: 0000000000000000 [ 2.262335] CRIT: [libkvmplat] RBP: 0000001001f5fec0 R08: 0000000000000000 R09: 0000000000000000 [ 2.264692] CRIT: [libkvmplat] R10: 0000000000000000 R11: 0000001001f5fc20 R12: 0000001001d92c00 [ 2.266957] CRIT: [libkvmplat] R13: 0000001001f60090 R14: 0000001001f61460 R15: 0000001001f600c0 [ 2.269288] CRIT: [libkvmplat] base is 0x1001f5fec0 caller is 0x100c15d7e3 [ 2.271131] CRIT: [libkvmplat] base is 0x1001f5ff70 caller is 0x100a835385 [ 2.272976] CRIT: [libkvmplat] base is 0x1001f61ce0 caller is 0x100d546d45 [ 2.274817] CRIT: [libkvmplat] base is 0x1001f61d10 caller is 0x100a60214c [ 2.276654] CRIT: [libkvmplat] base is 0x1001f61f80 caller is 0x100b5d9260 [ 2.278490] CRIT: [libkvmplat] base is 0x1001f62850 caller is 0x100b5d9469 [ 2.280342] CRIT: [libkvmplat] base is 0x1001f628b0 caller is 0x100d6f7c1f [ 2.282153] CRIT: [libkvmplat] [ 2.282991] CRIT: [libkvmplat] 1001f5fea0: d0 fe f5 01 10 00 00 00 61 9e 53 0d 10 00 00 00 [ 2.285140] CRIT: [libkvmplat] 1001f5feb0: 60 14 f6 01 10 00 00 00 d7 6c 77 0d 10 00 00 00 [ 2.287372] CRIT: [libkvmplat] 1001f5fec0: 70 ff f5 01 10 00 00 00 e3 d7 15 0c 10 00 00 00 [ 2.289484] CRIT: [libkvmplat] 1001f5fed0: f0 fe f5 01 10 00 00 00 e1 9e 53 0d 10 00 00 00 [ 2.291680] CRIT: [libkvmplat] [ 2.292520] CRIT: [libkvmplat] 1001f5feb0: 60 14 f6 01 10 00 00 00 d7 6c 77 0d 10 00 00 00 [ 2.294736] CRIT: [libkvmplat] 1001f5fec0: 70 ff f5 01 10 00 00 00 e3 d7 15 0c 10 00 00 00 [ 2.296942] CRIT: [libkvmplat] 1001f5fed0: f0 fe f5 01 10 00 00 00 e1 9e 53 0d 10 00 00 00 [ 2.299138] CRIT: [libkvmplat] 1001f5fee0: 90 86 c7 01 10 00 00 00 38 ff f5 01 10 00 00 00 [ 2.301364] CRIT: [libkvmplat] [ 2.302198] CRIT: [libkvmplat] 100d51d6e0: 55 48 89 f0 48 8d 35 ed 5a 5f 01 48 89 e5 53 48 [ 2.303878] CRIT: [libkvmplat] 100d51d6f0: 89 fb 48 89 c7 48 83 ec 08 ff 10 48 89 c7 31 c0 [ 2.305528] CRIT: [libkvmplat] 100d51d700: 48 85 ff 74 0b 48 8d 73 0c ff d2 b8 01 00 00 00 [ 2.307412] CRIT: [libkvmplat] 100d51d710: 48 83 c4 08 5b 5d c3 66 0f 1f 84 00 00 00 00 00 [ 2.309631] CRIT: [libkvmplat] Crashing
The output message without logging is:
{"t":{"$date":"2024-03-06T16:55:05.641+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}} {"t":{"$date":"2024-03-06T16:55:05.645+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}} {"t":{"$date":"2024-03-06T16:55:05.649+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}} {"t":{"$date":"2024-03-06T16:55:05.653+00:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"main","msg":"Multi threading initialized"} {"t":{"$date":"2024-03-06T16:55:05.656+00:00"},"s":"I", "c":"CONTROL", "id":23377, "ctx":"SignalHandler","msg":"Received signal","attr":{"signal":0,"error":"Unknown signal 0"}} {"t":{"$date":"2024-03-06T16:55:05.659+00:00"},"s":"I", "c":"CONTROL", "id":23378, "ctx":"SignalHandler","msg":"Signal was sent by kill(2)","attr":{"pid":0,"uid":0}} {"t":{"$date":"2024-03-06T16:55:05.662+00:00"},"s":"I", "c":"CONTROL", "id":23381, "ctx":"SignalHandler","msg":"will terminate after current cmd ends"} {"t":{"$date":"2024-03-06T16:55:05.665+00:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"SignalHandler","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}} {"t":{"$date":"2024-03-06T16:55:05.670+00:00"},"s":"I", "c":"REPL", "id":4794602, "ctx":"SignalHandler","msg":"Attempting to enter quiesce mode"} {"t":{"$date":"2024-03-06T16:55:05.673+00:00"},"s":"I", "c":"-", "id":6371601, "ctx":"SignalHandler","msg":"Shutting down the FLE Crud thread pool"} {"t":{"$date":"2024-03-06T16:55:05.677+00:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"SignalHandler","msg":"Shutting down the MirrorMaestro"} {"t":{"$date":"2024-03-06T16:55:05.681+00:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"SignalHandler","msg":"Shutting down the WaitForMajorityService"} {"t":{"$date":"2024-03-06T16:55:05.684+00:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"SignalHandler","msg":"Shutting down the global connection pool"} {"t":{"$date":"2024-03-06T16:55:05.688+00:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"SignalHandler","msg":"Shutting down the ReplicaSetMonitor"} {"t":{"$date":"2024-03-06T16:55:05.691+00:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"SignalHandler","msg":"Shutting down the MigrationUtilExecutor"} {"t":{"$date":"2024-03-06T16:55:05.695+00:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."} {"t":{"$date":"2024-03-06T16:55:05.699+00:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"unikraft"}} {"t":{"$date":"2024-03-06T16:55:05.704+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.13","gitVersion":"3b13907f9bdf6bd3264d67140d6c215d51bbd20c","openSSLVersion":"OpenSSL 3.0.2 15 Mar 2022","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2204","distarch":"x86_64","target_arch":"x86_64"}}}} {"t":{"$date":"2024-03-06T16:55:05.713+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"22.04"}}} {"t":{"$date":"2024-03-06T16:55:05.717+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}} [ 0.822378] CRIT: [libukvmem] Cannot handle read page fault at 0x0 (ec: 0x0): -14 [ 0.824280] CRIT: [libkvmplat] RIP: 000000100d51d6f9 CS: 0008 [ 0.825787] CRIT: [libkvmplat] RSP: 0000001001f5feb0 SS: 0010 EFLAGS: 00010202 [ 0.827675] CRIT: [libkvmplat] RAX: 0000000000000000 RBX: 0000001001c8faf0 RCX: 0000000000000000 [ 0.829995] CRIT: [libkvmplat] RDX: 0000000000000001 RSI: 000000100eb131d8 RDI: 0000000000000000 [ 0.832255] CRIT: [libkvmplat] RBP: 0000001001f5fec0 R08: 0000000000000000 R09: 0000000000000000 [ 0.834532] CRIT: [libkvmplat] R10: 0000000000000000 R11: 0000001001f5fc20 R12: 0000001001d92000 [ 0.836787] CRIT: [libkvmplat] R13: 0000001001f60090 R14: 0000001001f61460 R15: 0000001001f600c0 [ 0.839042] CRIT: [libkvmplat] base is 0x1001f5fec0 caller is 0x100c15d7e3 [ 0.840864] CRIT: [libkvmplat] base is 0x1001f5ff70 caller is 0x100a835385 [ 0.842626] CRIT: [libkvmplat] base is 0x1001f61ce0 caller is 0x100d546d45 [ 0.844455] CRIT: [libkvmplat] base is 0x1001f61d10 caller is 0x100a60214c [ 0.846232] CRIT: [libkvmplat] base is 0x1001f61f80 caller is 0x100b5d9260 [ 0.848044] CRIT: [libkvmplat] base is 0x1001f62850 caller is 0x100b5d9469 [ 0.849846] CRIT: [libkvmplat] base is 0x1001f628b0 caller is 0x100d6f7c1f [ 0.851639] CRIT: [libkvmplat] [ 0.852534] CRIT: [libkvmplat] 1001f5fea0: d0 fe f5 01 10 00 00 00 61 9e 53 0d 10 00 00 00 [ 0.854823] CRIT: [libkvmplat] 1001f5feb0: 60 14 f6 01 10 00 00 00 d7 6c 77 0d 10 00 00 00 [ 0.856902] CRIT: [libkvmplat] 1001f5fec0: 70 ff f5 01 10 00 00 00 e3 d7 15 0c 10 00 00 00 [ 0.859004] CRIT: [libkvmplat] 1001f5fed0: f0 fe f5 01 10 00 00 00 e1 9e 53 0d 10 00 00 00 [ 0.861103] CRIT: [libkvmplat] [ 0.861993] CRIT: [libkvmplat] 1001f5feb0: 60 14 f6 01 10 00 00 00 d7 6c 77 0d 10 00 00 00 [ 0.864186] CRIT: [libkvmplat] 1001f5fec0: 70 ff f5 01 10 00 00 00 e3 d7 15 0c 10 00 00 00 [ 0.866069] CRIT: [libkvmplat] 1001f5fed0: f0 fe f5 01 10 00 00 00 e1 9e 53 0d 10 00 00 00 [ 0.867718] CRIT: [libkvmplat] 1001f5fee0: 10 82 c7 01 10 00 00 00 38 ff f5 01 10 00 00 00 [ 0.869303] CRIT: [libkvmplat] [ 0.869904] CRIT: [libkvmplat] 100d51d6e0: 55 48 89 f0 48 8d 35 ed 5a 5f 01 48 89 e5 53 48 [ 0.871468] CRIT: [libkvmplat] 100d51d6f0: 89 fb 48 89 c7 48 83 ec 08 ff 10 48 89 c7 31 c0 [ 0.873048] CRIT: [libkvmplat] 100d51d700: 48 85 ff 74 0b 48 8d 73 0c ff d2 b8 01 00 00 00 [ 0.874625] CRIT: [libkvmplat] 100d51d710: 48 83 c4 08 5b 5d c3 66 0f 1f 84 00 00 00 00 00 [ 0.876190] CRIT: [libkvmplat] Crashing E machine fatally exited
MariaDB (PR #45) crashes when started. Use the following commands to replicate:
The output message is:
The output message without logging is: