From nobody Wed Jun 30 18:33:02 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 BFD7011CB5FA for ; Wed, 30 Jun 2021 18:33:08 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GFVMl56Pzz3Nr6 for ; Wed, 30 Jun 2021 18:33:07 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: by mail-ot1-x335.google.com with SMTP id 7-20020a9d0d070000b0290439abcef697so3747341oti.2 for ; Wed, 30 Jun 2021 11:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LHU1tgniLNtt3UCZQve21V5PYWTfXr6GkYICPWw6kVk=; b=bX70pRV5IUids1xVgCQddZyPiE02GaVjqWihUSsJMhuNYCnapeLPP4pki2OnkYGQt4 exFk7VGJQO6ggOxnsbx4667QlKWvPSCqQKBOrABdDYpxSwtLGEdClRVqiW+EzXQioYGF 1H2Hw8ui+SsxFnopXp2xKhhYSSSO13QOjgBwHhjWELnfnIDPHsWua/LHmOPlM/IjIvra T+6wygzNfakA1bcRLK2lkG/+HwiwBxz1tEZSf5QXrvWECSaRfaVV6bH2VIx0/JVYu/x/ QdtANJK4KPLBriiAW1bNJLqlGhNHcLj0Dgi7IctGHWwkCx/5OWhaPr7BZdy/JNGkmX83 lSFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=LHU1tgniLNtt3UCZQve21V5PYWTfXr6GkYICPWw6kVk=; b=HgHXbqKZrXTzHmldF7VkG/4xc15ldE2xJJwI7G/ZgVA3vGcDRc3cAHkxWHcicSpaJD etogeNoFxe670YKzjv3u4q2CNtwApIT07e5XQ9kGeX7cG+zHEfhawR5VmA7HgUq2YfLk 2ohgjjVg07LcTcbrV+j9aQoQgqMhbv+l6QVhb6qOt3JVVYzMziAL0UEEWKxm6QLokIOh v9/9Cnopv7ncoRgM8glfwT1WLbD92wgr7ms2jMDZwb1nDy/KvL8NfCSKUCNV4o8mgJPE c2gx5hhyt6BXMDBqYA1Jim3ArkfOukoisPRs/8Ktz32N6OGHZHtHM4gkmP8dqyq2aQoC s0SA== X-Gm-Message-State: AOAM530NUuaM+vPJX+ielHHYZfTLBKGm5oxjqDTf0xGVq+tDTK0VPVXR hMudYpSb0Cufu6G+uCJkt5PEJkWw0Ytpqg== X-Google-Smtp-Source: ABdhPJyL9HM7Idca61AmPjiHZen+y96byyBOdGAIVPVXV/MiMGTcu/EEBCsPtREMDDDZU5dalIGkEg== X-Received: by 2002:a9d:7d89:: with SMTP id j9mr10197777otn.148.1625077986580; Wed, 30 Jun 2021 11:33:06 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id t76sm4774528oif.14.2021.06.30.11.33.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jun 2021 11:33:06 -0700 (PDT) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: 14-CURRENT: www/nextcloud: php occ/web access : Segmentation fault From: Bakul Shah In-Reply-To: <20210628223951.12230942@thor.intern.walstatt.dynvpn.de> Date: Wed, 30 Jun 2021 11:33:02 -0700 Cc: FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210628223951.12230942@thor.intern.walstatt.dynvpn.de> To: "O. Hartmann" X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4GFVMl56Pzz3Nr6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iitbombay-org.20150623.gappssmtp.com header.s=20150623 header.b=bX70pRV5; dmarc=none; spf=pass (mx1.freebsd.org: domain of bakul@iitbombay.org designates 2607:f8b0:4864:20::335 as permitted sender) smtp.mailfrom=bakul@iitbombay.org X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[iitbombay-org.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::335:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[iitbombay-org.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[bakul]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[iitbombay.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::335:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::335:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-ThisMailContainsUnwantedMimeParts: N On Jun 28, 2021, at 1:39 PM, O. Hartmann wrote: >=20 > -----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? Some general ideas: You can use ktrace and tcpdump to capture in some detail what is going = on. ktrace can tell you if there was a failing open near the crash (often = due to the "all the world is linux" syndrome). There should be a core dump = connected to the segfault - make sure coredumpsize limit is not set to 0. You may = be able to get a stacktrace from it. You can then compile the offending = program with -g and capture file:line with gdb. You can then pore over the = source code and add some checks or traps of your own (if you are guessing what = the bug may be). Also look at /var/log/messages for anything unusual. = ["Unusual" may become more apparent as you gain debugging experience.] If you have a bug report, adding such relevant details may be of help to = others. Note that if you switch to a different version of *some* s/w piece, the problem may disappear. That may be fine if you are under time pressure = and just want to work around the problem but in general it is better to try = to catch the bug without changing its environment.