Red Gate forums :: View topic - Exception not caught and stacktrace undecodeable
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

Exception not caught and stacktrace undecodeable

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Tue Sep 28, 2010 4:19 am    Post subject: Exception not caught and stacktrace undecodeable Reply with quote

I have two rather strange bugs here which I simply cant trace down.
First, because the stacktrace doesnt decode to anything useful, seems like its actually happening inside obfuscated SA code because the decoded stacktrace itself contains obfuscated calls seemingly outside our code.
Second, the exception thrown is in one case not throwable from anywhere in out code ( FormatException complaining about invalid Base64 chars ) and in the other case its explicitly catched yet is thrown and catched upwards only (IndexOutOfRangeException).

And, one of the bugs (FormatException) happens only when I use a debug executable with obfuscated release mode libraries. The other happens only in release/obfuscated mode.

I do have the slight feeling this might be an SA bug.

Any idea where to start searching? I can send the decoded stacktrace, maybe it decodes for you to something useful.
Back to top
View user's profile Send private message MSN Messenger
Chris.Allen



Joined: 12 Mar 2009
Posts: 588

PostPosted: Thu Sep 30, 2010 2:52 pm    Post subject: Reply with quote

Just off the top of my head- I am wondering if part of the stack trace is from an (obfuscated) third party assembly? Is that possible?

Can you include an image of the exception report?
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Thu Sep 30, 2010 3:52 pm    Post subject: Reply with quote

Definitely no 3rd party assemblies involved.

Here is the (for me) undecodeable stack trace:
Code:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at #0o.#1o.#2o(Int32 )
   at (Int32 )
   at Uniwares.Net.Dns.Message.DomainUtils.DecodeDomain(Byte[] data, UInt16 start, UInt16& length)


DecodeDomain is wrapped in a try/catch(IndexOutOfRangeException) yet... you see. The #0o.#1o.#2o(Int32 ) is no longer inside our code.
Back to top
View user's profile Send private message MSN Messenger
Chris.Allen



Joined: 12 Mar 2009
Posts: 588

PostPosted: Mon Oct 04, 2010 12:52 pm    Post subject: Reply with quote

Which obfuscation mode are you using? (Is the decoding done using the direct stack decoding feature or through the exception reporting feature)? I think there are some issues with full decoding through the exception reporting feature but have not yet heard of any when using ASCII renaming.
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Mon Oct 04, 2010 1:40 pm    Post subject: Reply with quote

Direct stack decoding with ASCII renaming, report comes from a log file.
Back to top
View user's profile Send private message MSN Messenger
Chris.Allen



Joined: 12 Mar 2009
Posts: 588

PostPosted: Thu Oct 07, 2010 7:13 pm    Post subject: Reply with quote

Any chance we can try and reproduce here with a sample project? As I say, no known issues with ASCII decoding.
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Fri Oct 08, 2010 12:56 am    Post subject: Reply with quote

I am a bit short on time but will try to setup a sample project and send it over. Might take some days though.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group