DotGNU Portable.NET - Bugs: bug #4535, mscorlib value types being marked...
You are not allowed to post comments on this tracker with your current authentication level.
bug #4535: mscorlib value types being marked as regular classes
Submitter: | Richard Baumann <Rich333> | ||
Submitted: | Wed 30 Jul 2003 06:17:48 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Mon 04 Aug 2003 06:50:10 AM UTC, comment #3: |
Rhys Weatherley <rweather> |
Thu 31 Jul 2003 03:40:41 PM UTC, comment #2: I found this bug because mcs.exe is failing to verify, because of an initobj on System.Char. The IsCPPointer check in the INITOBJ case in verify_obj.c is failing because the ILType_FromValueType on classInfo is returning what appears to be garbage. The ILTypeIdentical fails as a result, and a verification exception is thrown. The attached file generates a dynamic assembly which, when run, gives the same verification exception, for the same reason. |
Richard Baumann <Rich333> |
Thu 31 Jul 2003 12:49:27 AM UTC, comment #1: The information that indicates that a type is a value type |
Rhys Weatherley <rweather> |
Wed 30 Jul 2003 06:17:48 PM UTC, original submission:
The basic mscorlib value types (e.g. Int32, Char) are being marked as regular classes when referenced from other assemblies. This is causing things like initobj on these types to fail verification. Within mscorlib they seem to be treated properly. You can see things like "box class [mscorlib]System.Char" by "ildasm pnetlib/System/System.dll | grep System.Char". The problem appears to be in the ILClass attributes for these types. I printf'd the attribs for System.Char (at least, that's what the classInfo's ILClassName said it was) in the INITOBJ case in verify_obj.c and it came out as 0x2109. I'm not sure if the missing IL_META_TYPEDEF_SYSTEM_MASK bits are a part of the problem, but I know the missing IL_META_TYPEDEF_CLASS_SEMANTICS_MASK bits are.
|
Richard Baumann <Rich333> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2003-08-04 | rweather | Status | None | None | |
Open/Closed | Open | None |
Powered by Savane 3.13-02a9.
Corresponding source code
Fix commited by Gopal - 1 Aug 2003