<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx</link><description>I tried the various instruction on MSDN and other locations for running Application Verifier on drivers, particularly in cases where no KITL connection is used (such as when running Hopper) and I ran into problems. Documenation corrections have been requested</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#9937432</link><pubDate>Wed, 16 Dec 2009 01:47:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9937432</guid><dc:creator>yubaolee@gmail.com</dc:creator><description>&lt;p&gt;quote PK:&lt;/p&gt;
&lt;p&gt;0x1e011dd0: UNKNOWN!UNKNOWN + 00011dd0h&lt;/p&gt;
&lt;p&gt; &amp;nbsp;0x1e01197c: UNKNOWN!UNKNOWN + 0001197ch&lt;/p&gt;
&lt;p&gt; &amp;nbsp;0x1e011bc8: UNKNOWN!UNKNOWN + 00011bc8h&lt;/p&gt;
&lt;p&gt;I came across this probolem too.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9937432" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#8058651</link><pubDate>Thu, 06 Mar 2008 02:27:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8058651</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I have used AppVerifier to verify my device.exe with KITL and FRD several times, and most of them are very successful. However, I found that sometimes they failed because the callstack could NOT be &amp;nbsp;resolved. The KITL message I saw in the output window of PB5 is as follows:&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;Couldn't resolve address 0x027ef244 (138521)&lt;/p&gt;
&lt;p&gt;Couldn't resolve address 0x1e011dd0 (138521)&lt;/p&gt;
&lt;p&gt;Couldn't resolve address 0x1e01197c (138521)&lt;/p&gt;
&lt;p&gt;Couldn't resolve address 0x1e011bc8 (138521)&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;and in the target window after I run &amp;quot;heapverif * delta&amp;quot; is &lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;TrackedItem count: 1&lt;/p&gt;
&lt;p&gt;Callstack:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x07a46b78: shim_heap.dll!(null) + 6b78h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x07a4984c: shim_heap.dll!(null) + 984ch&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x07a4abbc: shim_heap.dll!(null) + abbch&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x07a4accc: shim_heap.dll!(null) + accch&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x027ef244: UNKNOWN!UNKNOWN + 027ef244h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x03f55f90: devmgr.dll!(null) + 3f90h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x03f57298: devmgr.dll!(null) + 5298h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x03f54254: devmgr.dll!(null) + 2254h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x03f74c18: coredll.dll!(null) + 16c18h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x1e011dd0: UNKNOWN!UNKNOWN + 00011dd0h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x1e01197c: UNKNOWN!UNKNOWN + 0001197ch&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x1e011bc8: UNKNOWN!UNKNOWN + 00011bc8h&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x03f7b368: coredll.dll!(null) + 1d368h&lt;/p&gt;
&lt;p&gt;Leaked items:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 0x00b68800 &amp;nbsp; &amp;nbsp; &amp;nbsp;16 bytes, thread: 0xc712f152, checkpoint 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total: 16 bytes&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;As you see, many &amp;quot;UNKNOWN&amp;quot; shown in the callstack. And then I could NOT know where it is. &lt;/p&gt;
&lt;p&gt;Sometimes I face this problem, even my friend also face this problem. Do you have any idea why this happen?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8058651" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#7288924</link><pubDate>Mon, 28 Jan 2008 18:25:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7288924</guid><dc:creator>Paul Sheh</dc:creator><description>&lt;p&gt;Recently I started using App Verifier to catch memory leaks in our platform and have everything working with KITL and access to the FRD, however, I'm seeing the same thing as a post above, i.e., it complains that verify.txt cannot be found. &amp;nbsp;I verified that it is indeed in the \windows directory, both by using image-explorer and by letting the device boot (which takes a long time since everything seems to be shimmed in the absence of verify.txt). &amp;nbsp;Any ideas? &amp;nbsp;Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7288924" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#4173397</link><pubDate>Wed, 01 Aug 2007 19:58:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4173397</guid><dc:creator>mthomps</dc:creator><description>&lt;p&gt;Motanis, sorry for the delayed response. &amp;nbsp;I've been on a much needed vacation. &amp;nbsp;I'll need more information. &amp;nbsp;Are the files added to common.bib actually visable in the \windows directory of the booted device? &amp;nbsp;You should see appverif.exe, lmemdebug.dll, shim_heap.dll, verify.tx and all of the other files added to common.bib.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4173397" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#3973010</link><pubDate>Fri, 20 Jul 2007 12:52:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3973010</guid><dc:creator>Motanis</dc:creator><description>&lt;p&gt;Hi Mike, Thanks for your article. The first method &amp;quot;Testing with KITL and the FRD&amp;quot; is quite smooth by following your description. But I got a problem when i try the second method- &amp;quot;Testing with KITL but without access to FRD&amp;quot; , all all and txt in common.bib has embedded into my image file beside lmemdebug.dll , surly i has this file in my release folder, and sign it by add commend in premakeimg.bat. I can't not figure it out what's wrong outthere! Any suggestion? Thanks in advance&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;Motanis&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3973010" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#3548743</link><pubDate>Tue, 26 Jun 2007 20:24:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3548743</guid><dc:creator>mthomps</dc:creator><description>&lt;p&gt;Jack,&lt;/p&gt;
&lt;p&gt;I'm afraid I'm at a bit of a loss, but to answer some specific questions with quotes from some experts on the topic:&lt;/p&gt;
&lt;p&gt;1. No you can't disable the Load/unload library; if you did, dynamic api redirection wouldn't work (the app would do an end-run around app verifier).&lt;/p&gt;
&lt;p&gt;2. lmemdebug.dll is loaded by coredll&lt;/p&gt;
&lt;p&gt;Is this a platform you are building, or are you trying to apply this to a platform built by someone else? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3548743" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#3547670</link><pubDate>Tue, 26 Jun 2007 18:42:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3547670</guid><dc:creator>mthomps</dc:creator><description>&lt;p&gt;Wow, it doesn't pay to let blogs sit; my apologies. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Running app verifier on device.exe is not a good idea. &amp;nbsp;You effectively run app verifier on every driver and the amount of data will make it difficult to get meaninful results. &amp;nbsp;Pick &amp;quot;suspect&amp;quot; drivers and focus on them. &amp;nbsp;You'll notice in my example I shimed camera.dll. &amp;nbsp;I then performed actions to specifically exercise that driver. And what you want to do is to perform repetitive exercises of the driver; because drivers don't close, the first time they are exercised they may reserve memory that they never free. &amp;nbsp;App verifier will suspect a leak. &amp;nbsp;But repeat this process over and over. &amp;nbsp;If additional memory is consumed each time; you likely have a leak.&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3547670" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#3309976</link><pubDate>Fri, 15 Jun 2007 12:26:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3309976</guid><dc:creator>shyhlee</dc:creator><description>&lt;p&gt;I am puzzled for one question in here: While doing Hopper test, how can we use appverify to figure out any memory leak in the driver?&lt;/p&gt;
&lt;p&gt;For example, I set a check point before hopper test as: &amp;quot;heapverif device.exe delta&amp;quot; &lt;/p&gt;
&lt;p&gt;After hopper stop, I do &amp;quot;heapverif device.exe delta&amp;quot;.&lt;/p&gt;
&lt;p&gt;The list will be long and I an not sure if it make sense for us to analysis it.&lt;/p&gt;
&lt;p&gt;Appreciate for any comments or suggestions.&lt;/p&gt;
&lt;p&gt;By the way, is there any way to disable callstack dump while doing delta?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3309976" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#2526236</link><pubDate>Thu, 10 May 2007 19:59:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2526236</guid><dc:creator>Jack Wong</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Another problem is that who loads the lmemdebug.dll? it's too early for it to load because the filesys's API are not ready. So it must be some way to delay of the loading of the lmemdebug to make it successful.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2526236" width="1" height="1"&gt;</description></item><item><title>re: Application Verifier on Drivers; Windows Mobile 6</title><link>http://blogs.msdn.com/b/hopperx/archive/2007/03/30/application-verifier-on-drivers-windows-mobile-6.aspx#2504429</link><pubDate>Wed, 09 May 2007 17:51:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2504429</guid><dc:creator>Jack Wong</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I am pretty sure that the verify.txt is in image and in oemxipkernel package. Just don't know why it can't find it at very early stage. I have another questions, it seems that the shimverifier.dll also checks something other than I specified such as load/unload library. Can I disable it? Thanks,&lt;/p&gt;
&lt;p&gt;Jack &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2504429" width="1" height="1"&gt;</description></item></channel></rss>