http://bugs.winehq.org/show_bug.cgi?id=31037
Bug #: 31037 Summary: Microsoft SQL Server 2005 Express Edition: SQL Server System Configuration Checker fails (Win32_Processor class table row count not set) Product: Wine Version: 1.5.7 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: wmi&wbemprox AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello,
continuation of bug 30089
The app crashes while trying to retrieve "CpuStatus" property of "Win32_Processor" class.
--- snip --- Creating class instance Win32_Processor CreateInstanceEnum Win32_Processor returned 0 (0x0) Enumerating the first class of Win32_Processor EnumClass of Win32_Processor returned 1 (0x1) Getting property CpuStatus <boom> --- snip ---
"CpuStatus" property was implemented by commit http://source.winehq.org/git/wine.git/commitdiff/661d7f19c98b72af18c9487a87f...
Code: http://source.winehq.org/git/wine.git/blob/661d7f19c98b72af18c9487a87fd5a5f0...
--- snip --- 361 static void fill_processor( struct table *table ) 362 { 363 static const WCHAR fmtW[] = {'C','P','U','%','u',0}; 364 WCHAR device_id[14]; 365 struct record_processor *rec; 366 UINT i, offset = 0, count = get_processor_count(); 367 368 if (!(table->data = heap_alloc( sizeof(*rec) * count ))) return; 369 370 for (i = 0; i < count; i++) 371 { 372 rec = (struct record_processor *)(table->data + offset); 373 rec->cpu_status = 1; /* CPU Enabled */ 374 rec->manufacturer = processor_manufacturerW; 375 sprintfW( device_id, fmtW, i ); 376 rec->device_id = heap_strdupW( device_id ); 377 offset += sizeof(*rec); 378 } 379 } --- snip ---
The table row count (number of processor items) is not set hence class object iterator (next) will fail later, leading to crash.
With row count fixed, the crash is gone and the app encounters next WMI insufficiency ;-)
Regards
http://bugs.winehq.org/show_bug.cgi?id=31037
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download, Installer URL| |http://go.microsoft.com/fwl | |ink/?linkid=65212
--- Comment #1 from Anastasius Focht focht@gmx.net 2012-06-27 04:37:06 CDT --- Hello,
filling fields
$ wine --version wine-1.5.7-114-gd079b66
Regards
http://bugs.winehq.org/show_bug.cgi?id=31037
--- Comment #2 from Hans Leidekker hans@meelstraat.net 2012-06-27 04:39:47 CDT --- Yep, I just sent a fix for it.
http://bugs.winehq.org/show_bug.cgi?id=31037
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |211469dd06c4354790506ad41e0 | |fd8c00cedc0d3 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Anastasius Focht focht@gmx.net 2012-06-28 06:20:31 CDT --- Hello,
fixed by commit http://source.winehq.org/git/wine.git/commitdiff/211469dd06c4354790506ad41e0...
Thanks Hans
Regards
http://bugs.winehq.org/show_bug.cgi?id=31037
Daniel Jelinski djelinski1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |djelinski1@gmail.com
--- Comment #4 from Daniel Jelinski djelinski1@gmail.com 2012-06-28 15:01:49 CDT --- Hello, Thanks for fixing this one. Install went a little further. Judging from bug 30089 and wbemprox log, I'd guess we only need CIM_DataFile now.
http://bugs.winehq.org/show_bug.cgi?id=31037
--- Comment #5 from Hans Leidekker hans@meelstraat.net 2012-06-28 15:17:09 CDT --- (In reply to comment #4)
Hello, Thanks for fixing this one. Install went a little further. Judging from bug 30089 and wbemprox log, I'd guess we only need CIM_DataFile now.
I'm guessing it fails because it wants StdRegProv.EnumValues before that.
http://bugs.winehq.org/show_bug.cgi?id=31037
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2012-07-03 14:14:04 CDT --- Closing bugs fixed in 1.5.8.
https://bugs.winehq.org/show_bug.cgi?id=31037
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://go.microsoft.com/fwl |https://web.archive.org/web |ink/?linkid=65212 |/20130318195510/http://down | |load.microsoft.com/download | |/6/C/7/6C7458CA-8B07-411E-9 | |E3B-0DED20512696/SQLEXPR32. | |EXE