[Mono-bugs] [Bug 421098] New: --debug-cast causes NRE in SimpleCollator..ctor
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Aug 28 10:41:33 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=421098
Summary: --debug-cast causes NRE in SimpleCollator..ctor
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=236036)
--> (https://bugzilla.novell.com/attachment.cgi?id=236036)
Exception from a WinForms app, showing the same root exception as in the simple
case.
Running an app that accesses culture info fails with a NullReferenceException
when run with --debug=casts. See the exception below, also an example stack
trace from a WinForms app is attached.
Seen on Linux SVN HEAD.
Logging it as runtime...
Exception from the simple app below:
[[
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at Mono.Globalization.Unicode.SimpleCollator..ctor
(System.Globalization.CultureInfo culture) [0x00006] in
/usr/local/src/mono/mcs/class/corlib/Mono.Globalization.Unicode/SimpleCollator.cs:171
at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo
ci) [0x00067] in
/usr/local/src/mono/mcs/class/corlib/System.Globalization/CompareInfo.cs:96
at System.Globalization.CultureInfo.get_CompareInfo () [0x00033] in
/usr/local/src/mono/mcs/class/corlib/System.Globalization/CultureInfo.cs:468
at AccessSimpleCollator.Main () [0x00000]
]]
App:
[[
class AccessSimpleCollator
{
static void Main ()
{
// Access IPAddress..cctor -> ... ->
Mono.Globalization.Unicode.SimpleCollator..cctor -> ...
//int x = System.Net.IPAddress.HostToNetworkOrder (0x55AA);
//System.Console.WriteLine (x);
//----
// Or more directly...
object y =
System.Globalization.CultureInfo.CurrentCulture.CompareInfo;
}
}
]]
> gmcs AccessSimpleCollator.cs
> mono --debug=casts AccessSimpleCollator.exe
..crash...
The app also failed with --trace as is described in bug 421022. Or did before
I updated today. With both options together it fails with SIGSEGV.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list