Skip to content

Hangup on parsing NHibernate mapping #11

Description

@aegoroff

After replacing system default configuration by NConfig configuration and trying to use the app that has NHibernate mapping the app hangup. Here is stack trace:

0, ntoskrnl.exe!PoStartNextPowerIrp+0x17e7
1, ntoskrnl.exe!KeWaitForMultipleObjects+0xf5d
2, ntoskrnl.exe!KeWaitForMutexObject+0x19f
3, ntoskrnl.exe!PoStartNextPowerIrp+0xba4
4, ntoskrnl.exe!PoStartNextPowerIrp+0x1821
5, ntoskrnl.exe!PoStartNextPowerIrp+0x1a97
6, DeviceLockDriver0.SYS+0x2df4d
7, ntdll.dll!NtQueryAttributesFile+0xa
8, KernelBase.dll!GetFileAttributesW+0x78
9, kernel32.dll!GetLongPathNameW+0x7b
10, DomainNeutralILStubClass.IL_STUB_PInvoke(Char*, Char*, Int32) + 0x7b <-- mscorlib.ni.dll+0x54ad8b
11, System.IO.PathHelper.TryExpandShortFileName() + 0xc8 <-- mscorlib.ni.dll+0x4d2c68
12, System.IO.Path.NormalizePath(System.String, Boolean, Int32, Boolean) + 0x53b <-- mscorlib.ni.dll+0x531d3b
13, System.IO.Path.GetFullPathInternal(System.String) + 0x3a <-- mscorlib.ni.dll+0x52788a
14, NConfig.ConfigurationRepositoryWeb.ToAbsolutePath(System.String) + 0x11 <-- 0x7fe97eeb6d1
15, NConfig.ConfigurationRepository.GetFileConfiguration(System.String) + 0x35 <-- 0x7fe97eeb585
16, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x3fa <-- 0x7fe97ef14aa
17, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
18, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
19, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
20, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
21, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
22, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
23, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
24, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
25, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
26, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
27, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
28, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
29, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
30, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
31, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
32, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
33, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
34, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
35, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
36, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
37, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
38, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
39, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
40, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
41, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
42, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
43, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
44, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
45, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
46, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
47, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
48, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
49, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
50, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
51, NConfig.NMultifileConfiguration.GetDefaultSection(System.String) + 0x1e <-- 0x7fe97ef17de
52, NConfig.NMultifileConfiguration.GetSection(System.String) + 0x502 <-- 0x7fe97ef15b2
53, NConfig.NMultifileConfiguration.GetSectionUntyped(System.String) + 0x48 <-- 0x7fe97ef1018
54, System.Xml.XmlConfiguration.XmlReaderSection.get_ProhibitDefaultUrlResolver() + 0x2b <-- System.Xml.ni.dll+0x13f36b
55, System.Xml.Schema.XmlSchemaValidator.Init() + 0x152 <-- System.Xml.ni.dll+0x156eb2
56, System.Xml.XsdValidatingReader.SetupValidator(System.Xml.XmlReaderSettings, System.Xml.XmlReader, System.Xml.Schema.XmlSchemaObject) + 0x9e <-- System.Xml.ni.dll+0x127ade
57, System.Xml.XsdValidatingReader..ctor(System.Xml.XmlReader, System.Xml.XmlResolver, System.Xml.XmlReaderSettings, System.Xml.Schema.XmlSchemaObject) + 0xd6 <-- System.Xml.ni.dll+0x127786
58, System.Xml.XmlReaderSettings.AddValidationAndConformanceWrapper(System.Xml.XmlReader) + 0x8f <-- System.Xml.ni.dll+0x79a165
59, NHibernate.Cfg.Configuration.LoadMappingDocument(System.Xml.XmlReader, System.String) + 0x9d <-- 0x7fe9c8bffbd
60, NHibernate.Cfg.Configuration.AddInputStream(System.IO.Stream, System.String) + 0x59 <-- 0x7fe9c8bfdc9
61, NHibernate.Cfg.Configuration.AddDocument(System.Xml.XmlDocument, System.String) + 0xdc <-- 0x7fe9c93edcc
62, NHibernate.Envers.Configuration.EntitiesConfigurator.Configure(NHibernate.Cfg.Configuration, NHibernate.Envers.Configuration.Store.IMetaDataStore, NHibernate.Envers.Configuration.GlobalConfiguration, NHibernate.Envers.Configuration.AuditEntitiesConfiguration, System.Xml.XmlDocument, System.Xml.XmlElement, System.Type) + 0x4b7 <-- 0x7fe9c9250d7
63, NHibernate.Envers.Configuration.AuditConfiguration..ctor(NHibernate.Cfg.Configuration, NHibernate.Envers.Configuration.Store.IMetaDataProvider, System.Type) + 0x1f0 <-- 0x7fe9c90a430
64, NHibernate.Envers.Configuration.AuditConfiguration.GetFor(NHibernate.Cfg.Configuration, System.Type) + 0x153 <-- 0x7fe9c905dc3
65, NHibernate.Cfg.NhConfigurationExtension.IntegrateWithEnvers(NHibernate.Cfg.Configuration, NHibernate.Envers.Event.AuditEventListener, NHibernate.Envers.Configuration.Store.IMetaDataProvider) + 0x2f <-- 0x7fe9c903d8f

I research the problem and found that NConfig GetSection method are constantly called with parameter value system.xml/xmlReader

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions