dump

minidump vs. fulldump?

此生再无相见时 提交于 2019-11-30 01:15:22
I just recently started looking at dump files to help me analyze crashes of the w3wp process on our production environment at work... And I would like to know, what are the differences between a minidump and a fulldump file ? foxy Differences between full memory dump files and mini memory dump files A memory dump file can collect a variety of information. Typically, a support engineer must have all the contents of virtual memory to troubleshoot a problem. In other cases, you might want to capture less information to focus on a specific problem. The debugger is flexible. This flexibility lets

Python JSON dump / append to .txt with each variable on new line

我是研究僧i 提交于 2019-11-29 22:05:28
My code creates a dictionary, which is then stored in a variable. I want to write each dictionary to a JSON file, but I want each dictionary to be on a new line. My dictionary: hostDict = {"key1": "val1", "key2": "val2", "key3": {"sub_key1": "sub_val2", "sub_key2": "sub_val2", "sub_key3": "sub_val3"}, "key4": "val4"} Part of my code: g = open('data.txt', 'a') with g as outfile: json.dump(hostDict, outfile) This appends each dictionary to 'data.txt' but it does so inline. I want each dictionary entry to be on new line. Any advice would be appreciated. Your question is a little unclear. If you

WinDbg x64: Cannot debug a crash dump - failed to load data access DLL

给你一囗甜甜゛ 提交于 2019-11-29 21:44:29
I attached WinDbg to a running process and had the process crashed (I have a separate question re. that case). Once the program crashed, WinDbg stopped and allowed me to debug the program. I took a crash dump for further investigation with a command ".dump /ma". The program was compiled as "Any CPU" and I used WinDbg x64 to take the dump. Now I open WinDbg x64 on the same computer again and open the crash dump. Here is what it says: Loading Dump File [C:\crashdump.dmp] User Mini Dump File with Full Memory: Only application data is available Symbol search path is: SRV*c:\symbols*http://msdl

Dump Mongo Collection into JSON format

被刻印的时光 ゝ 提交于 2019-11-29 18:55:59
Is there any way to dump mongo collection into json format? Either on the shell or using java driver.I am looking for the one with best performance. vrtx Mongo includes a mongoexport utility (see docs) which can dump a collection. This utility uses the native libmongoclient and is likely the fastest method. mongoexport -d <database> -c <collection_name> Also helpful: -o : write the output to file, otherwise standard output is used ( docs ) --jsonArray : generates a valid json document, instead of one json object per line ( docs ) --pretty : outputs formatted json ( docs ) Use mongoexport

How do I suppress the bloat of useless information when using the DUMP command while using grunt via 'pig -x local'?

孤人 提交于 2019-11-29 13:54:49
问题 I'm working with PigLatin, using grunt, and every time I 'dump' stuffs, my console gets clobbered with blah blah, blah non-info, is there a way to surpress all that? grunt> A = LOAD 'testingData' USING PigStorage(':'); dump A; 2013-05-06 19:42:04,146 [main] INFO org.apache.pig.tools.pigstats.ScriptState - Pig features used in the script: UNKNOWN 2013-05-06 19:42:04,147 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MRCompiler - File concatenation threshold: 100

WinDbg and SoS, how do I print/dump a large string?

我们两清 提交于 2019-11-29 13:23:24
问题 I am debugging a hangdump coming from a production server using WinDbg with the SoS extension. There is a string parameter in one of the stacks, that I need to know the value of. However, it is a rather large string, and WinDbg won't print it when I am using DumpObj . This is the output from DumpObj : 0:036> !do 00000001b30d8668 Name: System.String MethodTable: 0000064278436728 EEClass: 000006427803e520 Size: 5125300(0x4e34b4) bytes (C:\WINDOWS\assembly\GAC_64\mscorlib\2.0.0.0_

How to get Java8 Metaspace dump (not heap dump)

狂风中的少年 提交于 2019-11-29 11:46:11
问题 Are there any tools that are able to get Metaspace dump from a Java8 hotspot vm ? 回答1: It seems you encounter a class loading leak. Use jmap -clstats PID to dump class loader statistics; jcmd PID GC.class_stats to print the detailed information about memory usage of each loaded class. The latter requires -XX:+UnlockDiagnosticVMOptions . The heap dump will also help, because each class in the Metaspace has a corresponding java.lang.Class instance in the heap. 来源: https://stackoverflow.com

Visual C++ program crashed, but no dumpfile generated. why?

二次信任 提交于 2019-11-29 11:33:44
I have a very strange situation. I'm running IOCP Server Program programmed by Visual studio 2010 in C++. It uses 'minidump', so When there is a logical bug like pointer misuse, Program crashes with dump file so I can find out where is the crash point in codes. Sometimes (very rarely), the program crashes and there are no dump files. What situation makes SetUnhandledExceptionFilter() not working? Anybody knows this problem? I can't figure out. Well, of course you don't know because you don't have a minidump to look at. You should do the absolute minimum when the SetUnhandledExceptionFilter

How can I extract DLL file from memory dump?

旧时模样 提交于 2019-11-29 10:02:56
I have a memory dump (unmanaged process) . How can I extract (using windbg) one of the dlls loaded into the process ? I mean actually saving the dll file into the disk You can use the sos.dll inside windbg directory. First, load the sos.dll in windbg: .load clr10\sos.dll Then use !sam OR !SaveAllModule to extract the modules on specific disk location: !sam c:\notepad deemok To extract a DLL without using SOS, use the .writemem extension as follows: discover the module start and end addresses using lmvm dllname example output for ieframe: start end module name 61370000 61fb8000 ieframe

Bash script containing binary executable

女生的网名这么多〃 提交于 2019-11-29 07:08:46
Is it possible to write a bash script, which would contain a binary executable program inside? I mean a script, which would contain a dump of an executable in a textual form, which will be dumped back to an executable by this script when it is executed? I would love to know a solution, which will work out of the box without a need of installing additional packages. Is it possible? Thanks! i never done something like this before ;) this will compile some c source, create a b.bash script containing the binary (and the original script for simple development) (a.bash) #!/bin/bash if [ "$0" == "b