[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stac
From: |
Marcus Urban |
Subject: |
[Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stack overflow |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux 2.4.21-144-athlon; X11; i686; en_US) (KHTML, like Gecko) |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #10202] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10202>
Project: DotGNU Portable.NET
Submitted by: Marcus Urban
On: Sun 08/29/2004 at 04:18
Category: None
Severity: 5 - Average
Item Group: None
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: Calling GetTypeCode on enums causes stack overflow
Original Submission: With the declaration
enum Fruit { Apple, Orange };
calling Type.GetTypeCode(typeof(Fruit)) should return "Byte", but under Pnet,
the result is a stack overflow.
Uncaught exception: System.StackOverflowException: The requested operation
caused a stack overflow
at System.Reflection.ClrType.IsSubclassOf(Type)
at System.Type.get_IsEnum() in ./System/Type.cs:232
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1085
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
File Attachments
-------------------
-------------------------------------------------------
Date: Sun 08/29/2004 at 04:18 Name: gettypecode.cs Size: 165B By: mathpup
Test case
http://savannah.gnu.org/bugs/download.php?item_id=10202&item_file_id=1622
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10202>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stack overflow,
Marcus Urban <=