Bug 8608 - NullReferenceException in System.Web.Caching.CacheItemLRU.set_Item
Summary: NullReferenceException in System.Web.Caching.CacheItemLRU.set_Item
Status: ASSIGNED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Marek Habersack
URL:
Depends on:
Blocks:
 
Reported: 2012-11-27 02:34 UTC by Keiichi Iguchi
Modified: 2012-11-27 18:35 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 8608 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
ASSIGNED

Description Keiichi Iguchi 2012-11-27 02:34:47 UTC
System.Web.Compilation.ParseException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object
          at System.Collections.Generic.LinkedListNode`1[System.Web.Caching.CacheItem].InsertBetween (System.Collections.Generic.LinkedListNode`1 previousNode, System.Collections.Generic.LinkedListNode`1 nextNode, System.Collections.Generic.LinkedList`1 list) [0x00000] in /usr/local/src/mono-2.10.9/mcs/class/System/System.Collections.Generic/LinkedListNode.cs:87 
          at System.Collections.Generic.LinkedList`1[System.Web.Caching.CacheItem].AddFirst (System.Collections.Generic.LinkedListNode`1 node) [0x0001d] in /usr/local/src/mono-2.10.9/mcs/class/System/System.Collections.Generic/LinkedList.cs:135 
          at System.Web.Caching.CacheItemLRU.set_Item (System.String key, System.Web.Caching.CacheItem value) [0x0008c] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Caching/CacheItemLRU.cs:193 
          at System.Web.Caching.Cache.SetItemTimeout (System.Web.Caching.CacheItem ci, DateTime absoluteExpiration, TimeSpan slidingExpiration, System.Web.Caching.CacheItemRemovedCallback onRemoveCallback, System.Web.Caching.CacheItemUpdateCallback onUpdateCallback, System.String key, Boolean doLock) [0x0006a] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Caching/Cache.cs:329 
          at System.Web.Caching.Cache.Insert (System.String key, System.Object value, System.Web.Caching.CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, System.Web.Caching.CacheItemRemovedCallback onRemoveCallback, System.Web.Caching.CacheItemUpdateCallback onUpdateCallback, Boolean doLock) [0x000cc] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Caching/Cache.cs:287 
          at System.Web.Caching.Cache.Insert (System.String key, System.Object value) [0x00000] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Caching/Cache.cs:239 
          at System.Web.UI.MasterPageParser.AddContentPlaceHolderId (System.String id) [0x00017] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.UI/MasterPageParser.cs:127 
          at System.Web.UI.WebControls.ContentPlaceHolderBuilder.Init (System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, System.Type type, System.String tagName, System.String ID, IDictionary attribs) [0x000a6] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.UI.WebControls/ContentPlaceHolderBuilder.cs:59 
          at System.Web.UI.ControlBuilder.CreateBuilderFromType (System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, System.Type type, System.String tagName, System.String id, IDictionary attribs, Int32 line, System.String sourceFileName) [0x0004d] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.UI/ControlBuilder.cs:571 
          at System.Web.UI.ControlBuilder.CreateSubBuilder (System.String tagid, IDictionary atts, System.Type childType, System.Web.UI.TemplateParser pa
          at System.Web.UI.ControlBuilder.CreateSubBuilder (System.String tagid, IDictionary atts, System.Type childType, System.Web.UI.TemplateParser parser, ILocation location) [0x00124] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.UI/ControlBuilder.cs:750 
          at System.Web.Compilation.AspGenerator.ProcessTag (ILocation location, System.String tagid, System.Web.Compilation.TagAttributes atts, TagType tagtype, System.Boolean& ignored) [0x0015e] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:1269 
          --- End of inner exception stack trace ---
          at System.Web.Compilation.AspGenerator.ProcessTag (ILocation location, System.String tagid, System.Web.Compilation.TagAttributes atts, TagType tagtype, System.Boolean& ignored) [0x001bf] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:1279 
          at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x00107] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:911 
          at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x0001c] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspParser.cs:656 
          at System.Web.Compilation.AspParser.Parse () [0x00113] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspParser.cs:275 
          at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, Boolean doInitParser) [0x00029] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:615 
          at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].Parse () [0x00032] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs:87 
          at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].GenerateCode () [0x00000] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs:102 
          at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x0000b] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs:121 
          at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00081] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:798  Stack =   at System.Web.Compilation.AspGenerator.ProcessTag (ILocation location, System.String tagid, System.Web.Compilation.TagAttributes atts, TagType tagtype, System.Boolean& ignored) [0x001bf] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:1279 
          at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x00107] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:911 
          at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x0001c] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspParser.cs:656 
          at System.Web.Compilation.AspParser.Parse () [0x00113] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspParser.cs:275 
          at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, Boolean doInitParser) [0x00029] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs:615 
          at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].Parse () [0x00032] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs:87 
          at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].GenerateCode () [0x00000] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs:102 
          at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x0000b] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs:121 
          at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00081] in /usr/local/src/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:798
Comment 1 PJ 2012-11-27 11:07:42 UTC
Do you have any steps or a small test case that can reproduce the error?
Comment 2 Keiichi Iguchi 2012-11-27 18:28:12 UTC
Sorry, I cant reproduce the error.
It occurred when the server is busy.

I suspect that two or more threads accessed the head of the list simultaneously.
Comment 3 PJ 2012-11-27 18:35:42 UTC
Ok thanks for the response! I'll see if grendel can take a look (his area), but he's overworked as it is so it might be a bit.