UML and Execution Replay
Hello *,
I have a new project proposal for applying UML in the deterministic (!) debugging of parallel programs.
This concept is not new and called execution-replay (ER): the behaviour of a (complicated, multi-threaded, buggy) program is recorded during an *execution* phase. Later during a *replay* phase the exact behaviour is reproduced -- including the bugs. Therefore the system is ideal to debug - rarely occuring bugs in parallel systems, - race conditions, - any sort of bugs that are (nearly) impossible to reproduce. All you need to do is to record the behaviour once and then simply replay and debug it! Sounds exciting? - you must be a hacker then ;-) And think of the consequences... The role of UML will be a replayable virtual machine. By recording all input to the UML keyboard, network, ... and feeding this same input into the UML during replay, the exact internal behaviour will be reproduced. One gets ER without modifying the code of the applications program. This is a huge advantage over conventional approaches that require that the software adheres strictly to certain protocols. Also the overhead should be minimal.
There is some more to the idea though. I presented a paper "A particular bug trap: Execution replay for Virtual machines" on this idea at a conference last week (http://aadebug2003.elis.rug.ac.be/). See link below.
I am working on the implementation myself but of course: any help is welcome. I will put up a small website in the next weeks and post again. If anyone is interested in the project already, get in contact with me via o.oppitz at gmx d O T net. I'd be happy to share my ideas.
Regards,
Oliver
The paper "A particular bug trap: Execution replay for Virtual machines" can be found at http://213.203.244.62/paper.short.pdf
http://213.203.244.62/paper.long.pdf
Note, that there is a way to work around the limitations of the Intel architecture mentioned in the paper. So I am pursuing this project on x86.
Further information on Execution replay can be found at
http://www.zealcore.com/
http://www.mrtc.mdh.se/projects/getProject.php3?id=0044
The approach is different but already applied in an industrial context (VxWorks).
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Hello! I just found this thread, and I thought you might be interested in our work on ReVirt:
http://www.eecs.umich.edu/CoVirt/umlinux.html
Basically, last year we started a project with UMLinux (now FAUMachine, from the University of Erlangen), to do complete VM logging and replay using the performance counters. We presented our work in December at OSDI:
George W. Dunlap, Samuel T. King, Sukru Cinar, Murtaza Basrai, and Peter M. Chen. ReVirt: Enabling Intrusion Analysis through Virtual-Machine Logging and Replay. In Proceedings of the 2002 Symposium on Operating Systems Design and Implementation (OSDI), pags 211-224, December 2002.
Our main goal with ReVirt is security, not debugging; we have a paper about backtracking intrusions in this year's SOSP:
Samuel T. King and Peter M. Chen. Backtracking Intrusions. To appear in the Proceedings of the 19th ACM Symposium on Operating Systems Principles, November 2003.
We're now working to port our system over to Jeff Dike's UML. It's a bit more challenging: UMLinux is only a single process, so as long as we re-deliver interrupts in the same way and answer system calls in the same way, everything works. UML is a bit more difficult because there are multiple processes, and issues with shared memory and the host kernel system calls. We may have to make a few minor changes to UML to get ReVirt working, but we should have a basic system running in a month or two.
So, it looks like you're planning on doing your replay system in a different way than we are. Do you want to do your work on your own system, or would you like to start with ours? BackTracker already has some hooks for GDB, but I don't know exactly how they work (that's Sam King's area). We're planning on focusing on security, so I don't think we'd be in competition if you were going to do debugging.
Anyway, let me know what you think, and keep us informed of how your work is coming along. We'd be interested in how other ways of doing replay pan out.
Peace,
-George
Quoted 59 lines · Oliver Oppitz
Hello *,
I have a new project proposal for applying UML in the deterministic (!) debugging of parallel programs.
This concept is not new and called execution-replay (ER): the behaviour of a (complicated, multi-threaded, buggy) program is recorded during an *execution* phase. Later during a *replay* phase the exact behaviour is reproduced -- including the bugs. Therefore the system is ideal to debug - rarely occuring bugs in parallel systems, - race conditions, - any sort of bugs that are (nearly) impossible to reproduce. All you need to do is to record the behaviour once and then simply replay and debug it! Sounds exciting? - you must be a hacker then ;-) And think of the consequences...
The role of UML will be a replayable virtual machine. By recording all
input to the UML keyboard, network, ... and feeding this same input into the UML during replay, the exact internal behaviour will be reproduced. One gets ER without modifying the code of the applications program. This is a huge advantage over conventional approaches that require that the software adheres strictly to certain protocols. Also the overhead should be minimal.There is some more to the idea though. I presented a paper "A particular bug trap: Execution replay for Virtual machines" on this idea at a conference last week (http://aadebug2003.elis.rug.ac.be/). See link below.
I am working on the implementation myself but of course: any help is welcome. I will put up a small website in the next weeks and post again. If anyone is interested in the project already, get in contact with me via o.oppitz at gmx d O T net. I'd be happy to share my ideas.
Regards,
Oliver
The paper "A particular bug trap: Execution replay for Virtual machines" can be found at http://213.203.244.62/paper.short.pdf
http://213.203.244.62/paper.long.pdf
Note, that there is a way to work around the limitations of the Intel architecture mentioned in the paper. So I am pursuing this project on x86.Further information on Execution replay can be found at
http://www.zealcore.com/
http://www.mrtc.mdh.se/projects/getProject.php3?id=0044
The approach is different but already applied in an industrial context (VxWorks).-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Signature · 23 lines
+-------------------+---------------------------------------- | [email protected] | http://www-personal.umich.edu/~dunlapg +-------------------+---------------------------------------- | ...there be many, many ancient systems in the world, and it | is the decree of the dreaded god Murphy that thy next | employment just might be on one. While thou sleepest, he | plotteth against thee. Awake and take care. | - Henry Spencer, "The Ten Commandments for C Programmers" +------------------------------------------------------------ | Outlaw Junk Email! Support HR 1748 (www.cauce.org) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Hi George!
(We exchanged a few emails regarding CoVirt/ReVirt some months ago ;)
Quoted 3 lines · George Washington Dunlap III
Hello! I just found this thread, and I thought you might be interested in our work on ReVirt:
http://www.eecs.umich.edu/CoVirt/umlinux.html
A few days ago this address was offline. Now it's back online but when I try to download the tgz:
Not Found
The requested URL /CoVirt/revirt-dist-072003a.tgz was not found on this server.
Just to let you know ;)
Regards,
Nuno Silva
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Sorry for the halfway-OT posts: if you want to hear more of this discussion, e-mail me and I'll make sure to cc you.
FYI, our departmental web server had a disk crash a few days ago, and they're working to restore the files from tape backup. It should be back up in a few days.
In the mean time, I posted a mirror on my own personal site:
http://www.gospeljam.org/misc/revirt-dist-072003a.tgz
This contains our modified host kernel, modified UMLinux kernel, a README and a basic environment to get things running. Let me know if you have any questions.
Again, sorry for the noise -- last one I'll send 'till I have a UML version of ReVirt to announce (or some implementation questions to discuss). =)
Peace,
-George
Quoted 23 lines · Nuno Silva
Hi George!
(We exchanged a few emails regarding CoVirt/ReVirt some months ago ;)Quoted 4 lines · George Washington Dunlap III
Hello! I just found this thread, and I thought you might be interested in our work on ReVirt:
http://www.eecs.umich.edu/CoVirt/umlinux.htmlA few days ago this address was offline. Now it's back online but when I try to download the tgz:
Not Found
The requested URL /CoVirt/revirt-dist-072003a.tgz was not found on this server.Just to let you know ;)
Regards,
Nuno Silva
Signature · 22 lines
+-------------------+---------------------------------------- | [email protected] | http://www-personal.umich.edu/~dunlapg +-------------------+---------------------------------------- | ...there be many, many ancient systems in the world, and it | is the decree of the dreaded god Murphy that thy next | employment just might be on one. While thou sleepest, he | plotteth against thee. Awake and take care. | - Henry Spencer, "The Ten Commandments for C Programmers" +------------------------------------------------------------ | Outlaw Junk Email! Support HR 1748 (www.cauce.org) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel