Created
August 10, 2020 16:11
-
-
Save rchatsiri/d439f128bb9df4af4420b1ee0fa38f1f to your computer and use it in GitHub Desktop.
Firecraker debug logging with DWARF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lldb) run --api-sock /tmp/firecracker.socket | |
Process 9986 launched: '/home/vagrant/workspacerust/firecracker/build/cargo_target/x86_64-unknown-linux-musl/debug/firecracker' (x86_64) | |
Process 9986 stopped | |
* thread #1, name = 'firecracker', stop reason = signal SIGSTOP | |
frame #0: 0x00000000007cee56 firecracker`__syscall + 25 | |
firecracker`__syscall: | |
-> 0x7cee56 <+25>: retq | |
firecracker`stub_dlsym: | |
0x7cee57 <+0>: leaq 0x30fca(%rip), %rdi | |
0x7cee5e <+7>: subq $0x8, %rsp | |
0x7cee62 <+11>: xorl %eax, %eax | |
(lldb) source list | |
32 fn main() { | |
33 LOGGER | |
34 .configure(Some(DEFAULT_INSTANCE_ID.to_string())) | |
35 .expect("Failed to register logger"); | |
36 | |
37 if let Err(e) = register_signal_handlers() { | |
38 error!("Failed to register signal handlers: {}", e); | |
39 process::exit(i32::from(vmm::FC_EXIT_CODE_GENERIC_ERROR)); | |
40 } | |
41 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment