ebpf-for-windows: Installing Debug build MSI leads to ebpfsvc.exe not being able to start

Describe the bug

After installing from a Debug build MSI, the eBPF service fails to start with error 1053.

OS information

No response

Steps taken to reproduce bug

  1. Install Debug MSI via setup-ebpf.ps1
  2. Open services.msc
  3. Try to start the service

Expected behavior

The service should start.

Actual outcome

It doesn’t.

Additional details

I think the problem lies in the fact that the service is configured to run as Local Service, which doesn’t have access to the VC runtime debug dlls in system32. These are copied there by setup-ebpf.ps1. Copying the dlls into the JIT folder makes things work again.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 26 (16 by maintainers)

Commits related to this issue

Most upvoted comments

this is after statically linking the debug runtime libraries to ebpf-for-windows.msi