From nobody Wed Aug 09 12:26:27 2023 X-Original-To: freebsd-mono@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RLTnM3j5Kz4ptZs for ; Wed, 9 Aug 2023 12:26:31 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLTnL6X1Qz3XYX for ; Wed, 9 Aug 2023 12:26:30 +0000 (UTC) (envelope-from radovanovic@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=epwB8gHE; spf=pass (mx1.freebsd.org: domain of radovanovic@gmail.com designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=radovanovic@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fe5eb84dceso24119805e9.1 for ; Wed, 09 Aug 2023 05:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691583989; x=1692188789; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=NLFXpEY33QVyHrvh2PzgiT/al2FA9XiquVc/SZf5Qc8=; b=epwB8gHEDpbGRbe1U0lmxQj8sjtIJ8nEhFdZoUVK4Kwz51IPXCS2FfCXs/VgZolf88 oteHDfFv++vAEgTgWFCz2NlLlDPCP/BBBh2ylhUPIHcJrW8jy3M+mXvuLYvggdUIVwu3 KCfwtSZGa6xnBS+G+1DZWrh9MfHC4y4sIXmEe/PNUCb/l10RaXTOfyuHPkKLpZSrDUHc 2ZfhGv+1HiTh+xqMFjO4bWxUxS7AkjvzLMVQQT0eIHzinLRe07n+YZ3nyhGVgIv6X2bn 6XKAesqKyKqgQm6D4XemlZq+Hh0dTNPjheQk/7rxNwLV/C9iSZ5NbWzxSPZKc8vLWsWa gjNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691583989; x=1692188789; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NLFXpEY33QVyHrvh2PzgiT/al2FA9XiquVc/SZf5Qc8=; b=LxJWJvQ6uk9k9NCS7qNSrmYez23kgvuC8zgVPGI8Ix2hLyRk+P4Efw+HDEUwYhdhdU 7t/XFOKnSxopXkqA+qdu7S5HzgOvTU+FXHLh664cesWH8ERmaLV4Ztomgffgfju0fSLh EpH2Ek2rr7Iyvqj8chGPOE1jdRExM9ROj/VcKu2vlqEaHCkeoSVSMbh01QWjnpFewt45 /Ogqqq36/auE8CWegqewwyXmMlVoEJ9Y22sEmp+L4AIkOjNGr2TtSks3yXV57n39+tbT ZHtQZLELU1eIpfBferiE7LnCPaZ68lyf8rc0heFDtEOIj5oAH9h9n0ldM3uklKaG3dIn ue0g== X-Gm-Message-State: AOJu0YzoT+fQYps+7A6Ta3+2qbf787RkPktUDk7WKUcJpVIQpvGKBMmT MUdocXPA9yIH1w6mrgwZOoW2d0KYhyU= X-Google-Smtp-Source: AGHT+IGQBzBnbKmyH6mxi5vU1OhJ7vlAPn0VP15egnodtEqcjeIe4c+GDuacesen5CVWt6mtrIa5vw== X-Received: by 2002:a5d:5959:0:b0:317:5f04:bc00 with SMTP id e25-20020a5d5959000000b003175f04bc00mr1602492wri.27.1691583988833; Wed, 09 Aug 2023 05:26:28 -0700 (PDT) Received: from ivan.codenizer.com (cable-94-189-255-10.dynamic.sbb.rs. [94.189.255.10]) by smtp.gmail.com with ESMTPSA id b12-20020a05600010cc00b0031432f1528csm16554259wrx.45.2023.08.09.05.26.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Aug 2023 05:26:28 -0700 (PDT) Subject: Re: How to test www/xsp port To: freebsd-mono@freebsd.org References: <7195c088-7b83-6427-39e3-ce089ebd3cde@FreeBSD.org> From: Ivan Radovanovic Message-ID: Date: Wed, 9 Aug 2023 14:26:27 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 List-Id: Mono and C# applications on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-mono List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-mono@freebsd.org MIME-Version: 1.0 In-Reply-To: <7195c088-7b83-6427-39e3-ce089ebd3cde@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spamd-Result: default: False [-3.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.80)[-0.798]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mono@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::334:from]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-mono@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RLTnL6X1Qz3XYX This is some concurrency problem (it happens only on xsp startup) - depending on system it can happen quite often or pretty much never. Workaround is to try to run xsp again, or if you want to use it as web server for real try to run it by some process manager which would automatically restart it if it crashes (same goes for fastcgi server from mono project) On 09/08/2023 14:21, Rodrigo Osorio wrote: > Hi, > > I was updating www/xsp(PR272997)[1], a Mono based > web server, and to test the port I run the samples > provided in the package as described in the INSTALL[2] > file. > > Running this code causes a server crash, which > looks like a Mono issue. I'm not a Mono expert > so I wish someone can take a look ant tell me > if this port still usable on FreeBSD. > > I try to run the same test with the current xsp > version, and I got the same error. > > To reproduce the crash start the serven the server > and run the command: fetch "http://127.0.0.1:9000/" > > ---- > % (cd /usr/local/lib/xsp/test && xsp4) > xsp4 > Listening on address: 0.0.0.0 > Root directory: /usr/local/lib/xsp/test > Listening on port: 9000 (non-secure) > Hit Return to stop the server. > System.IO.IOException: kevent() error at initial event registration, > error code = '9' >   at System.IO.KqueueMonitor.Start () [0x0009f] in > :0 >   at System.IO.KeventWatcher.StartDispatching > (System.IO.FileSystemWatcher fsw) [0x00033] in > :0 >   at System.IO.FileSystemWatcher.Start () [0x00000] in > :0 >   at System.IO.FileSystemWatcher.set_IncludeSubdirectories > (System.Boolean value) [0x00022] in :0 >   at (wrapper remoting-invoke-with-check) > System.IO.FileSystemWatcher.set_IncludeSubdirectories(bool) >   at System.Web.HttpApplicationFactory.WatchLocationForRestart > (System.String virtualPath, System.String filter, System.Boolean > watchSubdirs) [0x00056] in :0 >   at System.Web.HttpApplicationFactory+<>c.b__38_0 > (System.Object ) [0x00000] in :0 > ---- > > Regards > -- rodrigo > > [1]https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272997 > [2] https://github.com/mono/xsp/blob/main/INSTALL > > >