Windows 2012r2 had a system patch erlang seems to have broken

Erlang has issues after patching:

Tried reinstall both 32 and 64 bit. but have issues:C:\Program Files (x86)\Erlang OTP\bin>ct_run

Eshell V13.2.2.8 (abort with ^G)
(ct@crirraadvt2e0)1>
Common Test v1.24.0.3 starting (cwd is c:/Program Files (x86)/Erlang OTP/bin)

(ct@crirraadvt2e0)1> ct_run -dir c:/Program Files (x86)/Erlang OTP/bin

(ct@crirraadvt2e0)1> Test run crashed! This could be an internal error - please report!

{could_not_start_process,ct_logs,
{function_clause,
[{lists,foldr_1,
[#Fun<ct_logs.17.55508005>,
{,},
{‘EXIT’,
{{badmatch,[“exe”,“run”,“ct”]},
[{ct_logs,‘-sort_all_runs/1-fun-0-’,2,
[{file,“ct_logs.erl”},{line,2064}]},
{lists,fsplit_2,6,[{file,“lists.erl”},{line,2712}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1959}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}}],
[{file,“lists.erl”},{line,1371}]},
{ct_logs,make_all_runs_index,1,[{file,“ct_logs.erl”},{line,1984}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}}

(ct@crirraadvt2e0)1> =ERROR REPORT==== 14-Apr-2024::15:12:22.597000 ===
Error in process <0.96.0> on node ct@crirraadvt2e0 with exit value:
{function_clause,
[{lists,foldr_1,
[#Fun<ct_logs.17.55508005>,
{,},
{‘EXIT’,
{{badmatch,[“exe”,“run”,“ct”]},
[{ct_logs,‘-sort_all_runs/1-fun-0-’,2,
[{file,“ct_logs.erl”},{line,2064}]},
{lists,fsplit_2,6,[{file,“lists.erl”},{line,2712}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1959}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}}],
[{file,“lists.erl”},{line,1371}]},
{ct_logs,make_all_runs_index,1,[{file,“ct_logs.erl”},{line,1984}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}

(ct@crirraadvt2e0)1> =ERROR REPORT==== 14-Apr-2024::15:12:22.597000 ===
** Generic server test_server_io terminating
** Last message in was {‘EXIT’,<0.96.0>,
{function_clause,
[{lists,foldr_1,
[#Fun<ct_logs.17.55508005>,
{,},
{‘EXIT’,
{{badmatch,[“exe”,“run”,“ct”]},
[{ct_logs,‘-sort_all_runs/1-fun-0-’,2,
[{file,“ct_logs.erl”},{line,2064}]},
{lists,fsplit_2,6,
[{file,“lists.erl”},{line,2712}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1959}]},
{ct_logs,logger,3,
[{file,“ct_logs.erl”},{line,750}]}]}}],
[{file,“lists.erl”},{line,1371}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1984}]},
{ct_logs,logger,3,
[{file,“ct_logs.erl”},{line,750}]}]}}
** When Server state == {st,{1,{unexpected_io,<0.99.0>,nil,nil}},
[unexpected_io],
<0.98.0>,
{0,nil},
{0,nil},
{0,nil},
“\n\n”,“”,,started,
,undefined,}
** Reason for termination ==
** {function_clause,
[{lists,foldr_1,
[#Fun<ct_logs.17.55508005>,
{,},
{‘EXIT’,
{{badmatch,[“exe”,“run”,“ct”]},
[{ct_logs,‘-sort_all_runs/1-fun-0-’,2,
[{file,“ct_logs.erl”},{line,2064}]},
{lists,fsplit_2,6,[{file,“lists.erl”},{line,2712}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1959}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}}],
[{file,“lists.erl”},{line,1371}]},
{ct_logs,make_all_runs_index,1,[{file,“ct_logs.erl”},{line,1984}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}

(ct@crirraadvt2e0)1> =CRASH REPORT==== 14-Apr-2024::15:12:22.597000 ===
crasher:
initial call: test_server_io:init/1
pid: <0.97.0>
registered_name: test_server_io
exception exit: {function_clause,
[{lists,foldr_1,
[#Fun<ct_logs.17.55508005>,
{,},
{‘EXIT’,
{{badmatch,[“exe”,“run”,“ct”]},
[{ct_logs,‘-sort_all_runs/1-fun-0-’,2,
[{file,“ct_logs.erl”},{line,2064}]},
{lists,fsplit_2,6,[{file,“lists.erl”},{line,2712}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1959}]},
{ct_logs,logger,3,
[{file,“ct_logs.erl”},{line,750}]}]}}],
[{file,“lists.erl”},{line,1371}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1984}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}
in function gen_server:decode_msg/9 (gen_server.erl, line 909)
ancestors: [ct_logs]
message_queue_len: 0
messages:
links: [<0.98.0>]
dictionary: [{ct_process_type,system}]
trap_exit: true
status: running
heap_size: 10958
stack_size: 28
reductions: 16488
neighbours:
neighbour:
pid: <0.98.0>
registered_name:
initial call: test_server_gl:init/1
current_function: {gen_server,loop,7}
ancestors: [test_server_io,ct_logs]
message_queue_len: 0
links: [<0.97.0>]
trap_exit: false
status: waiting
heap_size: 233
stack_size: 12
reductions: 47
current_stacktrace: [{gen_server,loop,7,[{file,“gen_server.erl”},{line,871}]},
{proc_lib,init_p_do_apply,3,
[{file,“proc_lib.erl”},{line,240}]}]
(ct@crirraadvt2e0)1> =CRASH REPORT==== 14-Apr-2024::15:12:22.597000 ===
crasher:
initial call: gen_event:init_it/6
pid: <0.92.0>
registered_name: ct_event
exception exit: {could_not_start_process,ct_logs,
{function_clause,
[{lists,foldr_1,
[#Fun<ct_logs.17.55508005>,
{,},
{‘EXIT’,
{{badmatch,[“exe”,“run”,“ct”]},
[{ct_logs,‘-sort_all_runs/1-fun-0-’,2,
[{file,“ct_logs.erl”},{line,2064}]},
{lists,fsplit_2,6,
[{file,“lists.erl”},{line,2712}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1959}]},
{ct_logs,logger,3,
[{file,“ct_logs.erl”},{line,750}]}]}}],
[{file,“lists.erl”},{line,1371}]},
{ct_logs,make_all_runs_index,1,
[{file,“ct_logs.erl”},{line,1984}]},
{ct_logs,logger,3,[{file,“ct_logs.erl”},{line,750}]}]}}
in function gen_event:terminate_server/4 (gen_event.erl, line 580)
ancestors: [ct_util_server]
message_queue_len: 0
messages:
links:
dictionary: [{ct_process_type,system}]
trap_exit: true
status: running
heap_size: 987
stack_size: 28
reductions: 396
neighbours:

(ct@crirraadvt2e0)1>