[Mono-bugs] [Bug 348646] New: Crash when setting ApplicationSettingsBase property if other value if null
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 14 03:00:46 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=348646
Summary: Crash when setting ApplicationSettingsBase property if
other value if null
Product: Mono: Class Libraries
Version: 1.2.6
Platform: x86
OS/Version: Windows Server 2003
Status: NEW
Severity: Major
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: justin.cherniak at gmail.com
QAContact: mono-bugs at ximian.com
Found By: ---
Created an attachment (id=187586)
--> (https://bugzilla.novell.com/attachment.cgi?id=187586)
Test case that demonstrates the bug
Overview Description:
When setting a setting on an ApplicationSettingsBase, if another setting which
has the SettingsSerializeAs(SettingsSerializeAs.Xml) attribute on it is null, a
crash occurs.
Steps to Reproduce:
See attached test case
Actual Results:
The application crashed with the following stack trace:
Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: s
at System.IO.StringReader..ctor (System.String s) [0x00031] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\corlib\System.IO\StringReader.cs:55
at (wrapper remoting-invoke-with-check) System.IO.StringReader:.ctor (string)
at Mono.Xml2.XmlTextReader..ctor (System.String xmlFragment, XmlNodeType
fragType, System.Xml.XmlParserContext context) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System.XML\System.Xml\XmlTextReader.cs:166
at System.Xml.XmlTextReader..ctor (System.String xmlFragment, XmlNodeType
fragType, System.Xml.XmlParserContext context) [0x00006] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System.XML\System.Xml\XmlTextReader2.cs:119
at System.Xml.XmlDocumentFragment.set_InnerXml (System.String value)
[0x00081] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System.XML\System.Xml\XmlDocumentFragment.cs:69
at System.Configuration.CustomizableFileSettingsProvider.SaveProperties
(System.Configuration.ExeConfigurationFileMap exeMap,
System.Configuration.SettingsPropertyValueCollection collection,
ConfigurationUserLevel level, System.Configuration.SettingsContext context,
Boolean checkUserLevel) [0x00191] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\CustomizableFileSettingsProvider.cs:597
at System.Configuration.CustomizableFileSettingsProvider.SetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyValueCollection collection) [0x00041] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\CustomizableFileSettingsProvider.cs:692
at System.Configuration.LocalFileSettingsProvider.SetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyValueCollection values) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\LocalFileSettingsProvider.cs:95
at System.Configuration.ApplicationSettingsBase.Save () [0x00099] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\ApplicationSettingsBase.cs:121
at Program.Main (System.String[] args) [0x00000]
Expected Results:
The program shouldn't crash (running on MS.NET does not crash).
Build Date & Platform:
Mono JIT compiler version 1.2.6 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none
--
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