Skip to content

Instantly share code, notes, and snippets.

@ambroff
Created January 26, 2020 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambroff/83dc901ce0033935d021d103aa891227 to your computer and use it in GitHub Desktop.
Save ambroff/83dc901ce0033935d021d103aa891227 to your computer and use it in GitHub Desktop.
Serial log from Haiku when debugging #13927, branch https://github.com/ambroff/haiku/tree/tcp-kdl-fix.debug
KWA tcp_init_protocol(0xffffffff82957e10)
Creating new TCPEndpoint: 0xffffffff82ade400
KWA tcp_open(0xffffffff82ade400)
KWA tcp_get_domain(0xffffffff82ade400)
KWA tcp_getsockopt(0xffffffff82ade400, -1, 1073741833, value, length)
KWA tcp_bind(0xffffffff82ade400, 0xffffffff80592dc0)
EndpointManager::Bind(0xffffffff82ade400, 0xffffffff80592dc0)
EndpointManager::BindToEphemeral(0xffffffff82ade400)
EndpointManager::BindToEphemeral(0xffffffff82ade400) -> 0.0.0.0:40373
EndpointManager::_Bind(0xffffffff82ade400, 0xffffffff80592c60)
EndpointManager::_BindToEphemeral(0xffffffff82ade400, 0xffffffff80592dc0) bound port 40373 and is returning status No error
KWA tcp_connect(0xffffffff82ade400, 1)
PANIC: SetConnection(0xffffffff82ade400)
Welcome to Kernel Debugging Land...
Thread 480 "dirmngr" running on CPU 1
stack trace for thread 480 "dirmngr"
kernel stack: 0xffffffff8058e000 to 0xffffffff80593000
user stack: 0x00007fef79556000 to 0x00007fef7a556000
frame caller <image>:function + offset
0 ffffffff80592a18 (+ 24) ffffffff801567dc <kernel_x86_64> arch_debug_call_with_fault_handler + 0x16
1 ffffffff80592a30 (+ 80) ffffffff800b0218 <kernel_x86_64> debug_call_with_fault_handler + 0x88
2 ffffffff80592a80 (+ 96) ffffffff800b1ba1 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
3 ffffffff80592ae0 (+ 80) ffffffff800b1e9e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
4 ffffffff80592b30 (+ 240) ffffffff800b2207 <kernel_x86_64> panic + 0xb7
5 ffffffff80592c20 (+ 272) ffffffff8e9788d1 </boot/system/add-ons/kernel/network/protocols/tcp> EndpointManager::SetConnection(TCPEndpoint*, sockaddr const*, sockaddr const*, sockaddr const*) + 0x31
6 ffffffff80592d30 (+ 32) ffffffff8e97453c </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::_PrepareSendPath(sockaddr const*) + 0x3c
7 ffffffff80592d50 (+ 208) ffffffff8e9765ce </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::Connect(sockaddr const*) + 0x18e
8 ffffffff80592e20 (+ 80) ffffffff8010275b <kernel_x86_64> common_connect(int, sockaddr const*, unsigned int, bool) + 0x3b
9 ffffffff80592e70 (+ 176) ffffffff801039dc <kernel_x86_64> _user_connect + 0x9c
10 ffffffff80592f20 (+ 16) ffffffff80158334 <kernel_x86_64> x86_64_syscall_entry + 0xfe
user iframe at 0xffffffff80592f30 (end = 0xffffffff80592ff8)
rax 0xa0 rbx 0x1517d340c40 rcx 0x17a2ae2fdb4
rdx 0x20 rsi 0x7fef7a5557e0 rdi 0x4
rbp 0x7fef7a555760 r8 0xbab5a39306 r9 0x1517d340c40
r10 0x20 r11 0x3206 r12 0x4
r13 0x7fef7a5557e0 r14 0x20 r15 0x235a
rip 0x17a2ae2fdb4 rsp 0x7fef7a555748 rflags 0x3206
vector: 0x63, error code: 0x0
11 ffffffff80592f30 (+140668667963440) 0000017a2ae2fdb4 <libroot.so> _kern_connect + 0x0c
12 00007fef7a555760 (+ 48) 000000bab5a30eb8 <libassuan.so.0> _assuan_connect + 0x58
13 00007fef7a555790 (+ 832) 000000bab5a37e4e <libassuan.so.0> _assuan_log_control_channel (nearest) + 0x8ce
14 00007fef7a555ad0 (+ 96) 000000bab5a38a02 <libassuan.so.0> _assuan_sock_connect_byname + 0xc2
15 00007fef7a555b30 (+ 16) 0000016d7809b68d <dirmngr> dirmngr_use_tor + 0x3d
16 00007fef7a555b40 (+ 48) 0000016d7809b73b <dirmngr> dirmngr_use_tor (nearest) + 0xeb
17 00007fef7a555b70 (+ 416) 0000016d78098f17 <dirmngr> main + 0x6c7
18 00007fef7a555d10 (+ 48) 0000016d78099f61 <dirmngr> _start + 0x51
19 00007fef7a555d40 (+ 48) 00000180c8ddc585 </boot/system/runtime_loader@0x00000180c8dc8000> <unknown> + 0x14585
20 00007fef7a555d70 (+ 0) 00007fff82029260 <commpage> commpage_thread_exit + 0x00
kdebug> es
EndpointManager::SetConnection(0xffffffff82ade400)
EndpointManager::_LookupConnection(0xffffffff80592c80, 0xffffffff80592e80)
PANIC: Finished SetConnection(0xffffffff82ade400)
Welcome to Kernel Debugging Land...
Thread 480 "dirmngr" running on CPU 1
stack trace for thread 480 "dirmngr"
kernel stack: 0xffffffff8058e000 to 0xffffffff80593000
user stack: 0x00007fef79556000 to 0x00007fef7a556000
frame caller <image>:function + offset
0 ffffffff80592a18 (+ 24) ffffffff801567dc <kernel_x86_64> arch_debug_call_with_fault_handler + 0x16
1 ffffffff80592a30 (+ 80) ffffffff800b0218 <kernel_x86_64> debug_call_with_fault_handler + 0x88
2 ffffffff80592a80 (+ 96) ffffffff800b1ba1 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
3 ffffffff80592ae0 (+ 80) ffffffff800b1e9e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
4 ffffffff80592b30 (+ 240) ffffffff800b2207 <kernel_x86_64> panic + 0xb7
5 ffffffff80592c20 (+ 272) ffffffff8e978b0a </boot/system/add-ons/kernel/network/protocols/tcp> EndpointManager::SetConnection(TCPEndpoint*, sockaddr const*, sockaddr const*, sockaddr const*) + 0x26a
6 ffffffff80592d30 (+ 32) ffffffff8e97453c </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::_PrepareSendPath(sockaddr const*) + 0x3c
7 ffffffff80592d50 (+ 208) ffffffff8e9765ce </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::Connect(sockaddr const*) + 0x18e
8 ffffffff80592e20 (+ 80) ffffffff8010275b <kernel_x86_64> common_connect(int, sockaddr const*, unsigned int, bool) + 0x3b
9 ffffffff80592e70 (+ 176) ffffffff801039dc <kernel_x86_64> _user_connect + 0x9c
10 ffffffff80592f20 (+ 16) ffffffff80158334 <kernel_x86_64> x86_64_syscall_entry + 0xfe
user iframe at 0xffffffff80592f30 (end = 0xffffffff80592ff8)
rax 0xa0 rbx 0x1517d340c40 rcx 0x17a2ae2fdb4
rdx 0x20 rsi 0x7fef7a5557e0 rdi 0x4
rbp 0x7fef7a555760 r8 0xbab5a39306 r9 0x1517d340c40
r10 0x20 r11 0x3206 r12 0x4
r13 0x7fef7a5557e0 r14 0x20 r15 0x235a
rip 0x17a2ae2fdb4 rsp 0x7fef7a555748 rflags 0x3206
vector: 0x63, error code: 0x0
11 ffffffff80592f30 (+140668667963440) 0000017a2ae2fdb4 <libroot.so> _kern_connect + 0x0c
12 00007fef7a555760 (+ 48) 000000bab5a30eb8 <libassuan.so.0> _assuan_connect + 0x58
13 00007fef7a555790 (+ 832) 000000bab5a37e4e <libassuan.so.0> _assuan_log_control_channel (nearest) + 0x8ce
14 00007fef7a555ad0 (+ 96) 000000bab5a38a02 <libassuan.so.0> _assuan_sock_connect_byname + 0xc2
15 00007fef7a555b30 (+ 16) 0000016d7809b68d <dirmngr> dirmngr_use_tor + 0x3d
16 00007fef7a555b40 (+ 48) 0000016d7809b73b <dirmngr> dirmngr_use_tor (nearest) + 0xeb
17 00007fef7a555b70 (+ 416) 0000016d78098f17 <dirmngr> main + 0x6c7
18 00007fef7a555d10 (+ 48) 0000016d78099f61 <dirmngr> _start + 0x51
19 00007fef7a555d40 (+ 48) 00000180c8ddc585 </boot/system/runtime_loader@0x00000180c8dc8000> <unknown> + 0x14585
20 00007fef7a555d70 (+ 0) 00007fff82029260 <commpage> commpage_thread_exit + 0x00
kdebug> tcp_endpoints
-------- TCP Domain 0xffffffff928e01e0 ---------
address local peer recv-q send-q state
CONNECTION_HASH (1 entries)
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9050 0 0 closed
kdebug> es
add_tcp_header(): buffer 0xffffffff92d39e40, flags 0x2, seq 18531218, ack 0, up 0, win 65535
KWA tcp_receive_data(0xffffffff92d39e40)
Looking for: peer 127.0.0.1:40373, local 127.0.0.1:9050
EndpointManager::FindConnection(0xffffffff92d39f28, 0xffffffff92d39ea8)
EndpointManager::_LookupConnection(0xffffffff92d39f28, 0xffffffff92d39ea8)
EndpointManager::_LookupConnection(0xffffffff92d39f28, 0xffffffff81c5ec40)
EndpointManager::_LookupConnection(0xffffffff81c5ecd0, 0xffffffff81c5ec40)
TCP: no matching endpoint!
KWA finishing tcp_receive_data: endpoint=0x0000000000000000, segmentAction=3, buffer=0xffffffff92d39e40
tcp_receive_data(): EndpointManager::FindConnection() returned NULL for endpoint 0x0000000000000000, replying with RST
KWA TCP: Sending RST...
add_tcp_header(): buffer 0xffffffff92c622d0, flags 0x14, seq 0, ack 18531219, up 0, win 0
TCP: RST sent with status No error...
KWA tcp_receive_data(0xffffffff92c622d0)
Looking for: peer 127.0.0.1:9050, local 127.0.0.1:40373
EndpointManager::FindConnection(0xffffffff92c623b8, 0xffffffff92c62338)
EndpointManager::_LookupConnection(0xffffffff92c623b8, 0xffffffff92c62338)
TCP: Received packet corresponds to explicit endpoint 0xffffffff82ade400
KWA finishing tcp_receive_data: endpoint=0xffffffff82ade400, segmentAction=1, buffer=0xffffffff92c622d0
KWA tcp_connect(0xffffffff82ade400, 1)
PANIC: SetConnection(0xffffffff82ade400)
Welcome to Kernel Debugging Land...
Thread 480 "dirmngr" running on CPU 1
stack trace for thread 480 "dirmngr"
kernel stack: 0xffffffff8058e000 to 0xffffffff80593000
user stack: 0x00007fef79556000 to 0x00007fef7a556000
frame caller <image>:function + offset
0 ffffffff80592a18 (+ 24) ffffffff801567dc <kernel_x86_64> arch_debug_call_with_fault_handler + 0x16
1 ffffffff80592a30 (+ 80) ffffffff800b0218 <kernel_x86_64> debug_call_with_fault_handler + 0x88
2 ffffffff80592a80 (+ 96) ffffffff800b1ba1 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
3 ffffffff80592ae0 (+ 80) ffffffff800b1e9e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
4 ffffffff80592b30 (+ 240) ffffffff800b2207 <kernel_x86_64> panic + 0xb7
5 ffffffff80592c20 (+ 272) ffffffff8e9788d1 </boot/system/add-ons/kernel/network/protocols/tcp> EndpointManager::SetConnection(TCPEndpoint*, sockaddr const*, sockaddr const*, sockaddr const*) + 0x31
6 ffffffff80592d30 (+ 32) ffffffff8e97453c </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::_PrepareSendPath(sockaddr const*) + 0x3c
7 ffffffff80592d50 (+ 208) ffffffff8e9765ce </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::Connect(sockaddr const*) + 0x18e
8 ffffffff80592e20 (+ 80) ffffffff8010275b <kernel_x86_64> common_connect(int, sockaddr const*, unsigned int, bool) + 0x3b
9 ffffffff80592e70 (+ 176) ffffffff801039dc <kernel_x86_64> _user_connect + 0x9c
10 ffffffff80592f20 (+ 16) ffffffff80158334 <kernel_x86_64> x86_64_syscall_entry + 0xfe
user iframe at 0xffffffff80592f30 (end = 0xffffffff80592ff8)
rax 0xa0 rbx 0x1517d340c40 rcx 0x17a2ae2fdb4
rdx 0x20 rsi 0x7fef7a5557e0 rdi 0x4
rbp 0x7fef7a555760 r8 0xbab5a39306 r9 0x1517d340c40
r10 0x20 r11 0x3206 r12 0x4
r13 0x7fef7a5557e0 r14 0x20 r15 0x235a
rip 0x17a2ae2fdb4 rsp 0x7fef7a555748 rflags 0x3206
vector: 0x63, error code: 0x0
11 ffffffff80592f30 (+140668667963440) 0000017a2ae2fdb4 <libroot.so> _kern_connect + 0x0c
12 00007fef7a555760 (+ 48) 000000bab5a30eb8 <libassuan.so.0> _assuan_connect + 0x58
13 00007fef7a555790 (+ 832) 000000bab5a37f11 <libassuan.so.0> _assuan_log_control_channel (nearest) + 0x991
14 00007fef7a555ad0 (+ 96) 000000bab5a38a02 <libassuan.so.0> _assuan_sock_connect_byname + 0xc2
15 00007fef7a555b30 (+ 16) 0000016d7809b68d <dirmngr> dirmngr_use_tor + 0x3d
16 00007fef7a555b40 (+ 48) 0000016d7809b73b <dirmngr> dirmngr_use_tor (nearest) + 0xeb
17 00007fef7a555b70 (+ 416) 0000016d78098f17 <dirmngr> main + 0x6c7
18 00007fef7a555d10 (+ 48) 0000016d78099f61 <dirmngr> _start + 0x51
19 00007fef7a555d40 (+ 48) 00000180c8ddc585 </boot/system/runtime_loader@0x00000180c8dc8000> <unknown> + 0x14585
20 00007fef7a555d70 (+ 0) 00007fff82029260 <commpage> commpage_thread_exit + 0x00
kdebug> es
EndpointManager::SetConnection(0xffffffff82ade400)
EndpointManager::_LookupConnection(0xffffffff80592c80, 0xffffffff80592e80)
PANIC: Finished SetConnection(0xffffffff82ade400)
Welcome to Kernel Debugging Land...
Thread 480 "dirmngr" running on CPU 1
stack trace for thread 480 "dirmngr"
kernel stack: 0xffffffff8058e000 to 0xffffffff80593000
user stack: 0x00007fef79556000 to 0x00007fef7a556000
frame caller <image>:function + offset
0 ffffffff80592a18 (+ 24) ffffffff801567dc <kernel_x86_64> arch_debug_call_with_fault_handler + 0x16
1 ffffffff80592a30 (+ 80) ffffffff800b0218 <kernel_x86_64> debug_call_with_fault_handler + 0x88
2 ffffffff80592a80 (+ 96) ffffffff800b1ba1 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
3 ffffffff80592ae0 (+ 80) ffffffff800b1e9e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
4 ffffffff80592b30 (+ 240) ffffffff800b2207 <kernel_x86_64> panic + 0xb7
5 ffffffff80592c20 (+ 272) ffffffff8e978b0a </boot/system/add-ons/kernel/network/protocols/tcp> EndpointManager::SetConnection(TCPEndpoint*, sockaddr const*, sockaddr const*, sockaddr const*) + 0x26a
6 ffffffff80592d30 (+ 32) ffffffff8e97453c </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::_PrepareSendPath(sockaddr const*) + 0x3c
7 ffffffff80592d50 (+ 208) ffffffff8e9765ce </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::Connect(sockaddr const*) + 0x18e
8 ffffffff80592e20 (+ 80) ffffffff8010275b <kernel_x86_64> common_connect(int, sockaddr const*, unsigned int, bool) + 0x3b
9 ffffffff80592e70 (+ 176) ffffffff801039dc <kernel_x86_64> _user_connect + 0x9c
10 ffffffff80592f20 (+ 16) ffffffff80158334 <kernel_x86_64> x86_64_syscall_entry + 0xfe
user iframe at 0xffffffff80592f30 (end = 0xffffffff80592ff8)
rax 0xa0 rbx 0x1517d340c40 rcx 0x17a2ae2fdb4
rdx 0x20 rsi 0x7fef7a5557e0 rdi 0x4
rbp 0x7fef7a555760 r8 0xbab5a39306 r9 0x1517d340c40
r10 0x20 r11 0x3206 r12 0x4
r13 0x7fef7a5557e0 r14 0x20 r15 0x235a
rip 0x17a2ae2fdb4 rsp 0x7fef7a555748 rflags 0x3206
vector: 0x63, error code: 0x0
11 ffffffff80592f30 (+140668667963440) 0000017a2ae2fdb4 <libroot.so> _kern_connect + 0x0c
12 00007fef7a555760 (+ 48) 000000bab5a30eb8 <libassuan.so.0> _assuan_connect + 0x58
13 00007fef7a555790 (+ 832) 000000bab5a37f11 <libassuan.so.0> _assuan_log_control_channel (nearest) + 0x991
14 00007fef7a555ad0 (+ 96) 000000bab5a38a02 <libassuan.so.0> _assuan_sock_connect_byname + 0xc2
15 00007fef7a555b30 (+ 16) 0000016d7809b68d <dirmngr> dirmngr_use_tor + 0x3d
16 00007fef7a555b40 (+ 48) 0000016d7809b73b <dirmngr> dirmngr_use_tor (nearest) + 0xeb
17 00007fef7a555b70 (+ 416) 0000016d78098f17 <dirmngr> main + 0x6c7
18 00007fef7a555d10 (+ 48) 0000016d78099f61 <dirmngr> _start + 0x51
19 00007fef7a555d40 (+ 48) 00000180c8ddc585 </boot/system/runtime_loader@0x00000180c8dc8000> <unknown> + 0x14585
20 00007fef7a555d70 (+ 0) 00007fff82029260 <commpage> commpage_thread_exit + 0x00
kdebug> tcp_endpoints
-------- TCP Domain 0xffffffff928e01e0 ---------
address local peer recv-q send-q state
CONNECTION_HASH (2 entries)
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
...
0xffffffff82ade400 127.0.0.1:40373 127.0.0.1:9150 0 0 closed
q
kdebug> es
add_tcp_header(): buffer 0xffffffff92c622d0, flags 0x2, seq 20779735, ack 0, up 0, win 65535
KWA tcp_close(0xffffffff82ade400)
KWA tcp_receive_data(0xffffffff92c622d0)
KWA tcp_free(0xffffffff82ade400)
Looking for: peer 127.0.0.1:40373, local 127.0.0.1:9150
KWA tcp_uninit_protocol(0xffffffff82ade400)
EndpointManager::FindConnection(0xffffffff92c623b8, 0xffffffff92c62338)
Deleting TCPEndpoint: 0xffffffff82ade400
PANIC: Destroying TCPEndpoint 0xffffffff82ade400
Welcome to Kernel Debugging Land...
Thread 480 "dirmngr" running on CPU 1
stack trace for thread 480 "dirmngr"
kernel stack: 0xffffffff8058e000 to 0xffffffff80593000
user stack: 0x00007fef79556000 to 0x00007fef7a556000
frame caller <image>:function + offset
0 ffffffff80592ba8 (+ 24) ffffffff801567dc <kernel_x86_64> arch_debug_call_with_fault_handler + 0x16
1 ffffffff80592bc0 (+ 80) ffffffff800b0218 <kernel_x86_64> debug_call_with_fault_handler + 0x88
2 ffffffff80592c10 (+ 96) ffffffff800b1ba1 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
3 ffffffff80592c70 (+ 80) ffffffff800b1e9e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
4 ffffffff80592cc0 (+ 240) ffffffff800b2207 <kernel_x86_64> panic + 0xb7
5 ffffffff80592db0 (+ 64) ffffffff8e972d99 </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::~TCPEndpoint() + 0x29
6 ffffffff80592df0 (+ 32) ffffffff8e970c0b </boot/system/add-ons/kernel/network/protocols/tcp> tcp_uninit_protocol(net_protocol*) + 0x3b
7 ffffffff80592e10 (+ 48) ffffffff8e71eb1a </boot/system/add-ons/kernel/network/stack> put_domain_protocols(net_socket*) + 0x5a
8 ffffffff80592e40 (+ 64) ffffffff8e71a5a6 </boot/system/add-ons/kernel/network/stack> net_socket_private::~net_socket_private() + 0x1a6
9 ffffffff80592e80 (+ 32) ffffffff8e71a701 </boot/system/add-ons/kernel/network/stack> net_socket_private::~net_socket_private() + 0x11
10 ffffffff80592ea0 (+ 16) ffffffff8e71ff2e </boot/system/add-ons/kernel/network/stack> stack_interface_free(net_socket*) + 0x0e
11 ffffffff80592eb0 (+ 16) ffffffff80102502 <kernel_x86_64> socket_free(file_descriptor*) + 0x12
12 ffffffff80592ec0 (+ 32) ffffffff800f8984 <kernel_x86_64> put_fd + 0x84
13 ffffffff80592ee0 (+ 64) ffffffff800f8c53 <kernel_x86_64> close_fd_index + 0xc3
14 ffffffff80592f20 (+ 16) ffffffff80158334 <kernel_x86_64> x86_64_syscall_entry + 0xfe
user iframe at 0xffffffff80592f30 (end = 0xffffffff80592ff8)
rax 0x97 rbx 0xffffffff rcx 0x17a2ae2fd21
rdx 0x0 rsi 0x4 rdi 0x4
rbp 0x7fef7a555ae0 r8 0xbab5a39306 r9 0x1517d340c40
r10 0x20 r11 0x3202 r12 0x80007020
r13 0x0 r14 0x1517d340c40 r15 0x0
rip 0x17a2ae2fd21 rsp 0x7fef7a555ac8 rflags 0x3202
vector: 0x63, error code: 0x0
15 ffffffff80592f30 (+140668667964336) 0000017a2ae2fd21 <libroot.so> _kern_close + 0x09
16 00007fef7a555ae0 (+ 80) 000000bab5a38a4c <libassuan.so.0> _assuan_sock_connect_byname + 0x10c
17 00007fef7a555b30 (+ 16) 0000016d7809b68d <dirmngr> dirmngr_use_tor + 0x3d
18 00007fef7a555b40 (+ 48) 0000016d7809b73b <dirmngr> dirmngr_use_tor (nearest) + 0xeb
19 00007fef7a555b70 (+ 416) 0000016d78098f17 <dirmngr> main + 0x6c7
20 00007fef7a555d10 (+ 48) 0000016d78099f61 <dirmngr> _start + 0x51
21 00007fef7a555d40 (+ 48) 00000180c8ddc585 </boot/system/runtime_loader@0x00000180c8dc8000> <unknown> + 0x14585
22 00007fef7a555d70 (+ 0) 00007fff82029260 <commpage> commpage_thread_exit + 0x00
kdebug> es
EndpointManager::_LookupConnection(0xffffffff92c623b8, 0xffffffff92c62338)
EndpointManager::Unbind(0xffffffff82ade400)
EndpointManager::_LookupConnection(0xffffffff92c623b8, 0xffffffff81c5ec40)
EndpointManager::_LookupConnection(0xffffffff81c5ecd0, 0xffffffff81c5ec40)
TCP: no matching endpoint!
KWA finishing tcp_receive_data: endpoint=0x0000000000000000, segmentAction=3, buffer=0xffffffff92c622d0
PANIC: TCPEndpoint 0xffffffff928e01e0 should be removed from endpoint manager
Welcome to Kernel Debugging Land...
Thread 480 "dirmngr" running on CPU 1
stack trace for thread 480 "dirmngr"
kernel stack: 0xffffffff8058e000 to 0xffffffff80593000
user stack: 0x00007fef79556000 to 0x00007fef7a556000
frame caller <image>:function + offset
0 ffffffff80592b28 (+ 24) ffffffff801567dc <kernel_x86_64> arch_debug_call_with_fault_handler + 0x16
1 ffffffff80592b40 (+ 80) ffffffff800b0218 <kernel_x86_64> debug_call_with_fault_handler + 0x88
2 ffffffff80592b90 (+ 96) ffffffff800b1ba1 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
3 ffffffff80592bf0 (+ 80) ffffffff800b1e9e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
4 ffffffff80592c40 (+ 240) ffffffff800b2207 <kernel_x86_64> panic + 0xb7
5 ffffffff80592d30 (+ 128) ffffffff8e97a2d2 </boot/system/add-ons/kernel/network/protocols/tcp> EndpointManager::Unbind(TCPEndpoint*) + 0x432
6 ffffffff80592db0 (+ 64) ffffffff8e972eb2 </boot/system/add-ons/kernel/network/protocols/tcp> TCPEndpoint::~TCPEndpoint() + 0x142
7 ffffffff80592df0 (+ 32) ffffffff8e970c0b </boot/system/add-ons/kernel/network/protocols/tcp> tcp_uninit_protocol(net_protocol*) + 0x3b
8 ffffffff80592e10 (+ 48) ffffffff8e71eb1a </boot/system/add-ons/kernel/network/stack> put_domain_protocols(net_socket*) + 0x5a
9 ffffffff80592e40 (+ 64) ffffffff8e71a5a6 </boot/system/add-ons/kernel/network/stack> net_socket_private::~net_socket_private() + 0x1a6
10 ffffffff80592e80 (+ 32) ffffffff8e71a701 </boot/system/add-ons/kernel/network/stack> net_socket_private::~net_socket_private() + 0x11
11 ffffffff80592ea0 (+ 16) ffffffff8e71ff2e </boot/system/add-ons/kernel/network/stack> stack_interface_free(net_socket*) + 0x0e
12 ffffffff80592eb0 (+ 16) ffffffff80102502 <kernel_x86_64> socket_free(file_descriptor*) + 0x12
13 ffffffff80592ec0 (+ 32) ffffffff800f8984 <kernel_x86_64> put_fd + 0x84
14 ffffffff80592ee0 (+ 64) ffffffff800f8c53 <kernel_x86_64> close_fd_index + 0xc3
15 ffffffff80592f20 (+ 16) ffffffff80158334 <kernel_x86_64> x86_64_syscall_entry + 0xfe
user iframe at 0xffffffff80592f30 (end = 0xffffffff80592ff8)
rax 0x97 rbx 0xffffffff rcx 0x17a2ae2fd21
rdx 0x0 rsi 0x4 rdi 0x4
rbp 0x7fef7a555ae0 r8 0xbab5a39306 r9 0x1517d340c40
r10 0x20 r11 0x3202 r12 0x80007020
r13 0x0 r14 0x1517d340c40 r15 0x0
rip 0x17a2ae2fd21 rsp 0x7fef7a555ac8 rflags 0x3202
vector: 0x63, error code: 0x0
16 ffffffff80592f30 (+140668667964336) 0000017a2ae2fd21 <libroot.so> _kern_close + 0x09
17 00007fef7a555ae0 (+ 80) 000000bab5a38a4c <libassuan.so.0> _assuan_sock_connect_byname + 0x10c
18 00007fef7a555b30 (+ 16) 0000016d7809b68d <dirmngr> dirmngr_use_tor + 0x3d
19 00007fef7a555b40 (+ 48) 0000016d7809b73b <dirmngr> dirmngr_use_tor (nearest) + 0xeb
20 00007fef7a555b70 (+ 416) 0000016d78098f17 <dirmngr> main + 0x6c7
21 00007fef7a555d10 (+ 48) 0000016d78099f61 <dirmngr> _start + 0x51
22 00007fef7a555d40 (+ 48) 00000180c8ddc585 </boot/system/runtime_loader@0x00000180c8dc8000> <unknown> + 0x14585
23 00007fef7a555d70 (+ 0) 00007fff82029260 <commpage> commpage_thread_exit + 0x00
kdebug> es
tcp_receive_data(): EndpointManager::FindConnection() returned NULL for endpoint 0x0000000000000000, replying with RST
KWA TCP: Sending RST...
add_tcp_header(): buffer 0xffffffff92d6a188, flags 0x14, seq 0, ack 20779736, up 0, win 0
TCP: RST sent with status No error...
KWA tcp_receive_data(0xffffffff92d6a188)
Looking for: peer 127.0.0.1:9150, local 127.0.0.1:40373
EndpointManager::FindConnection(0xffffffff92d6a270, 0xffffffff92d6a1f0)
EndpointManager::_LookupConnection(0xffffffff92d6a270, 0xffffffff92d6a1f0)
PANIC: Unexpected exception "General Protection Exception" occurred in kernel mode! Error code: 0x0
Welcome to Kernel Debugging Land...
Thread 217 "loop consumer" running on CPU 0
stack trace for thread 217 "loop consumer"
kernel stack: 0xffffffff81c5a000 to 0xffffffff81c5f000
frame caller <image>:function + offset
0 ffffffff81c5e608 (+ 24) ffffffff801567dc <kernel_x86_64> arch_debug_call_with_fault_handler + 0x16
1 ffffffff81c5e620 (+ 80) ffffffff800b0218 <kernel_x86_64> debug_call_with_fault_handler + 0x88
2 ffffffff81c5e670 (+ 96) ffffffff800b1ba1 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0xf1
3 ffffffff81c5e6d0 (+ 80) ffffffff800b1e9e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
4 ffffffff81c5e720 (+ 240) ffffffff800b2207 <kernel_x86_64> panic + 0xb7
5 ffffffff81c5e810 (+ 224) ffffffff80160f98 <kernel_x86_64> x86_unexpected_exception + 0x168
6 ffffffff81c5e8f0 (+ 536) ffffffff80158082 <kernel_x86_64> int_bottom + 0x56
kernel iframe at 0xffffffff81c5eb08 (end = 0xffffffff81c5ebd0)
rax 0xdeadbeefdeadbeef rbx 0xffffffff82ade400 rcx 0x8
rdx 0xffffffff82ade400 rsi 0xffffffff81c5ebf0 rdi 0xdeadbeefdeadbf0f
rbp 0xffffffff81c5ebe0 r8 0xffffffff801f9860 r9 0x5f
r10 0xf r11 0xf r12 0xffffffff81c5ebf0
r13 0xffffffff81c5ebf0 r14 0x1 r15 0xffffffff928e01f0
rip 0xffffffff8e978446 rsp 0xffffffff81c5ebd0 rflags 0x13286
vector: 0xd, error code: 0x0
7 ffffffff81c5eb08 (+ 216) ffffffff8e978446 </boot/system/add-ons/kernel/network/protocols/tcp> ConnectionHashDefinition::Compare const(std::pair<sockaddr const*, sockaddr const*> const&, TCPEndpoint*) + 0x16
8 ffffffff81c5ebe0 (+ 64) ffffffff8e978871 </boot/system/add-ons/kernel/network/protocols/tcp> EndpointManager::_LookupConnection(sockaddr const*, sockaddr const*) + 0x81
9 ffffffff81c5ec20 (+ 352) ffffffff8e978e10 </boot/system/add-ons/kernel/network/protocols/tcp> EndpointManager::FindConnection(sockaddr*, sockaddr*) + 0x60
10 ffffffff81c5ed80 (+ 240) ffffffff8e971723 </boot/system/add-ons/kernel/network/protocols/tcp> tcp_receive_data(net_buffer*) + 0x333
11 ffffffff81c5ee70 (+ 208) ffffffff81c4a327 </boot/system/add-ons/kernel/network/protocols/ipv4> ipv4_receive_data(net_buffer*) + 0x5e7
12 ffffffff81c5ef40 (+ 112) ffffffff8e70f152 </boot/system/add-ons/kernel/network/stack> device_consumer_thread(void*) + 0x82
13 ffffffff81c5efb0 (+ 32) ffffffff8008d1f7 <kernel_x86_64> common_thread_entry(void*) + 0x37
14 ffffffff81c5efd0 (+2117734448) ffffffff81c5efe0
kdebug> qemu-system-x86_64: terminating on signal 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment