Commit Graph

26 Commits

Author SHA1 Message Date
henrik karlsson
f1612195dd [UBA]
* Fixed so redirected stdout/err is not writing to screen

[CL 30069694 by henrik karlsson in ue5-main branch]
2023-12-03 03:26:57 -05:00
henrik karlsson
348667e01f [UBA]
* Fixed so visualizer is showing correct ping numbers when showing linux builds

[CL 30069648 by henrik karlsson in ue5-main branch]
2023-12-03 02:50:01 -05:00
henrik karlsson
0103f42cfd [Uba]
* Fixed so opened written files that were never explicitly closed is closed in exit if they have a close id

[CL 30069647 by henrik karlsson in ue5-main branch]
2023-12-03 02:49:56 -05:00
henrik karlsson
df2fb33a35 [UBA]
* Fixed Build-StaticAnalysis.bat not working after move

[CL 30069513 by henrik karlsson in ue5-main branch]
2023-12-03 00:06:56 -05:00
henrik karlsson
6f2d6a5509 [UBA]
* Fixed possible memory alignment issue for instances allocated with placement new

[CL 30069499 by henrik karlsson in ue5-main branch]
2023-12-03 00:05:26 -05:00
henrik karlsson
bd2dcb7504 [Uba]
* Implemented simple Http get using tcp directly in order to work on all platforms and also be lightweight
* Changed so aws queries are using above implementation and enabled aws checks on linux
* Added UbaCli "-checkaws" option to be able to test this functionality

[CL 30069487 by henrik karlsson in ue5-main branch]
2023-12-03 00:04:26 -05:00
henrik karlsson
fcdc5def6d [UBA]
* Fixed macos compile error

[CL 30047638 by henrik karlsson in ue5-main branch]
2023-12-01 13:53:02 -05:00
henrik karlsson
3cc3bd87d3 [UBA]
* Minor optimization around super hack to resolve dump_syms hang on linux target when dump_syms is compiled with jemalloc

[CL 30044700 by henrik karlsson in ue5-main branch]
2023-12-01 12:26:41 -05:00
henrik karlsson
e7a09fa8a5 [Uba]
* Bumped backtrace entry count from 10 to 16 on windows for asserts

[CL 30044656 by henrik karlsson in ue5-main branch]
2023-12-01 12:25:19 -05:00
henrik karlsson
ed41c8e875 [Uba]
* Enabled socket reuse on linux because it seems farm turns around faster than sockets gets freed by the os

[CL 30033379 by henrik karlsson in ue5-main branch]
2023-12-01 02:59:24 -05:00
henrik karlsson
f09ebe5a60 [Uba]
* Fixed link deadlock on build farm because we have linked some of our linux tools with jemalloc which does a readlink call during initialization. Since we have detoured readlink we call dlsym first time readlink is called. And dlsym makes a calloc call when resolving the next/true function causing jemalloc to initialize. Solution was to just always return "not found" for /etc/je_malloc.conf"

[CL 30033243 by henrik karlsson in ue5-main branch]
2023-12-01 02:11:20 -05:00
henrik karlsson
b2a941bc03 [Uba]
* Added missing posix_spawnattr_setgroup call

[CL 30032388 by henrik karlsson in ue5-main branch]
2023-11-30 22:05:19 -05:00
henrik karlsson
bcfa7e60a6 [Uba] * Added code to handle leaked shm_open. This is made by creating "lock files" which only purpose is to keep track of which shm_open that is used and not. When a shm_open is created a lock-file is also created and locked. When process dies, all files gets unlocked. When a new session starts we can traverse the lock-files and see which ones are not locked, those belonged to a process that does not exist anymore, and we can call shm_unlink on those and delete them. This change solves the ever leaking shm_open entries causing machine to eventually go oom
[CL 30032365 by henrik karlsson in ue5-main branch]
2023-11-30 22:03:49 -05:00
henrik karlsson
7262ce9635 [Uba]
* Fixed usage of wrong define name
* Renamed options in batchfiles using old options
* Removed old code not used
* Added one more test to the list of "all tests"

[CL 30019208 by henrik karlsson in ue5-main branch]
2023-11-30 13:11:39 -05:00
henrik karlsson
c155e57afc [Uba]
* Added unit test for inverted connect path (client listen and server connects)
* Changed so AddClient waits for connect to succeed/fail before returning

[CL 30018826 by henrik karlsson in ue5-main branch]
2023-11-30 12:58:02 -05:00
henrik karlsson
8a4c121c61 [Uba]
* Fixed so DeleteAllCas is running in parallel to speed up cleanups since we often have 100k+ files
* Added -resetstore as cmd line option to UbaAgent to be able to wipe all cas storage

[CL 30010512 by henrik karlsson in ue5-main branch]
2023-11-30 03:08:02 -05:00
henrik karlsson
7b115c8959 [Uba] - Added comment on Flush(false) for exit message on posix .
[CL 30010227 by henrik karlsson in ue5-main branch]
2023-11-30 02:37:37 -05:00
henrik karlsson
736434375e [Uba]
* Fixed so child processes wait for acknowledgement that ExitMessage has been handled on session side. This to prevent race where parent process might move on after waiting for child and then read data produced by the child (and the data is written in the Exit message by the session process)

[CL 30010210 by henrik karlsson in ue5-main branch]
2023-11-30 02:33:02 -05:00
henrik karlsson
098a329555 [UBA]
* Fixed macos compile errors

[CL 30009420 by henrik karlsson in ue5-main branch]
2023-11-29 23:20:56 -05:00
henrik karlsson
b048c37f4a [Uba]
* Improved assert descriptions

[CL 30005460 by henrik karlsson in ue5-main branch]
2023-11-29 20:09:36 -05:00
henrik karlsson
1081df3b53 [Uba]
* Changed critical section to use pthread mutex

[CL 30005386 by henrik karlsson in ue5-main branch]
2023-11-29 20:08:36 -05:00
henrik karlsson
0ac760efcb [Uba]
* Fixed test linux compile errors

[CL 30005240 by henrik karlsson in ue5-main branch]
2023-11-29 20:06:06 -05:00
henrik karlsson
4299735b91 [Uba]
* Added so FileAccessor are using temp file for write on non-windows (since DeleteOnClose does not exist)
* Reverted reuse of filemappings (shm_open).. it caused problems when running agent on same machine

[CL 30004228 by henrik karlsson in ue5-main branch]
2023-11-29 19:41:28 -05:00
henrik karlsson
c87576aed0 [Uba]
* Fixed path in Deploy-Windows.bat

[CL 30003750 by henrik karlsson in ue5-main branch]
2023-11-29 19:20:52 -05:00
henrik karlsson
c48857e0bf [Uba]
* Fixed GenerateSolution.bat

[CL 30003577 by henrik karlsson in ue5-main branch]
2023-11-29 19:14:53 -05:00