Skip to content

Commit a9014ed

Browse files
committed
Updated readme, licenses, removed some spurious debug lines
1 parent c8e49f9 commit a9014ed

5 files changed

Lines changed: 124 additions & 5 deletions

File tree

Code/ChroniclerJ/lib/asm-license

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Copyright (c) 2000-2011 INRIA, France Telecom
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions
6+
are met:
7+
8+
1. Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright
12+
notice, this list of conditions and the following disclaimer in the
13+
documentation and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holders nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29+
THE POSSIBILITY OF SUCH DAMAGE.

Code/ChroniclerJ/lib/asm-src.zip

-671 KB
Binary file not shown.

Code/ChroniclerJ/license.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
This software is released under the MIT license:
2+
3+
Copyright © 2012, by The Trustees of Columbia University in the City of New York.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10+
11+
12+
13+
This project makes use of the following libraries:
14+
* [ASM](http://asm.ow2.org/license.html), (c) 2000-2011 INRIA, France Telecom, [license](http://asm.ow2.org/license.html)
15+
* [Cloning](https://code.google.com/p/cloning/), (c) 2009 Konstantinos Kougios, released under the Apache License 2.0
16+
* [KXML2](http://kxml.sourceforge.net/kxml2/), (c) 1999-2005, Stefan Haustein, released under the BSD license
17+
* [Objenesis](http://code.google.com/p/objenesis/), © 2006-2012, Joe Walnes, Henri Tremblay and Leonardo Mesquita, released under the Apache License 2.0
18+
* [Log4j](http://logging.apache.org/log4j/), (c) 1999-2012, Apache Software Foundation, released under the Apache License 2.0
19+
* [XStream](http://xstream.codehaus.org/, (c) 2003-2006, Joe Walnes and (c) 2006-2009, 2011 XStream Committers, released under [a BSD license](http://xstream.codehaus.org/license.html)

Code/ChroniclerJ/src/edu/columbia/cs/psl/chroniclerj/Main.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public static void main(String[] args) {
2424
argOffset++;
2525
Constants.MAX_LOG_SIZE=Integer.parseInt(args[1].replace("-mxLog", ""));
2626
}
27-
System.out.println("Offset " + argOffset);
2827
String[] instrumenterArgs = new String[args.length-1- argOffset];
2928

3029
instrumenterArgs[0] = args[1+argOffset];
@@ -33,7 +32,6 @@ public static void main(String[] args) {
3332
for (int i = 4+argOffset; i < args.length; i++) {
3433
instrumenterArgs[i-argOffset] = args[i];
3534
}
36-
System.out.println(Arrays.deepToString(instrumenterArgs));
3735
Instrumenter._main(instrumenterArgs);
3836
Replayer._main(new String[] { args[1+argOffset], args[3+argOffset] });
3937
}

README.md

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,80 @@
11
ChroniclerJ [Chronicler implemented in Java]
22
=======
33

4-
Lightweight Recording of Nondeterministic Inputs to Reproduce Field Failures
4+
*Lightweight Recording of Nondeterministic Inputs to Reproduce Field Failures*
55

6-
For more information, see our Technical Report:
7-
http://mice.cs.columbia.edu/getTechreport.php?techreportID=1512&format=pdf
6+
**ChroniclerJ** is a system for recording buggy program executions in the field and reproducing them in the lab. **ChroniclerJ** is our Java implementation of **Chronicler**, a generalized record and replay approach for VM-based languages.
7+
8+
This repository contains the source and a [runnable binary](https://github.com/Programming-Systems-Lab/chroniclerj/blob/master/chroniclerj-0.4.jar) for **ChroniclerJ**.
9+
10+
###For more information
11+
Please see our Technical Report:
12+
<http://mice.cs.columbia.edu/getTechreport.php?techreportID=1512&format=pdf>, or email [Jonathan Bell](mailto:jbell@cs.columbia.edu)
13+
14+
Running
15+
-----
16+
### Instrumenting your code
17+
Before deploying your code, you need to run the **ChroniclerJ** instrumenter, which will produce two copies of your program: one for deployment (with logging code), and one for replay purposes (with code that reads back from the log).
18+
19+
To run the instrumenter, use the command `java -jar chroniclerj-0.4.jar -instrument {-mxLogN} input ouputLocationDeploy outputLocationReplay`, where:
20+
* `{-mxLogN}` is an optional parameter indiciating that at most `N` items should be stored in the in-memory logfile before it is flushed to disk
21+
* `input` is the path that contains the .class files, .jar files, etc that need to be instrumented (e.g. what you would be deploying normally)
22+
* `outputLocationDeploy` is where you would like the generated code (for deployment) to be placed
23+
* `outputLocationReplay` is where you would like the generated code (for running replays) to be placed
24+
25+
It is important that *all* libraries that you plan to deploy with your application are instrumented. We suggest running the instrumenter at the top level folder that you were going to deploy, which might contain several jar files, several class files, etc.
26+
27+
### Collecting test cases
28+
Deploy your code as you normally would, but deploy the code that was instrumented and placed in `outputLocationDeploy` rather than your original, uninstrumented code. Make sure that the **ChroniclerJ** jar is in your classpath too.
29+
30+
When an uncaught exception ocurrs, **ChroniclerJ** generates a test case. You can manually invoke this process (e.g. from your own exception handler) by calling the method `ChroniclerJExceptionRunner.genTestCase()`. Users are notified that a test case was generated, which is placed in the current working directory and has the name format chroniclerj-crash-*currenttime*.test. The test case file contains all logs necessary to replay the execution.
31+
32+
### Replaying test cases
33+
To replay the failed executions, run the command `java -jar chroniclerj-0.4.jar -replay testCase {classpath}`, where
34+
* `testCase` is the test case to run
35+
* `{classpath}` is a space-delimited classpath passed to your program when it starts to replay
36+
37+
Building
38+
-----
39+
**ChroniclerJ** is an eclipse project, and should simply be added to eclipse, and built as a Java project.
40+
41+
###Packaging
42+
To create the **ChroniclerJ** jar, first run the `unpackLibs.sh` command to unpack the libraries that **ChroniclerJ** depends on, then `makeJar.sh` to generate a jar file with **ChroniclerJ** and its libraries embedded.
43+
44+
License
45+
------
46+
This software is released under the MIT license.
47+
48+
Copyright (c) 2012, by The Trustees of Columbia University in the City of New York.
49+
50+
Permission is hereby granted, free of charge, to any person obtaining
51+
a copy of this software and associated documentation files (the
52+
"Software"), to deal in the Software without restriction, including
53+
without limitation the rights to use, copy, modify, merge, publish,
54+
distribute, sublicense, and/or sell copies of the Software, and to
55+
permit persons to whom the Software is furnished to do so, subject to
56+
the following conditions:
57+
58+
The above copyright notice and this permission notice shall be
59+
included in all copies or substantial portions of the Software.
60+
61+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
62+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
63+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
64+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
65+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
66+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
67+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
68+
69+
70+
Acknowledgements
71+
-----
72+
This project makes use of the following libraries:
73+
* [ASM](http://asm.ow2.org/license.html), (c) 2000-2011 INRIA, France Telecom, [license](http://asm.ow2.org/license.html)
74+
* [Cloning](https://code.google.com/p/cloning/), (c) 2009 Konstantinos Kougios, released under the Apache License 2.0
75+
* [KXML2](http://kxml.sourceforge.net/kxml2/), (c) 1999-2005, Stefan Haustein, released under the BSD license
76+
* [Objenesis](http://code.google.com/p/objenesis/), © 2006-2012, Joe Walnes, Henri Tremblay and Leonardo Mesquita, released under the Apache License 2.0
77+
* [Log4j](http://logging.apache.org/log4j/), (c) 1999-2012, Apache Software Foundation, released under the Apache License 2.0
78+
* [XStream](http://xstream.codehaus.org/, (c) 2003-2006, Joe Walnes and (c) 2006-2009, 2011 XStream Committers, released under [a BSD license](http://xstream.codehaus.org/license.html)
79+
80+
The authors of this software are [Jonathan Bell](http://jonbell.net), [Nikhil Sarda](https://github.com/diffoperator/) and [Gail Kaiser](http://www.cs.columbia.edu/~kaiser/). The authors are members of the [Programming Systems Laboratory](http://www.psl.cs.columbia.edu/), funded in part by NSF CCF-1161079, NSF CNS-0905246 and NIH 2 U54 CA121852-06.

0 commit comments

Comments
 (0)