[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soot-list
Subject:    Re: [Soot-list] nullpointerexception in retrieveActiveBody(), in points to analysis
From:       Richard Xiao <richardxx () cse ! ust ! hk>
Date:       2013-04-16 3:13:53
Message-ID: CAHwMiUt18xapZYO5B2YptpuoTa+HU6qk9GvzyxOGSpcFdzKoFw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Yes, I agree to Quentin. Perhaps you get method body after main returns.
Please comment the line "PackManager.v().writeOutput();" in the function
soot.Main.run. Then, you can do whatever after the main returns.

Cheers,
Xiao



On Mon, Apr 15, 2013 at 11:13 PM, Quentin Sabah <quentin.sabah@inria.fr>wrote:

> Hi Yufeng,
>
> It is hard to respond without knowing the arguments you pass to Soot and
> the moment you execute the "retrieveActiveBody". From the stack trace, I
> would say you try to get the method's body after Soot's main returned.
> In such case I'm not very surprised of the exception you get. I think
> Soot is doing a lot of cleaning before returning from the main.
>
> You could try to put your code in a bodyTransformer or a
> sceneTransformer and add it to the proper analysis phase.
>
> --
> Quentin Sabah, CIFRE Ph.D. student
> Grenoble University
> INRIA-SPADES                   | STMicroelectronics/AST
> Montbonnot, France             | Grenoble, France
> mailto:quentin.sabah@inria.fr  | mailto:quentin.sabah@st.com
> phone: +33 476 61 54 57        | phone: +33 476 58 44 14
> _______________________________________________
> Soot-list mailing list
> Soot-list@sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>



-- 
Richard Xiao Xiao
PhD Student @ CSE @ Hong Kong University of Science and Technology
www.cse.ust.hk/~richardxx

[Attachment #5 (text/html)]

<div dir="ltr">Yes, I agree to Quentin. Perhaps you get method body after main \
returns.<div style>Please comment the line &quot;PackManager.v().writeOutput();&quot; \
in the function soot.Main.run. Then, you can do whatever after the main \
returns.</div> <div style><br></div><div style>Cheers,</div><div style>Xiao</div><div \
style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On \
Mon, Apr 15, 2013 at 11:13 PM, Quentin Sabah <span dir="ltr">&lt;<a \
href="mailto:quentin.sabah@inria.fr" \
target="_blank">quentin.sabah@inria.fr</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi Yufeng,<br> <br>
It is hard to respond without knowing the arguments you pass to Soot and<br>
the moment you execute the &quot;retrieveActiveBody&quot;. From the stack trace, \
I<br> would say you try to get the method&#39;s body after Soot&#39;s main \
returned.<br> In such case I&#39;m not very surprised of the exception you get. I \
think<br> Soot is doing a lot of cleaning before returning from the main.<br>
<br>
You could try to put your code in a bodyTransformer or a<br>
sceneTransformer and add it to the proper analysis phase.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Quentin Sabah, CIFRE Ph.D. student<br>
Grenoble University<br>
INRIA-SPADES                   | STMicroelectronics/AST<br>
Montbonnot, France             | Grenoble, France<br>
mailto:<a href="mailto:quentin.sabah@inria.fr">quentin.sabah@inria.fr</a>  | \
                mailto:<a \
                href="mailto:quentin.sabah@st.com">quentin.sabah@st.com</a><br>
phone: <a href="tel:%2B33%20476%2061%2054%2057" value="+33476615457">+33 476 61 54 \
57</a>        | phone: <a href="tel:%2B33%20476%2058%2044%2014" \
value="+33476584414">+33 476 58 44 14</a><br> \
_______________________________________________<br> Soot-list mailing list<br>
<a href="mailto:Soot-list@sable.mcgill.ca">Soot-list@sable.mcgill.ca</a><br>
<a href="http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list" \
target="_blank">http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list</a><br> \
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Richard \
Xiao Xiao<br><div>PhD Student @ CSE @ Hong Kong University of Science and \
Technology<br></div><div><a href="http://www.cse.ust.hk/~richardxx" \
target="_blank">www.cse.ust.hk/~richardxx</a></div>

</div>



_______________________________________________
Soot-list mailing list
Soot-list@sable.mcgill.ca
http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic