dump

deciphering vtable dumps

余生颓废 提交于 2019-12-31 22:23:58
问题 I am "playing" with virtual inheritance in C++, and I want to know how a class object is laid out. I have those three classes: class A { private: int a; public: A() {this->a = 47;} virtual void setInt(int x) {this->a = x;} virtual int getInt() {return this->a;} ~A() {this->a = 0;} }; class B { private: int b; public: B() {b = 48;} virtual void setInt(int x) {this->b = x;} virtual int getInt() {return this->b;} ~B() {b = 0;} }; class C : public A, public B { private: int c; public: C() {c = 49

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

烈酒焚心 提交于 2019-12-29 08:00:23
问题 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. 回答1: Well, of course you don't know because you

How can I extract DLL file from memory dump?

橙三吉。 提交于 2019-12-29 07:36:09
问题 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 回答1: 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 回答2: To extract a DLL without using SOS, use the .writemem extension as follows: discover the module start and end

Postgres pg_dump dumps database in a different order every time

强颜欢笑 提交于 2019-12-29 04:14:42
问题 I am writing a PHP script (which also uses linux bash commands) which will run through test cases by doing the following: I am using a PostgreSQL database (8.4.2)... 1.) Create a DB 2.) Modify the DB 3.) Store a database dump of the DB (pg_dump) 4.) Do regression testing by doing steps 1.) and 2.), and then take another database dump and compare it (diff) with the original database dump from step number 3.) However, I am finding that pg_dump will not always dump the database in the same way.

How can I convert an MDB (Access) file to MySQL (or plain SQL file)?

ε祈祈猫儿з 提交于 2019-12-29 02:18:13
问题 Is it possible to create a Dump of SQL commands from a Microsoft Access database? I hope to convert this MDB file into a MySQL database for importing so I don't have to go through the CSV step. I would expect even an MSSQL dump file to still contain workable SQL commands, but I know nothing of MSSQL, please let me know. 回答1: You want to convert mdb to mysql (direct transfer to mysql or mysql dump)? Try a software called Access to MySQL. Access to MySQL is a small program that will convert

Generate a Java thread dump without restarting.

为君一笑 提交于 2019-12-28 06:44:42
问题 I'd like to create a thread that keeps track of the memory usage and cpu usage. If the application reaches a high level, I want to generate an heap dump or a thread dump. Is there a way to generate a Thread dump runtime without restarting? 回答1: Here's how we do it programmatically: http://pastebin.com/uS5jYpd4 We use the JMX ThreadMXBean and ThreadInfo classes: ThreadMXBean mxBean = ManagementFactory.getThreadMXBean(); ThreadInfo[] threadInfos = mxBean.getThreadInfo(mxBean.getAllThreadIds(),

Dumping frameworks for iPhone 3.0 not working?

我的未来我决定 提交于 2019-12-25 19:15:12
问题 Hey I need some extra capabilities for my program and I would like to use some Undocumented APIs for my iPhone program. I downloaded: DumpFrameworks as Dumpframeworks.pl and class-dump from : http://ericasadun.com/HeaderDumpKit/ I put DumpFrameworks.pl in Downloads and class-dump file in /usr/local/bin in the terminal I run: $perl DumpFrameworks.pl and some warnings and errors appeared: Framework: Accelerate 2009-09-30 08:39:58.776 class-dump[466:903] Warning: This file does not contain any

WinDBG works with Dump saved from Visual Studio 2015 but not Task Manager. Shows Exception Code “not found”

倖福魔咒の 提交于 2019-12-25 09:49:12
问题 I cannot get dump files created with Task Manager (32 or 64 bit) or Process Explorer to give useful results in WinDBG or Visual Studio 2015, whereas the dump written directly from VS works brilliantly in both. I need Task Manager dumps to work so that I can analyse dump files sent by my end users. I have reduced the problem to the simplest possible Win32 application, created in VS 2015 C++, with a deliberate NULL pointer write to cause an exception. If I run the program in VS and use Save

Git update-server-info nothing do

梦想的初衷 提交于 2019-12-25 07:44:52
问题 Goal: hosting git repository on web server without git program and git deamon (used HTTP as transfer protocol and dump as git protocol - nothing scripts, nothing shell, only GET supported). I used tutorial from: http://git-scm.com/book/en/Git-Internals-Transfer-Protocols Steps: Create a new git repo. Clone as --bare to grepo.git call "git update-server-info" in grepo.git (nothing file change!) mv hooks/post-commit.sample hooks/post-commit && chmod a+x hooks/post-commit call "git clone http://

Which is my database in mongodb?

霸气de小男生 提交于 2019-12-25 05:50:23
问题 Next question in reference with previous one Where does mongodb store databse in ubuntu? $ cd /var/lib/mongodb/ $ ls ihtx.0 ihtx.1 ihtx.ns journal local.0 local.ns mongod.lock Here, I can see ihtx.0 ihtx.1 ihtx.ns three files with the same name. Here which one is mydatabase which I usually see in mongo shell? which one should I dump ? Tried each, getting following error : $ mongodump --dbpath /var/lib/mongodb/ihtx.XX --out /home/user/Desktop/ If you are running a mongod on the same path you