[Soot-list] Soot Exception using Paddle

Jochen Huck jochen.huck at student.kit.edu
Thu Feb 17 13:26:22 EST 2011


Hi again,

I am sorry - but I was wrong. The exception has nothing to do with SPARK 
or Paddle. Its just the version of the JastAdd frontend, that is 
responsible for the error. I downloaded sootclasses.jar today from 
http://plg.uwaterloo.ca/~olhotak/build/. It works with the release 2.4.0.

Jochen

Am 17.02.2011 18:06, schrieb Jochen Huck:
> Hi,
>
> if I use SPARK for generating a call graph everything is fine. Using
> Paddle I encounter following  exception:
>
> Error generating ij.Menus: void installJarPlugins() {
>       if(jarFiles == null)
>         return ;
>       installingJars = true;
>       for(int i = 0; i<  jarFiles.size(); i++) {
>         isJarErrorHeading = false;
>         String jar = (String)jarFiles.elementAt(i);
>         InputStream is;
>         is = getConfigurationFile(jar);
>         if(is == null)
>           continue ;
>         int maxEntries = 100;
>         String[] entries = new String[maxEntries];
>         int nEntries = 0;
>         LineNumberReader lnr = new LineNumberReader(new
> InputStreamReader(is));
>         try {
>           while(true){
>             String s;
>             s = lnr.readLine();
>             if(s == null || nEntries == maxEntries - 1)
>               break ;
>             if(s.length()>= 3&&  !s.startsWith("#"))
>               entries[nEntries++] = s;
>           }
>         }
>         catch (IOException e) {
>         }
>         finally {
>           try {
>             if(lnr != null)
>               lnr.close();
>           }
>           catch (IOException e) {
>           }
>         }
>         for(int j = 0; j<  nEntries; j++)
>           installJarPlugin(jar, entries[j]);
>       }
>       return ;
>     }
> Exception in thread "Thread-4" java.lang.RuntimeException: Chain already
> contains object: nop
>       at soot.util.HashChain.addLast(HashChain.java:283)
>       at soot.util.HashChain.add(HashChain.java:66)
>       at soot.PatchingChain.add(PatchingChain.java:65)
>       at soot.JastAddJ.Body.add(Body.java:128)
>       at soot.JastAddJ.Body.addLabel(Body.java:154)
>       at soot.JastAddJ.TryStmt.jimplify2(TryStmt.java:186)
>       at soot.JastAddJ.Block.jimplify2(Block.java:91)
>       at soot.JastAddJ.TryStmt.emitFinallyCode(TryStmt.java:177)
>       at soot.JastAddJ.TryStmt.jimplify2(TryStmt.java:212)
>       at soot.JastAddJ.Block.jimplify2(Block.java:91)
>       at soot.JastAddJ.ForStmt.jimplify2(ForStmt.java:160)
>       at soot.JastAddJ.Block.jimplify2(Block.java:91)
>       at soot.JastAddJ.MethodDecl.jimplify2(MethodDecl.java:872)
>       at
> soot.JastAddInitialResolver$1.getBody(JastAddInitialResolver.java:127)
>       at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:82)
>       at soot.SootMethod.retrieveActiveBody(SootMethod.java:315)
>       at
> soot.jimple.paddle.TradStaticCallBuilder.processMethod(TradStaticCallBuilder.java:60)
>       at
> soot.jimple.paddle.TradStaticCallBuilder.update(TradStaticCallBuilder.java:44)
>       at
> soot.jimple.paddle.DependencyManager.update(DependFrom - Thu Feb 17 19:26:12 2011
> X-Mozilla-Status: 0001
> X-Mozilla-Status2: 00000000
> From: Jochen Huck
> To: "soot-list at sable.mcgill.ca"
> Date: Thu, 17 Feb 2011 18:39:35 +0100
> Subject: Re: [Soot-list] Soot Exception using Paddle
> Thread-Topic: [Soot-list] Soot Exception using Paddle
> Message-ID:<4D5D5D57.1040907 at student.kit.edu>
> References:<4D5D557C.40509 at student.kit.edu>
> In-Reply-To:<4D5D557C.40509 at student.kit.edu>
> Accept-Language: de-DE
> Content-Language: de-DE
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> user-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13)
>   Gecko/20101207 Thunderbird/3.1.7
> fcc: imap://jochen.huck@imap.kit.edu/Sent
> x-identity-key: id3
> x-mozilla-draft-info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0
> Content-Type: text/html; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> MIME-Version: 1.0
>
>
>
>
>      
>
>      Hi again,
>
>
>
>      I am sorry - but I was wrong. The exception has nothing to do with
>      SPARK or Paddle. Its just the version of the JastAdd frontend, that
>      is responsible for the error. I downloaded sootclasses.jar today
>      from
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20110217/3dea64e1/attachment.html 


More information about the Soot-list mailing list