WMIConfig compilation warning and segfault

Niels Heyvaert nielsheyvaert at hotmail.com
Mon Mar 8 16:02:24 CET 2010


>> wmiconfig.c: In function 'getPhyMode':
>> wmiconfig.c:2741: warning: missing initializer
>> wmiconfig.c:2741: warning: (near initialization for 'phyModeMap[5].phyMode')
>> wmiconfig.c: In function 'main':
>> wmiconfig.c:465: warning: 'pmkidUserInfo.numPMKIDUser' may be used uninitialized in this function
>> wmiconfig.c:465: warning: 'pmkidUserInfo.pmkidInfo' may be used uninitialized in this function
>> wmiconfig.c:473: warning: 'ssid' may be used uninitialized in this function
>>
>> When executing it displays the help message. But when trying the famous
>> "wmiconfig -i eth0 --power maxperf" the whole thing just segfaults.
>>
>> Is it linked to the warnings I get during compilation?
>
> Give us a backtrace from the segfaulting app. Check out
> https://wiki.ubuntu.com/Backtrace for information on that.
>
> Let us know if you have questions as to how to generate your backgrace.

This would assume I'm executing on a FR distro wich can run the GDB tool... Since I'm doing this on Android, this is not the case.
 
I did not get the compilation errors when trying to build the tool as per the Wiki instructions (with the toolchain and make instructions).
 
When buidling it using the Android toolchain I get these errors. In the end it's the same gcc compiler crunching the code, so I'm leaning towards a gcc setting which could be in play here.
 
What do you think?
 
Kind regards,
 
Niels. 		 	   		  
_________________________________________________________________
Surf veilig : download Internet Explorer 8
http://www.microsoft.com/belux/nl/windows/internet-explorer/


More information about the devel mailing list