[Bug 47782] Segmentation fault and exceptions using ManagementClass

WineHQ Bugzilla wine-bugs at winehq.org
Thu Sep 19 07:53:05 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=47782

--- Comment #1 from Hans Leidekker <hans at meelstraat.net> ---
(In reply to dridi.boukelmoune from comment #0)
> $ mcs /reference:System.Management.dll test.cs
> $ ./test.exe Win32_OperatingSystem # OK
> $ ./test.exe Win32_PhysicalMemory # OK
> $ ./test.exe Win32_SoundDevice # OK
> $ ./test.exe Win32_Processor # System.InvalidCastException
> $ ./test.exe Win32_VideoController # System.InvalidCastException
> $ ./test.exe Win32_DesktopMonitor # System.InvalidCastException
> $ ./test.exe Win32_DisplayControllerConfiguration # SIGSEGV

The System.InvalidCastException failures are due to wrong CIM to VARIANT type
conversions for some of the properties. I've submitted a patch to fix them.

The SIGSEGV failure happens because that class is not implemented. I've
submitted another patch that turns it into a more graceful
System.Management.ManagementException, which includes an error code.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list