Victor M. Fernandez-Castro

Results 27 comments of Victor M. Fernandez-Castro

## Reproducing the race condition ### Steps - Connect and disconnect lots of agents simultaneously. ### Logs I added a couple of debugging logs to trace this issue: ``` 2022/03/21...

|Address|Binary|Offset|Function| |---|---|---|---| |`NULL`|libc-2.17.so|0x7759c|`fseek()`| The most common call from Remoted to `fseek()` is at `MergeAppendFile()`, but this function checks that `fp` is not null before calling `fseek()`. So, either the call...

@wazuh/watchdogs have checked the wazuh-remoted code and could not find any call to `fseek()` that might pass it a null pointer. Thus, we block this issue until we get a...

We stop investigating this issue due to the lack of data.

We have been reported another crash in the same version, although the instruction pointer is different: |Version|Platform|IP|Function|Line of code| |---|---|---|---|---| |4.2.7|CentOS 7|0x485660|`checkBinaryFile()`|[file_op.c:967](https://github.com/wazuh/wazuh/blob/v4.2.7/src/shared/file_op.c#L967)| ## Context (assembly) ```sh yum install -y wazuh-manager-4.2.7-1...

@mauromalara This is likely related to #14109. Please try to upgrade to 4.4.0 and check if this issue persists. Thanks!

@rauldpm I've tested the install/uninstall procedure, and I got no errors: ## System macOS Sonoma 14.3.1 (23D60) @ arm64 ## Procedure ### Install ```shell installer -pkg wazuh-agent-4.8.0-1.arm64.pkg -target / ```...

According to this post: - [What does launchctl unload actually do?](https://apple.stackexchange.com/questions/332931/what-does-launchctl-unload-actually-do) `launchctl stop` tries to stop the daemons and their subprocesses, so it's similar to `wazuh-control stop`. It this is...

@rauldpm I cannot reproduce this issue. ![image](https://github.com/wazuh/wazuh-packages/assets/10536251/2fca15ba-8f90-4911-a980-9004adaf810b) ![image](https://github.com/wazuh/wazuh-packages/assets/10536251/932926be-d114-4776-beef-97c515963f7d) This might be a performance/timing issue.

@rauldpm We will check it once again, but I suspect it's a performance issue. The "Start" action of the UI performs these actions: 1. Start the agent. Show a modal...