UMDH/Windbg not compatible DMP file? - windbg

I'm using UMDH 6.1.7659 out of the latest Windows Debugging Kit. I'm wanting to try and generate a dmp file that I can look at in WINDBG to investigate a memory leak in an unmanaged 64-bit C++ EXE:
set _NT_SYMBOL_PATH=<.PDB_file_directory>
umdh -p:<valid PID> -f:c:\temp\dump1.dmp
When I try and open up the DMP file in WinDbg (Version 1607), I see this:
Loading Dump File [c:\temp\dump1.dmp]
Could not match Dump File signature - invalid file format
Could not open dump file [c:\temp\dump1.dmp], Win32 error 0n87
"The parameter is incorrect."
**** DebugClient cannot open DumpFile - error 80070057
DUMPCHK on the same DMP file gave me the same result.
Is UMDH not compatible with WINDBG anymore?

I believe you got some misunderstanding,
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/using-umdh-to-find-a-user-mode-memory-leak
UMDH generates its own data format (a text based data structure), which is clearly not process dump files for WinDbg to analyze.

Related

Trying to import CSV file to Analysis Services Tabular project

I have Microsoft Office Professional Plus 2019 and Access database engine both 64-bit installed on my machine and was trying to import a CSV file to Analysis Services Tabular project. However keep getting the error message shown below.
"Failed to save modifications to the server. Error returned: 'OLE DB or ODBC error: The Microsoft Access database engine cannot open or write to the file 'BatchInfo.csv'. It is already opened exclusively by another user, or you need permission to view and write its data.; 3051."
Any help is appreciated please.
Either you or someone else has the file open. Sometimes you have to completely close out of the program that created the file, or the last program used to read, write, or save the file.
If it's something on your computer, you may be able to find what has it opened with the Process Explorer tool. Install it, and then use Find > Find Handle or DLL... and search on "BatchInfo.csv".

LibreOffice Headless

I am trying to convert .docx file to .pdf using the pdfgear as described in https://github.com/phpgearbox/pdf. This component defaults to libre-office-headless. I installed LibreOffice5 in my computer at
C:\Program Files (x86)\LibreOffice 5
with its binary lying at
C:\Program Files (x86)\LibreOffice 5\program.
Then in my Controller method i have:
$pdf = Gears\Pdf::convert($temp_filename);
shell_exec('libreoffice --headless --convert-to pdf $temp_filename');
The first statement is resulting to the error:
An uncaught Exception was encountered
Type: RuntimeException
Message: The libreoffice command ("/usr/bin/libreoffice") was not
found or is not executable by the current user!
While the next line is resulting to nothing (no error and no pdf document)!
How can i install libre-office-headless to ensure that the first line of code runs successfully? I hope you understand my question. Thank you.
Looking through the pdfgear source code there are a number of locations hard coded that you might need to adapt. They seem to be written with a normal Linux distro installation of LibreOffice in mind.
One case that seems related to your problem is https://github.com/phpgearbox/pdf/blob/master/src/Pdf/Docx/Converter/LibreOffice.php#L73

Run .exe by MATLAB - License error

I need to Run a .exe in a MATLAB project which changes some parameters in a txt file. I wrote:
system('C:\path\to\Program1.exe')
but it doesn't work and the error shown is:
Program1 ERROR: License not detected!
The program is correctly installed with license and it works, if I open the application. The license txt file is in the same folder as the .exe file.
What is the problem? Is the source code necessary?

PowerShell Error loading format file DotNetTypes.format.ps1xml

I have just updated to nuget 1.6 and now I get this message in visual studio's Package Manager Console
There were errors in loading the format data file: Microsoft.PowerShell.Core,
Error in file C:\Windows\SysWOW64\WindowsPowerShell\v1.0\DotNetTypes.format.ps1xml:
Data at the root level is invalid. Line 1, position 1
Any ideas how to I fix that?
I'm using 64 bit windows 7 if it matters.
Resolved.
Downloaded Hirens Boot CD iso
Burned that to cd
Booted from cd
Selected Dos based programs\Mini Windows XP - was able to overwrite the corrupted file with genuine file I got from my buddy

dump reader can't find symbol files

I'm trying to learn about reading dump files, so I made my small APP crush, and created a dump for that process from task manager.
I tried to open the .dmp file, both from VS10 and windbg.exe, and got an error that the symbol files are missing. I specified the path of the symbol files as the directory where the .pdb files are located :
..\Visual Studio 2010\Projects\CachedQueryTester\CachedQueryTester\bin\Debug
but I still get the same error, both on VS10 and windbg.exe,
Any Idea?
You may also need symbols from Microsoft , try to enter
0:000> .symfix
in windbg
From your configuration, you should not have to specify any debug symbol path, because the path of your symbols are stored in the executable. To be sure, you can open a Visual Studio Command prompt and type
dumpbin CachedQueryTester.exe /HEADERS
In the output, you should have a 'Debug Directories' entry containing the full path of the pdb.
If this is not the case, check you have specified to generate a PDB file (Configuration Properties / Linker / Debugging / Generate debug info);
You can also try to ask WinDbg for the location it looks for. In order to do this, open your dump file from within WinDbg, type '!symnoisy' and reload the symbols (.reload /u then .reload and kb). It will tell you the locations it looks for.