Bug 5776 - WMI: Traceback for wmic
Summary: WMI: Traceback for wmic
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Jelmer Vernooij
QA Contact: Andrew Bartlett
Depends on:
Reported: 2008-09-19 09:56 UTC by Jake Paulus
Modified: 2008-09-19 14:18 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jake Paulus 2008-09-19 09:56:40 UTC
The following query works on other servers in our environment but crashes on one system i've found so far. 

./wmic -U domain/domainadmin //server "SELECT PagesPerSec FROM Win32_PerfFormattedData_PerfOS_Memory"
Password for [DOMAIN\domainadmin]:
INTERNAL ERROR: Signal 6 in pid 21121 (4.0.0alpha3-GIT-UNKNOWN)
Please read the file BUGS.txt in the distribution
PANIC: internal error
BACKTRACE: 20 stack frames:
 #0 ./wmic(call_backtrace+0x2b) [0x85ef1ff]
 #1 ./wmic(smb_panic+0x266) [0x85ef539]
 #2 ./wmic [0x85ef6d4]
 #3 ./wmic(fault_setup+0) [0x85ef709]
 #4 [0x9e0420]
 #5 /lib/libc.so.6(abort+0x101) [0x802621]
 #6 ./wmic [0x8638dbb]
 #7 ./wmic [0x8638e90]
 #8 ./wmic [0x863909b]
 #9 ./wmic [0x86393e8]
 #10 ./wmic(talloc_named_const+0x1f) [0x863a0ca]
 #11 ./wmic(ndr_pull_WbemQualifiers+0x194) [0x80b9021]
 #12 ./wmic(ndr_pull_WbemClass+0x26b) [0x80bb972]
 #13 ./wmic(ndr_pull_DataWithStack+0xd3) [0x80b93e0]
 #14 ./wmic(ndr_pull_WbemClassObject+0x30b) [0x80ba89f]
 #15 ./wmic(WBEMDATA_Parse+0xef6) [0x80b7283]
 #16 ./wmic(IEnumWbemClassObject_SmartNext+0x4e7) [0x80b79b5]
 #17 ./wmic(main+0x50b) [0x80b41bf]
 #18 /lib/libc.so.6(__libc_start_main+0xdc) [0x7eddec]
 #19 ./wmic [0x80b3681]

On the server in question, in the WBEM log file located at c:\windows\system32\WBEM\logs\wbemcore.log the following entry is found numerous times on servers that work and this one server that causes wmic to crash:

GetUserDefaultLCID failed, restorting to system verion(Fri Sep 19 10:14:04 2008.220789156)
Comment 1 Jake Paulus 2008-09-19 09:59:26 UTC
The build I'm running was obtained here:

Also, other queries to the server in question work fine.
Comment 2 Matthias Dieter Wallnöfer 2008-09-19 11:41:34 UTC
This topic is up to Jelmer.
Comment 3 Jelmer Vernooij 2008-09-19 14:17:38 UTC
Sorry, this is not the Samba codebase - it's based on Samba but Samba has never built this code. 
Comment 4 Jelmer Vernooij 2008-09-19 14:18:49 UTC
(fwiw, we are in the process of importing some bits of that tarball to support WMI as well)