https://bugs.winehq.org/show_bug.cgi?id=53460
Bug ID: 53460 Summary: advapi32:service regularly fails on Windows when services stop / start Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: advapi32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
advapi32:service regularly fails on Windows when services stop / start. Because this may happen at any time the failures can take many forms:
service.c:1729: Test failed: Expected a process id for this running service (sppsvc) service.c:1746: Test failed: Active services mismatch 4294967295 service.c:1747: Test failed: Inactive services mismatch 1 or service.c:1729: Test failed: Expected a process id for this running service (SgrmBroker) ...
or
service.c:1746: Test failed: Active services mismatch 1 service.c:1747: Test failed: Inactive services mismatch 4294967295
or
service.c:1342: Test failed: Expected 114 services to be returned service.c:1612: Test failed: Expected the same number of service from this function
or
service.c:1729: Test failed: Expected a process id for this running service (edgeupdate) or service.c:1729: Test failed: Expected a process id for this running service (MapsBroker) or service.c:1729: Test failed: Expected a process id for this running service (W32Time) or service.c:1729: Test failed: Expected a process id for this running service (BITS) or service.c:1729: Test failed: Expected a process id for this running service (DoSvc)
https://test.winehq.org/data/patterns.html#advapi32:service
The service names give a hint as to what happened: * An Edge update got triggered: edgeupdate, probably BITS too. * A time synchronization happened: W32Time. * Some application caused the on-demand "Downloaded Maps Broker" service to start: MapsBroker. * Something caused Windows Update Delivery Optimization to start (despite it being disabled in the settings): DoSvc. * The 'System Guard Runtime Monitor Broker Service' got started for some reason: SgrmBroker. * The 'Microsoft Software Protection Platform Service' which is involved in the license checking got started: sppsvc.
So I don't think it would be reasonable to disable all these services. We would still likely have a steady trickle of other services causing trouble, and we'd have the problem again when a new Windows version introduces another service.
Instead advapi32:service should be more resilient. That may mean accepting small variations in the number of running services, or checking that a service is still running before complaining that it does not have a pid.
https://bugs.winehq.org/show_bug.cgi?id=53460
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=53460
--- Comment #1 from François Gouget fgouget@codeweavers.com --- This can also result in the following failures:
service.c:1387: Test failed: Something wrong in the calculation service.c:1423: Test failed: Active services mismatch 4294967295
https://bugs.winehq.org/show_bug.cgi?id=53460
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com