exported / paimei

Automatically exported from code.google.com/p/paimei
GNU General Public License v2.0
1 stars 0 forks source link

pydbg: problems in dealing with memory breakpoints #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a simple C program (test.c) that uses printf
2. by using pydbg, set a memory breakpoint on the msvcrt.dll pages
3. in the handler of the memory breakpoint, simply deletes all the memory 
breakpoints (in this case there is only one), and return DBG_CONTINUE

What is the expected output? What do you see instead?
Since the test.c program uses printf, the program should print something.
Instead, the program doesn't print anything and, after few instructions are 
executed, an EXCEPTION_ACCESS_VIOLATION is raised.

What version of the product are you using? On what operating system?
I'm using the latest release of pydbg, and my OS is Win XP SP2

Please provide any additional information below.
Probably I've found an error in the code. In file pydbg.py at line 444.
The code is "self._guarded_pages.remove(mbi.BaseAddress)", but I think it 
should be "self._guarded_pages.remove(page)".
But even if I correct this line of code, I have the same problem described 
above.

Do you have any advices?
thanks in advance,
cheers

Original issue reported on code.google.com by yan...@gmail.com on 11 Aug 2010 at 9:29