Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daikon.Daikon crashes in presence of shutdown hooks #1

Open
mernst opened this issue Jun 14, 2015 · 0 comments
Open

Daikon.Daikon crashes in presence of shutdown hooks #1

mernst opened this issue Jun 14, 2015 · 0 comments

Comments

@mernst
Copy link
Member

mernst commented Jun 14, 2015

Originally reported on Google Code with ID 1

package example;

public final class Failure2 {

   public static void main(String[] args) throws Exception {
      Runtime.getRuntime().addShutdownHook(new Thread()
      {
         public void run()
         {
            //noop
         }
      });                  
   }
}


/*

When a shutdown hook is present, the Daikon analysis crashes:  

>> daikon.Daikon trace1.dtrace.gz --format java --no_text_output --config 
daikon/annotate_nullable.config

Daikon version 4.6.0, released July 1, 2009; 
http://pag.csail.mit.edu/daikon.
Processing trace data; reading 1 dtrace file:
Error at line 183 in file trace1.dtrace.gz: Mismatch between .dtrace file 
and .d
ecls file.  Expected variable this, got  for program point example.Failure2
$1.ru
n():::ENTER

>> here is the trace1 end produced with Chicory:


example.Failure2.main(java.lang.String[]):::EXIT13
this_invocation_nonce
0
args
9182681
1
args.getClass()
"java.lang.String[]"
1
args[..]
[]
1
args[..].toString
[]
1

example.Failure2$1.run():::ENTER
this_invocation_nonce
2

# EOF (added by Runtime.addShutdownHook)

*/

Reported by Stephan.Heiss on 2009-09-10 13:58:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant