Skip to content

Problem shutting down the profiler process #1826

@AlyaGomaa

Description

@AlyaGomaa

first slips hangs

['Flow Alerts', 'Profiler', 'Network Discovery', 'SyncManager-16', 'Flow ML Detection', 'EvidenceHandler']                           
                                                                                                                                     
You can wait for them to finish, or you can press CTRL-C again to force-kill.                                                        
                                                                                                                                     
[Main]  Network Discovery       Stopped. 5 left.                                                                                     
[Main]  Flow ML Detection       Stopped. 4 left.                                                                                     
[Main]  Flow Alerts             Stopped. 3 left.            

then ctrl +c is pressed, we get:

^CProcess ProfilerWorker_Process_3:                                                                                                  
Process ProfilerWorker_Process_2:                                                                                                    
Process ProfilerWorker_Process_0:                                                                                                    
Process ProfilerWorker_Process_4:                                                                                                    
Process Profiler:                                                                                                                    
Process ProfilerWorker_Process_1:                                                                                                    
Traceback (most recent call last):                                                                                                   
  File "/usr/lib/python3.10/multiprocessing/process.py", line 317, in _bootstrap                                                     
    util._exit_function()                                                                                                            
  File "/usr/lib/python3.10/multiprocessing/util.py", line 360, in _exit_function                                                    
    _run_finalizers()                                                                                                                
  File "/usr/lib/python3.10/multiprocessing/util.py", line 300, in _run_finalizers                                                   
    finalizer()                                                                                                                      
  File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__                                                          
    res = self._callback(*self._args, **self._kwargs)                                                                                
  File "/usr/lib/python3.10/multiprocessing/queues.py", line 199, in _finalize_join                                                  
    thread.join()                                                                                                                    
  File "/usr/lib/python3.10/threading.py", line 1096, in join                                                                        
    self._wait_for_tstate_lock()                                                                                                     
  File "/usr/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock                                                       
    if lock.acquire(block, timeout):                                                                                                 
KeyboardInterrupt                                                                  

Metadata

Metadata

Assignees

Labels

BugA bug that needs to be fixed

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions