|
|
||||||
|
#1
|
|
|
|
|
Hi,
I'm trying to trace a memory leak and managed to get the caller's address (CallersAddress) for my driver. How do I pinpoint which src line it is? cheers |
|
|
|
#2
|
|
|
|
|
Hi kendolew,
Thanks for your post! I am not sure about your debugging context. Are you doing dump debugging, local kernel mode debugging or remote kernel mode debugging? Normally, we can use MAP file to get the source line code regarding certain memory address. If you have got all the symbols loaded correct for your binaries, you can enable the source line code in the debugger(by using "l+l" command ) and use "ln(list nearest symbol)" command to display the nestest symbol and source code information. For more information, please refer to another discussion in this group: http://groups.google.com/group/micro...thread/thread/ 72f572555f16afec/cb011df0fc93bf90?lnk=st&q=windbg+nearest+symbol&rn um=1&hl=z h-CN#cb011df0fc93bf90 Hope this helps! Best regards, Jeffrey Tan Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. |
|
#3
|
|
|
|
|
Hi Jeffrey,
Thanks for the answer. I'm doing remote kernel mode debugging for my driver, and it seems that driver verifier is crashing when a memory leak has been detected. The problem was, the tag ("wdm") on the memory pool doesn't show it's obviously mine, but I suspect it might be mine as there're string allocation/initialization going on (presumably with default tags). All I was given was the allocated byte size, and the caller's address. If I could trace to the source line, then it'll solve my problem. Any ideas? cheers Kenny |
|
#4
|
|
|
|
|
The debugger should show this for you if you have the correct symbols loaded
for your driver. "Kenny Liew" <kendolew> wrote in message news:7cc4 [..] |
|
#5
|
|
|
|
|
Hi Kenny,
Thanks for your feedback Have you tried the suggestion I provided in first reply? With these technologies, can you identify the source code line correctly? Thanks Best regards, Jeffrey Tan Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. |
|
|
| Similar Threads | |
| How do I get the IP address of caller using HTTP/S I've created a WCF WebService that uses basicHttpbinding that is hosted in IIS7. From within the Service I need to get the IP address of the caller, how can I do this? P.S.... |
|
| Getting the caller address If I have idata:0x401230 GetEnvironmentStrW Normally you calculate the apiaddr, GetProcAddress(...); you get the hi-address of the module say 0x71012290 This is the callee... |
|
| How to discover the caller's IP address? Hi, I need to know the IP addresses of the PCs that are connected to my SQL Server. The master.dbo.sysprocesses table contains the field net_address. This is supposed to be... |
|
| How to discover the caller's IP address? Hi, I need to know the IP addresses of the PCs that are connected to my SQL Server. The master.dbo.sysprocesses table contains the field net_address. This is supposed to be... |
|
| How to get caller's IP address on remote instantiation? Hi, I am developing a service to provide some services to remote computers, such as accessing web cam. I would like to ask; 1. whether WIA supports a remote computer to... |
|
|
All times are GMT. The time now is 03:12 AM. | Privacy Policy
|