Daniel Bretón Suárez
12/01/2022, 11:48 AMhttp_client
, somehow like this:
osquery::http::Client client;
client.setOptions(getOptions()); /* Local function to fill options */
<http://client.post|client.post>(request, params); /* crashes on Windows */
Works fine on Ubuntu, but it crashes on Windows.
https://github.com/osquery/osquery/blob/a5bc1a33f2ad5eecb1a814d472c00a30c410d394/osquery/remote/http_client.cpp#L119
There's also a comment that says there is a leak, Is there any way to avoid this?boost::asio::async_connect
. It causes a segmentation faultStefano Bonicatti
12/01/2022, 1:54 PMasync_resolve
functionDaniel Bretón Suárez
12/02/2022, 12:53 PMPS C:\projects\osquery\build> ls .\external\extension_devo_wevent_logger\RelWithDebInfo\
Directory: C:\projects\osquery\build\external\extension_devo_wevent_logger\RelWithDebInfo
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 12/2/2022 10:49 AM 10084352 devo_wevent_logger.ext.exe
-a---- 12/2/2022 10:49 AM 116379648 devo_wevent_logger.ext.pdb
But I cannot open them with gdb
is there a way to avoid using Microsoft Visual Studio
?Stefano Bonicatti
12/02/2022, 12:56 PMDaniel Bretón Suárez
12/02/2022, 12:57 PMtarget_executor.hpp:629
and the pointer target_fns_
is not initialized