From nobody Wed Jun 30 18:31:22 2021 X-Original-To: freebsd-current@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 630E311CAFA8 for ; Wed, 30 Jun 2021 18:31:51 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GFVLH0fs9z3NHq for ; Wed, 30 Jun 2021 18:31:50 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 93e1fd92; Wed, 30 Jun 2021 18:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=ULDvscTb JdHjAU8uuxg/jp1YoCo=; b=drhFKHY6vt8F086WH8GF/FiQKZqk2v+Z6D3Xq+t5 KkWMqtmosjVgIKByGfnVriEE5qIfuYEX3mCWqhz/jjE057M/fobFVczPTJJSVcCi GA1yVTgkcGstl1mMq752hPgtaujrduo6UmCvvlZMmM/fn6THCCEQ/t50rudFPIT8 nYFdmk+Z9oUUatmeu67rSDe/LFDt+2lwmZZW1sV4L3Qb5H8D5YzoxvEsXmg/QPQ5 n2RmRmToUmtUyH/SP50EE86RhqF6mWecrJbMuhtya/n5UHX3aTf68Jv6mhaN2PkV GILpAesG7FmO4JNlFRMc/wizpIO273dN0I4sgZgfA7JW0g== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=uQ 59jW11jaWdhavEHrdW8bCLFtodEu1mc0nTIxZN0jgKPlnbIgdw98h6tpipPYIcIP JGnyQvyFDhffDUkCahkvvzqR8/GuL2SJgfkTRM1KmzjG2eiJIOeijCHhDDPJSCHc zlEtBlRn1X/X855j5+bPnAMm1e9i8TNR3iHt5Zz0Jf2OVMDCQYuKNOj3wFMy0/kd /rcoyO8Z6jcV+Ji4iiCBAXiPNt5mY+iyL0brGDpaGXru3ayC2wli0gIxxB+jfRNy u8rIMWkKfPknDuG5aEXg4V1QXdJBwZiV4IKSU5EL1nOG8J6TeGF3uRVLlWCUjnKN s7EBe117iAQdYXUk2S1g== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id a77667c9 (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Wed, 30 Jun 2021 18:31:36 +0000 (UTC) Date: Wed, 30 Jun 2021 20:31:22 +0200 From: Michael Gmelin To: "O. Hartmann" Cc: Michael Gmelin , FreeBSD CURRENT Subject: Re: 14-CURRENT: www/nextcloud: php occ/web access : Segmentation fault Message-ID: <20210630203122.45a451e9@bsd64.grem.de> In-Reply-To: <20210630200610.23ae9e5c@thor.intern.walstatt.dynvpn.de> References: <20210628223951.12230942@thor.intern.walstatt.dynvpn.de> <20210630200610.23ae9e5c@thor.intern.walstatt.dynvpn.de> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4GFVLH0fs9z3NHq X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 30 Jun 2021 20:05:43 +0200 "O. Hartmann" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > Am Mon, 28 Jun 2021 23:34:44 +0200 > Michael Gmelin schrieb: >=20 > > > On 28. Jun 2021, at 22:41, O. Hartmann > > > wrote: > > >=20 > > > =EF=BB=BF-----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA512 > > >=20 > > >=20 > > > Hello, > > >=20 > > > we ran into serious trouble here with an www/nextcloud > > > installation on a recent 14-CURRENT (FreeBSD 14.0-CURRENT #23 > > > main-n247612-e6dd0e2e8d4: Mon Jun 28 18:08:20 CEST 2021 amd64). > > > Ports tree is up to date and ports are built via traditional > > > "make". Port www/nextcloud, all mod_ ports and even every php-* > > > port (php74 is installed and default) has been recompiled within > > > the last two weeks via "portmaster -f". > > >=20 > > > The phenomenon occured back a couple of weeks, when access from > > > the web via cjromoum and/or firefox reported out of the sudden > > > "Secure Connection Failed". I checked the Apache 2.4 server's > > > certificate (self signed,never had been an issue so far), but > > > there seems no issue to exist. It got very strange when I tried > > > to perfom an upgrade and/or check via > > >=20 > > > cd /usr/local/www/nextcloud > > > su -m -c "/usr/local/bin/php ./occ upgrade" > > >=20 > > > Whenever I access occ, I receive an @"Segmentation fault". > > > The I checked the server's error log and I found for each access > > > of the nextcloud instance an entry like > > >=20 > > > [Tue Jun 01 06:04:40.667026 2021] [core:notice] [pid 81123:tid > > > 34374492160] AH00052: child pid 24598 exit signal Segmentation > > > fault (11) > > >=20 > > > Well, I'm out of ideas, it seems nextcloud, php or apache ar all > > > in combination do have a serious problem hard to come by with > > > 14-CURRENT (another instance running on 12.2-RELENG doesn't have > > > any issues). > > >=20 > > > Can someone hint me to what to do track this nasty error? > > >=20 > > > Thanks in advance, > > > =20 > >=20 > > Do you have a minimal setup to reproduce? Could you try building > > all ports against OpenSSL from ports? > >=20 > > -m > >=20 > >=20 > > =20 > > > oh > > >=20 > > > - --=20 > > > O. Hartmann > > >=20 > > > Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3= =BCr > > > Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 2= 8 Abs. > > > 4 BDSG). -----BEGIN PGP SIGNATURE----- > > >=20 > > > iHUEARYKAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCYNozlwAKCRA4N1ZZPba5 > > > Rx2nAPwNf9014LCwIKdjN1lxdiESP0daa97tqvFsZiOM8OgpmAD+M6pmqlCVG6TE > > > HyuCprAwjwvP9zxov3BDaVmJRI3ZpAw=3D > > > =3Dz4d+ > > > -----END PGP SIGNATURE----- =20 > >=20 > > =20 >=20 > I had already filed a PR regarding this probleme, here is the link: >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256844 >=20 > Building all ports against OpenSSL from ports would exceed the > capabilities of my hosts, the box in question is under load and an > older Ivy-Bridge XEON with limited speed, so that would take days. I > hoped the problem could be isolated otherwise ... I found this issue on the nextcloud issue tracker: https://github.com/nextcloud/server/issues/25761 Based on that, you should enable apcu for php CLI by adding this to your php.ini: apc.enable_cli=3D1 which should fix `occ upgrade'. No idea if it works, but it sounds similar enough to give it a shot. Cheers Michael p.s. see also https://www.php.net/manual/en/apcu.configuration.php > - --=20 > O. Hartmann >=20 > Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr > Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Ab= s. 4 > BDSG). -----BEGIN PGP SIGNATURE----- >=20 > iHUEARYKAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCYNyykgAKCRA4N1ZZPba5 > R68PAPwIioYhbPZ4DXLbJXKsWuAYUr9oZRgwMiTqhpqqwBIwCgEAwmcxE/ZpQ3Og > 0mXO2DBqBNv+RAFQ7U/3qSnOlKeAdgQ=3D > =3D0VYB > -----END PGP SIGNATURE----- --=20 Michael Gmelin