Skip to content

[pull] master from kevoreilly:master#370

Merged
pull[bot] merged 2 commits intothreatcode:masterfrom
kevoreilly:master
Jan 5, 2026
Merged

[pull] master from kevoreilly:master#370
pull[bot] merged 2 commits intothreatcode:masterfrom
kevoreilly:master

Conversation

@pull
Copy link

@pull pull bot commented Jan 5, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

doomedraven and others added 2 commits January 5, 2026 12:27
* Add stuck VM monitoring and killing to scheduler

The scheduler now monitors running analysis tasks and kills virtual machines if a task exceeds its allowed runtime (timeout + critical + 100s). Added tests to verify that stuck VMs are killed and healthy VMs are not affected.

* Update test_scheduler_monitoring.py

* fix

* Update test_scheduler_monitoring.py

* Update test_scheduler_monitoring.py

* sync

* Update scheduler.py

* Update test_scheduler_monitoring.py

* Update test_scheduler_monitoring.py

* Update test_scheduler_monitoring.py

* Update test_scheduler_monitoring.py

* Improve error handling and timeout management

Refactor error handling and timeout logic in guest.py.

* Add guide for debugging stuck virtual machines

This guide provides a systematic approach to diagnosing and resolving issues where the analysis process hangs indefinitely, detailing problem triage, immediate diagnostics, debugging steps for Python and QEMU, root cause analysis, and resolution strategies.

* Add issues documentation and remove scheduler monitoring test

Introduced a new 'Issues' section in the documentation with an initial page for debugging VM issues. Updated the main documentation index to include this section. Removed the test_scheduler_monitoring.py test file.

* Update guest.py

* Update config references for timeouts in guest handling

Replaced references to cfg.cuckoo.timeouts with cfg.timeouts in both documentation and GuestManager code to reflect updated configuration structure.
* Bugfix: Always initialize Package.args in Linux Analyzer Package

Fixes a bug introduced in d9be043 that prevents Package.args from being set if a string was not passed into the object during initialization. Package.args will now always be initialized with an empty list if no arguments are provided. This behavior aligns with the Windows analyzer.

* Adds some basic Linux analyzer unit tests

* Use poetry to run Linux analyzer unit tests in CI

* Make analyzer.linux.lib.core.packages.Package.__init__._args more concise

* Remove placeholder test

* Increase pytest verbosity for Linux analyzer tests

* Add additional test cases for Linux Analyzer package arguments

* Remove unused import in Linux analyzer

* Fix Linux analyzer test case

* Fix Linux analyzer skip logic

* Add exception handling to Process.get_parent_pid in Linux analyzer

* Fix test_proc_dead_states test case
@pull pull bot locked and limited conversation to collaborators Jan 5, 2026
@pull pull bot added the ⤵️ pull label Jan 5, 2026
@pull pull bot merged commit ca58aaa into threatcode:master Jan 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants