Skip to content

Commit 8205717

Browse files
committed
log threads with no uuid
1 parent 67a3432 commit 8205717

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/metasploit/framework/spec/threads/suite.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def self.configure!
100100

101101
# unmanaged thread, such as the main VM thread
102102
unless thread_uuid
103+
error_lines << "Thread has no uuid, thread name #{thread_name}"
104+
error_lines << "The thread backtrace was:\n#{thread.backtrace ? thread.backtrace.join("\n") : 'nil (no backtrace)'}\n"
103105
next
104106
end
105107

spec/lib/msf/ui/console/command_dispatcher/session_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
RSpec.shared_examples_for 'session command dispatcher' do
22
include_context 'Msf::Simple::Framework'
3-
include_context 'Msf::Framework#threads cleaner', verify_cleanup_required: false
3+
# include_context 'Msf::Framework#threads cleaner', verify_cleanup_required: false
44

55
describe '#client' do
66
subject { command_dispatcher.client }

0 commit comments

Comments
 (0)