[ubuntu-mono] [Bug 1293481] Re: asp.net 4.0 with apache does not seem to work on trusty

shahid khan shahid.mrd at hotmail.com
Sun Apr 20 21:47:06 UTC 2014


I want to put further in this after the workaround that i have given
above ,every time i restarted my computer it would give me
System.Web.HttpException and the apache error log would show that mono
could not write to /var/www/.mono because of permissions , i did another
work around and now even after restart it works fine . the work around
is given below.

I changed MonoPath from /usr/lib/mono/4.5 to /usr/lib/mono/gac in etc/mono-server4/mono-server4-hosts.conf
and i manually made .mono directory at /var/www and gave apache read and write access as well as execution access to /var/www/.mono .

-- 
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to xsp in Ubuntu.
https://bugs.launchpad.net/bugs/1293481

Title:
  asp.net 4.0 with apache does not seem to work on trusty

Status in “xsp” package in Ubuntu:
  Confirmed

Bug description:
  This is a sister-bug to #1292567 which reports a similar problem with
  asp.net 2.0.  I have created two different reports, because the faults
  manifests themselves very differently, depending on the asp.net
  version.

  I have created an extremely small ASP.NET application (attached as a
  tar file).

  When I run that against the apache server on "saucy salamander", using
  mono-server4, it runs just fine.

  When I run it against the apache server on the current beta of "trusty
  tahr", using mono-server4, the mono-server4 dies with a SIGABRT.  The
  client gets a "500" error and the mono process running
  /usr/lib/mono/4.5/mod-mono-server4.exe disappears from the system.

  Luckily there is a good description in the apache error log:

  Stacktrace:

    at <unknown> <0xffffffff>
    at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer,Mono.WebServer.WebSource) <0x0007b>
    at Mono.WebServer.ApplicationServer.GetApplicationForPath (string,int,string,bool) <0x0013f>
    at (wrapper remoting-invoke-with-check) Mono.WebServer.ApplicationServer.GetApplicationForPath (string,int,string,bool) <0xffffffff>
    at Mono.WebServer.ModMonoWorker.InnerRun (object) <0x0024f>
    at Mono.WebServer.ModMonoWorker.Run (object) <0x0001b>
    at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

  Native stacktrace:

          /usr/bin/mono() [0x8105b4a]
          [0xb77bb40c]
          [0xb77bb424]
          /lib/i386-linux-gnu/libc.so.6(gsignal+0x46) [0xb75ba7e6]
          /lib/i386-linux-gnu/libc.so.6(abort+0x143) [0xb75bdc33]
          /usr/bin/mono() [0x8288b23]
          /usr/bin/mono() [0x8288bb3]
          /usr/bin/mono() [0x816b4d1]
          /usr/bin/mono(mono_class_get_full+0xff) [0x816bdff]
          /usr/bin/mono(mono_class_from_name+0x107) [0x816c237]
          /usr/bin/mono(mono_class_from_typeref+0x190) [0x816b9a0]
          /usr/bin/mono(mono_class_get_full+0x164) [0x816be64]
          /usr/bin/mono(mono_class_get+0x1f) [0x816bf4f]
          /usr/bin/mono(mono_metadata_parse_mh_full+0x45c) [0x81b29fc]
          /usr/bin/mono(mono_method_get_header+0xbf) [0x819130f]
          /usr/bin/mono() [0x807ff7c]
          /usr/bin/mono() [0x8066ccc]
          /usr/bin/mono() [0x8068de4]
          /usr/bin/mono() [0x8069aee]
          /usr/bin/mono() [0x8106d17]
          [0xb757903e]
          [0xb5816970]
          [0xb58167fc]
          [0xb5812aa8]
          [0xb58126c4]
          [0xb7466c9d]
          /usr/bin/mono() [0x8069bf0]

  Debug info from gdb:

  
  =================================================================
  Got a SIGABRT while executing native code. This usually indicates
  a fatal error in the mono runtime or one of the native libraries 
  used by your application.
  =================================================================

  So, as you see, the SIGABRT occurs in a basic mono runtime routine called from the mod-mono-server4.exe
  module.  Of course, I cannot know whether the bug that causes the abortion is in xsp or in basic mono.  But 
  any search after the bug would start in mod-mono-server4, so I chose to file the bug against that package.

  I have the same bug on my company's larger ASP.NET application.

  This report is not made from the "trusty" installation, that one is a
  test installation without access to the net, so you don't get all the
  stuff that apport would collect to you. Honestly, you don't need it to
  reproduce, just grab a pristine trusty installation and try it!

  However, a few important package versions:

  libapache2-mod-mono: 2.11+git20130708.6b73e85-4ubuntu1
  mono-complete: 3.2.8+dfsg-4ubuntu1
  mono-apache-server2: 3.0.11-1

  I am willing to offer any possible kind of assistance in fixing this
  problem - my company had looked forward to upgrade to "trusty". But,
  to be honest, I don't think you really need my help - the problem is
  so trivial to reproduce, it ought to be pretty trivial to fix if you
  know the ropes.

  best regards

  Peder Chr. Nørgaard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xsp/+bug/1293481/+subscriptions



More information about the Ubuntu-mono mailing list