Bug 318800 (MONO75881) - [PATCH] Pending init.. error when dll referenced from mcs
Summary: [PATCH] Pending init.. error when dll referenced from mcs
Status: RESOLVED FIXED
Alias: MONO75881
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Paolo Molaro
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 10:06 UTC by Jain Ankit
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
rt.dll : dll being referenced (12.00 KB, application/octet-stream)
2005-08-23 10:07 UTC, Thomas Wiest
Details
xx.cs (93 bytes, text/plain)
2005-08-23 10:08 UTC, Thomas Wiest
Details
Proposed patch (2.82 KB, patch)
2005-08-23 12:07 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:28:12 UTC


---- Reported by jankit@novell.com 2005-08-23 03:06:22 MST ----

In mono_class_from_typeref don't call mono_class_init as it might've been
called recursively from mono_class_init itself.

Attached is the proposed patch and two files (rt.dll & xx.cs)
To reproduce the problem:

$ mcs /r:rt.dll xx.cs

It gives

** ERROR **: pending init java.io.ObjectInputStream

aborting...
Aborted



---- Additional Comments From jankit@novell.com 2005-08-23 03:07:41 MST ----

Created an attachment (id=168401)
rt.dll : dll being referenced




---- Additional Comments From jankit@novell.com 2005-08-23 03:08:20 MST ----

Created an attachment (id=168402)
xx.cs




---- Additional Comments From jankit@novell.com 2005-08-23 05:07:49 MST ----

Created an attachment (id=168403)
Proposed patch




---- Additional Comments From miguel@ximian.com 2005-08-23 15:47:56 MST ----

Paolo, this is necessary for our mainsoft collaboration, could you
review/approve?



---- Additional Comments From lupus@ximian.com 2005-08-24 10:08:24 MST ----

Ankit, please commit, thanks.
Could you test also if ilasm allows to encode a scope typeref
where the name is itself a nested type expression?
That is, say you have a class like:
class T {
  class A {
    class B {
    }
  }
}

And see if it's possible to output a scope name of:
 "A/B"
You may need to change ilasm or PEAPI to do this and check if the
resulting assembly ius understood by peverify and the MS runtime.
In that case we want to use something like the return_nested_in()
function (and making the runtime lazily load the nested types).



---- Additional Comments From jankit@novell.com 2005-08-24 11:31:01 MST ----

lupus, PEVerify.exe doesn't seem to like "A/B", gives "Unable to
resolve token".

Commited in svn r48780.

Imported an attachment (id=168401)
Imported an attachment (id=168402)
Imported an attachment (id=168403)

Unknown operating system unknown. Setting to default OS "Other".