Closed juliusfriedman closed 3 years ago
I am just about to kick out so I will msg in b4 I leave
just about ready, if it's okay with you. ty again.
Oddly enough lldb / sos crashes when I try to attach and debug a running process:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #94, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #95, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #96, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #97, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #98, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #99, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #100, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #101, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #102, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #103, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #104, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #105, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #106, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
thread #107, name = 'MyProgram', stop reason = signal SIGSTOP
frame #0: 0x00007f069ce0d9f3 libpthread.so.0`__pthread_cond_wait + 579
libpthread.so.0`__pthread_cond_wait:
-> 0x7f069ce0d9f3 <+579>: cmpq $-0x1000, %rax ; imm = 0xF000
0x7f069ce0d9f9 <+585>: movq 0x30(%rsp), %r8
0x7f069ce0d9fe <+590>: ja 0x7f069ce0db30 ; <+896>
0x7f069ce0da04 <+596>: movl %r9d, %edi
Executable module set to "/mnt/publish/MyProgram".
Architecture set to: x86_64-pc-linux.
(lldb) plugin load libsosplugin.so
(lldb) clrstack
Stack dump:
0. HandleCommand(command = "clrstack")
Segmentation fault
What prompted this was the following command running for close to an hour without completion on a 96 core machine.
AzureUser@machine-t:~$ sudo /home/AzureUser/.dotnet/tools/dotnet-dump collect --process-id 8892
Writing full to /home/AzureUser/core_20200720_111445
The virtual memory use of said process was 74.153g
at the time I attempted attaching
Roughly how big is was the coredump file that crashed lldb and took so long to collect? The tools (both lldb and dotnet-dump) may need some work to handle 74GB core dumps. Not sure I have access to a 96 core Linux machine to repro this.
Haven't seen any followup on this. We can reopen if this is still an issue, just let us know.
Run the same command again later...
This occurs with both
dotnet-trace
anddotnet-dump
running on: