-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cchost exits/crashes when joining a node using a read only snapshot mounted via blobfuse2 backed storage #6466
Comments
Update. Running cchost in gdb gave this output: 2024-09-05T07:48:19.978464Z 100 [fail ] ../src/host/main.cpp:276 | DEPRECATED: Enclave path was specified in config file! This should be removed from the config, and passed directly to the CLI instead
Dwarf Error: DW_FORM_strx1 found in non-DWO CU [in module /usr/lib/ccf/libjs_generic.virtual.so]
2024-09-05T07:48:20.265254Z 100 [info ] ../src/host/ledger.h:1067 | Recovering main ledger directory /mnt/storage/ledger
2024-09-05T07:48:21.273732Z 100 [info ] ../src/host/ledger.h:1114 | Main ledger directory /mnt/storage/ledger is empty: no ledger file to recover
2024-09-05T07:48:21.274045Z 100 [info ] ../src/host/snapshots.h:198 | Snapshots will be stored in existing directory: /mnt/storage/snapshots
2024-09-05T07:48:21.274523Z 100 [info ] ../src/host/lfs_file_handler.h:23 | Clearing contents from existing directory .index
2024-09-05T07:48:21.275173Z 100 [info ] ../src/host/socket.h:49 | TCP Node Server listening on 0.0.0.0:8081
2024-09-05T07:48:21.275210Z 100 [info ] ../src/host/main.cpp:444 | Registering RPC interface debug_interface, on 0.0.0.0:8082
2024-09-05T07:48:21.275234Z 100 [info ] ../src/host/socket.h:49 | TCP RPC Client listening on 0.0.0.0:8082
2024-09-05T07:48:21.275249Z 100 [info ] ../src/host/main.cpp:458 | Registered RPC interface debug_interface, on 0.0.0.0:8082
2024-09-05T07:48:21.275288Z 100 [info ] ../src/host/main.cpp:444 | Registering RPC interface primary_rpc_interface, on 0.0.0.0:8080
2024-09-05T07:48:21.275323Z 100 [info ] ../src/host/socket.h:49 | TCP RPC Client listening on 0.0.0.0:8080
2024-09-05T07:48:21.275356Z 100 [info ] ../src/host/main.cpp:458 | Registered RPC interface primary_rpc_interface, on 0.0.0.0:8080
2024-09-05T07:48:21.275422Z 100 [info ] ../src/host/main.cpp:593 | Startup host time: 2024-09-05 07:48:21.275419
2024-09-05T07:48:21.275459Z 100 [info ] ../src/host/main.cpp:651 | Creating new node - join existing network at host.docker.internal:55532
2024-09-05T07:48:23.459607Z 100 [info ] ../src/host/main.cpp:696 | Found latest snapshot file: /mnt/ro-snapshots/snapshots/snapshot_15_16.committed (size: 63406)
2024-09-05T07:48:23.459759Z 100 [info ] ../src/host/main.cpp:716 | Initialising enclave: enclave_create_node
[New Thread 0x7fbff1fde700 (LWP 444)]
2024-09-05T07:48:23.736428Z 0 [debug] ../src/enclave/main.cpp:56 | All sanity check tests passed
Thread 1 "cchost" received signal SIGSEGV, Segmentation fault.
0x00007fbff612e56f in nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<unsigned char const*> >::get() () from /usr/lib/ccf/libjs_generic.virtual.so
(gdb) |
|
The snapshot file appears to be corrupt, it is not clear it was corrupted during snapshot production, writing, or perhaps as result of non-atomic copies in blobfuse. One thing is clear though: the snapshot parser is insufficiently defensive. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When hosting the read only snapshot directory backed by a blobfuse2 mount point the cchost process seems to exit/crash after logging "All sanity checks passed". Need to debug this more. Filing the bug for tracking purposes.
The text was updated successfully, but these errors were encountered: