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] Aborted 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)
The build I'm running was obtained here: http://debian.cs.binghamton.edu/debian/pool/main/w/wmi/wmi_0.1.13.orig.tar.gz Also, other queries to the server in question work fine.
This topic is up to Jelmer.
Sorry, this is not the Samba codebase - it's based on Samba but Samba has never built this code.
(fwiw, we are in the process of importing some bits of that tarball to support WMI as well)