Bug 24457 - Failed to map exception in System.Web under load
Summary: Failed to map exception in System.Web under load
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: 3.2.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-11-12 03:58 UTC by eetasoft
Modified: 2014-11-12 03:58 UTC (History)
1 user (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 24457 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:
NEW

Description eetasoft 2014-11-12 03:58:25 UTC
Mono MVC4 + Web API single page application is running in Debian with mod_modo.

Sending lot of requests rapidly by holding down F5 key in browser causes 500 errors returned from server. Those errors occurs occur randomly but are reproducible if F5 is hold down for some time.

For those requests apache error.log contains `Failed to map path` errors


For those requests apache error.log contains `Failed to map path` errors (below).

Stack trace points probably to line 1565 in https://github.com/mono/mono/blob/mono-3.2.1-branch/mcs/class/System.Web/System.Web/HttpRequest.cs#L1565  

It occurs before application code is executed. Usually url in the same, loading.gif image or js bundle.

git history show that this exception throwing was added some time ago. 
Commenting them out fixes the issue.
Can we remove those lines or is there better fix.



Versions:

    Mono: 3.2.1 (tarball E aug 19 21:33:54 EEST 2013); ASP.NET Version: 4.0.30319.17020
    mod_mono: 2.6.3
    Apache: 2.2.16

The following lines are added to mono config file:

    MonoMaxActiveRequests 0
    MonoMAxWaitingRequests 150

error_log:


    [Tue Dec 03 18:25:32 2013] [error] Command stream corrupted, last command was 1
    System.InvalidOperationException: Failed to map path '/css/images/browser.png'
      at System.Web.HttpRequest.MapPath (System.String virtualPath, System.String baseVirtualDir, Boolea
      at System.Web.HttpRequest.MapPath (System.String virtualPath) [0x00000] in <filename unknown>:0
      at System.Web.Hosting.HostingEnvironment.MapPath (System.String virtualPath) [0x00000] in <filenam
      at System.Web.Hosting.DefaultVirtualPathProvider.FileExists (System.String virtualPath) [0x00000]
      at Mono.WebServer.Paths.VirtualPathExists (IApplicationHost appHost, System.String verb, System.St
      at Mono.WebServer.Paths.GetPathsFromUri (IApplicationHost appHost, System.String verb, System.Stri
      at Mono.WebServer.ModMonoWorkerRequest.GetRequestData () [0x00000] in <filename unknown>:0
      at Mono.WebServer.MonoWorkerRequest.ReadRequestData () [0x00000] in <filename unknown>:0
      at Mono.WebServer.BaseApplicationHost.ProcessRequest (Mono.WebServer.MonoWorkerRequest mwr) [0x000
      at Mono.WebServer.ModMonoApplicationHost.ProcessRequest (Int32 reqId, System.String verb, System.S
      at (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,
      at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000] in <filename unknown>:0
      at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x00000] in <filename unknown>:0
    [Tue Dec 03 18:28:11 2013] [error] (70014)End of file found: read_data failed
    [Tue Dec 03 18:28:11 2013] [error] Command stream corrupted, last command was 1
    System.InvalidOperationException: Failed to map path '/images/load.gif'
      at System.Web.HttpRequest.MapPath (System.String virtualPath, System.String baseVirtualDir, Boolea
      at System.Web.HttpRequest.MapPath (System.String virtualPath) [0x00000] in <filename unknown>:0
      at System.Web.Hosting.HostingEnvironment.MapPath (System.String virtualPath) [0x00000] in <filenam
      at System.Web.Hosting.DefaultVirtualPathProvider.FileExists (System.String virtualPath) [0x00000]
      at Mono.WebServer.Paths.VirtualPathExists (IApplicationHost appHost, System.String verb, System.St
      at Mono.WebServer.Paths.GetPathsFromUri (IApplicationHost appHost, System.String verb, System.Stri
      at Mono.WebServer.ModMonoWorkerRequest.GetRequestData () [0x00000] in <filename unknown>:0
      at Mono.WebServer.MonoWorkerRequest.ReadRequestData () [0x00000] in <filename unknown>:0
      at Mono.WebServer.BaseApplicationHost.ProcessRequest (Mono.WebServer.MonoWorkerRequest mwr) [0x000
      at Mono.WebServer.ModMonoApplicationHost.ProcessRequest (Int32 reqId, System.String verb, System.S
      at (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,
      at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000] in <filename unknown>:0
      at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x00000] in <filename unknown>:0
    [Tue Dec 03 18:28:11 2013] [error] (70014)End of file found: read_data failed
    [Tue Dec 03 18:28:11 2013] [error] Command stream corrupted, last command was 1