[Mono-dev] [Mono-aspnet-list] fastcgi-mono-server4 does not answer nor log anything and timeout

sven falempin sven.falempin at gmail.com
Wed May 7 19:36:38 UTC 2014


So the fastcgi was up to date but not the mono,

i am porting mono to a more recent version and encounter a large
number of problems.

in 3.4.0  the embeded lib boehm gc refuse to compile
in 3.2.8  after fixing a few code file, updating libboehm, (and a
terrible terrible use of automake)  i have mono running but

gmake[2]: Entering directory '/home/ports/pobj/mono-3.2.8/mono-3.2.8/runtime'
if test -w /home/ports/pobj/mono-3.2.8/mono-3.2.8/mcs; then :; else
chmod -R +w /home/ports/pobj/mono-3.2.8/mono-3.2.8/mcs; fi
cd /home/ports/pobj/mono-3.2.8/mono-3.2.8/mcs && gmake
--no-print-directory -s NO_DIR_CHECK=1 PROFILES='net_2_0 net_3_5
net_4_0 net_4_5 xbuild_12  ' CC='cc' all-profiles
sgen is not supported when using --with-tls=pthread.

Stacktrace:


=================================================================
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.
=================================================================

Abort trap (core dumped)
build/profiles/basic.make:92: recipe for target
'build/deps/basic-profile-check.exe' failed


# /usr/ports/pobj/mono-3.2.8/mono-3.2.8/runtime/_tmpinst/bin/mono --version
Mono JIT compiler version 3.2.8 (tarball Wed May  7 12:43:36 EDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
www.mono-project.com
        TLS:           normal
        SIGSEGV:       normal
        Notification:  kqueue
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen


--

i guess some of the patches should be included ins the source tree

====./patches/patch-mono_io-layer_processes_c====:
$OpenBSD: patch-mono_io-layer_processes_c$
--- mono/io-layer/processes.c.orig      Tue May  6 16:17:14 2014
+++ mono/io-layer/processes.c   Tue May  6 16:20:59 2014
@@ -1346,13 +1346,13 @@
        gboolean done;
        size_t proclength, size;
 #if defined(__OpenBSD__)
-       struct kinfo_proc2 *result;
+       struct kinfo_proc *result;
        int name[6];
        name[0] = CTL_KERN;
-       name[1] = KERN_PROC2;
+       name[1] = KERN_PROC;
        name[2] = KERN_PROC_ALL;
        name[3] = 0;
-       name[4] = sizeof(struct kinfo_proc2);
+       name[4] = sizeof(struct kinfo_proc);
        name[5] = 0;
 #else
        struct kinfo_proc *result;
@@ -1380,7 +1380,7 @@
                                return FALSE;

 #if defined(__OpenBSD__)
-                       name[5] = (int)(proclength / sizeof(struct
kinfo_proc2));
+                       name[5] = (int)(proclength / sizeof(struct kinfo_proc));
 #endif

                        err = sysctl ((int *) name, size, result,
&proclength, NULL, 0);
@@ -1400,11 +1400,7 @@
                return(FALSE);
        }

-#if defined(__OpenBSD__)
-       count = proclength / sizeof(struct kinfo_proc2);
-#else
        count = proclength / sizeof(struct kinfo_proc);
-#endif
        fit = len / sizeof(guint32);
        for (i = 0, j = 0; j< fit && i < count; i++) {
 #if defined(__OpenBSD__)
@@ -1752,11 +1748,12 @@
 #include <link.h>
 static int load_modules_callback (struct dl_phdr_info *info, size_t
size, void *ptr)
 {
+       struct dl_phdr_info *cpy;
        if (size < offsetof (struct dl_phdr_info, dlpi_phnum)
            + sizeof (info->dlpi_phnum))
                return (-1);

-       struct dl_phdr_info *cpy = calloc(1, sizeof(struct dl_phdr_info));
+       cpy = calloc(1, sizeof(struct dl_phdr_info));
        if (!cpy)
                return (-1);

@@ -2118,7 +2115,7 @@
 #if defined(__OpenBSD__)
        int mib [6];
        size_t size;
-       struct kinfo_proc2 *pi;
+       struct kinfo_proc *pi;
 #elif defined(PLATFORM_MACOSX)
 #if !(!defined (__mono_ppc__) && defined (TARGET_OSX))
        size_t size;
@@ -2175,10 +2172,10 @@
 #endif
 #elif defined(__OpenBSD__)
        mib [0] = CTL_KERN;
-       mib [1] = KERN_PROC2;
+       mib [1] = KERN_PROC;
        mib [2] = KERN_PROC_PID;
        mib [3] = pid;
-       mib [4] = sizeof(struct kinfo_proc2);
+       mib [4] = sizeof(struct kinfo_proc);
        mib [5] = 0;

 retry:
@@ -2188,10 +2185,10 @@
        if ((pi = malloc(size)) == NULL)
                return(ret);

-       mib[5] = (int)(size / sizeof(struct kinfo_proc2));
+       mib[5] = (int)(size / sizeof(struct kinfo_proc));

        if ((sysctl (mib, 6, pi, &size, NULL, 0) < 0) ||
-               (size != sizeof (struct kinfo_proc2))) {
+               (size != sizeof (struct kinfo_proc))) {
                if (errno == ENOMEM) {
                        free(pi);
                        goto retry;
====./patches/patch-support_stdio_c====:
$OpenBSD$
--- support/stdio.c.orig        Wed May  7 13:38:53 2014
+++ support/stdio.c     Wed May  7 13:39:26 2014
@@ -26,7 +26,7 @@
 gint32
 Mono_Posix_Syscall_L_cuserid (void)
 {
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__OpenBSD__)
        return -1;
 #else
        return L_cuserid;
====./patches/patch-support_sys-mman_c====:
--- /home/ports/pobj/mono-3.2.8/mono-3.2.8/support/sys-mman.c.orig
 Wed May  7 13:48:28 2014
+++ /home/ports/pobj/mono-3.2.8/mono-3.2.8/support/sys-mman.c   Wed
May  7 13:54:15 2014
@@ -15,7 +15,7 @@
 /* For mincore () */
 #define _DARWIN_C_SOURCE
 #endif
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__OpenBSD__)
 /* For mincore () */
 #define __BSD_VISIBLE 1
 #endif



On Mon, May 5, 2014 at 12:55 PM, sven falempin <sven.falempin at gmail.com> wrote:
> that would meant building it, i could give it a try
> i need the version number and a tarball path :
>
> COMMENT=        ASP.NET implementations for Mono
>
> V=              2.10.2
> [..]
> EXTRACT_SUFX=   .tar.bz2
> [..]
> MASTER_SITES=   http://ftp.novell.com/pub/mono/sources/xsp/
>
>
>
> On Mon, May 5, 2014 at 12:36 PM, miniBill <cmt.minibill at gmail.com> wrote:
>>
>> Could you please try again with the latest version?
>>
>> Il 05/mag/2014 18:34 "sven falempin" <sven.falempin at gmail.com> ha scritto:
>>
>>> $ fastcgi-mono-server4 --version
>>> fastcgi-mono-server4.exe 2.10.2.0
>>> (c) 2007 Brian Nickel
>>> FastCGI Backend for XSP
>>>
>>>
>>> On Mon, May 5, 2014 at 12:31 PM, miniBill <cmt.minibill at gmail.com> wrote:
>>>>
>>>> What version of mono fastcgi are you using?
>>>>
>>>> Il 05/mag/2014 18:20 "sven falempin" <sven.falempin at gmail.com> ha
>>>> scritto:
>>>>>
>>>>> Hello,
>>>>>
>>>>> i asked
>>>>> here(http://forum.nginx.org/read.php?2,239541,239541#msg-239541) because
>>>>> someone
>>>>> already encounter the problem.
>>>>>
>>>>> I tend to think it is strictly a problem in fastcgi-mono-server4
>>>>> and/or the usage of it.
>>>>>
>>>>> Nginx is forwarding the request,
>>>>> i add an aspx runnnig with it, but when it comes to application :
>>>>> the fastcgi just dont use the application (timeout) :
>>>>>
>>>>>
>>>>> fastcgi-mono-server4 /applications=grey:/:/var/www/moon/MonoWeb
>>>>> /socket=tcp:127.0.0.1:9000 /loglevels=Debug /verbose=True
>>>>> [2014-05-05 11:47:44Z] Debug   fastcgi-mono-server4
>>>>> [2014-05-05 11:47:44Z] Debug   Listening on port: 127.0.0.1
>>>>> [2014-05-05 11:47:44Z] Debug   Listening on address: 9000
>>>>> Adding applications 'grey:/:/var/www/moon/MonoWeb'...
>>>>> Registering application:
>>>>>     Host:          grey
>>>>>     Port:          any
>>>>>     Virtual path:  /
>>>>>     Physical path: /var/www/moon/MonoWeb/
>>>>> [2014-05-05 11:47:44Z] Debug   Root directory: /var/www
>>>>> [2014-05-05 11:47:44Z] Debug   Max connections: 1024
>>>>> [2014-05-05 11:47:44Z] Debug   Max requests: 1024
>>>>> [2014-05-05 11:47:44Z] Debug   Multiplex connections: False
>>>>> /*Nothing*/
>>>>>
>>>>>
>>>>> The nginx log:
>>>>> 2014/05/05 11:53:45 [error] 2747#0: *179 upstream timed out (60:
>>>>> Connection timed out) while reading response header from upstream, client:
>>>>> 192.168.10.92, server: grey, request: "GET / HTTP/1.1", upstream:
>>>>> "fastcgi://127.0.0.1:9000", host: "grey"
>>>>>
>>>>> Is my application path wrong ? how can i get more insight from
>>>>> fastcgi-mono-server4 ?
>>>>>
>>>>> Best regards,
>>>>>
>>>>> --
>>>>>
>>>>> ---------------------------------------------------------------------------------------------------------------------
>>>>> () ascii ribbon campaign - against html e-mail
>>>>> /\
>>>>>
>>>>> _______________________________________________
>>>>> Mono-aspnet-list mailing list
>>>>> Mono-aspnet-list at lists.ximian.com
>>>>> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>>>>>
>>>
>>>
>>>
>>> --
>>>
>>> ---------------------------------------------------------------------------------------------------------------------
>>> () ascii ribbon campaign - against html e-mail
>>> /\
>
>
>
>
> --
> ---------------------------------------------------------------------------------------------------------------------
> () ascii ribbon campaign - against html e-mail
> /\



-- 
---------------------------------------------------------------------------------------------------------------------
() ascii ribbon campaign - against html e-mail
/\


More information about the Mono-devel-list mailing list