From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 9582C4BFA0 for ; Mon, 28 Jul 2025 01:38:24 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 5E37B68D82D; Mon, 28 Jul 2025 04:38:19 +0300 (EEST) Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 3CAD968C698 for ; Mon, 28 Jul 2025 04:38:13 +0300 (EEST) Received: by mail-vk1-f177.google.com with SMTP id 71dfb90a1353d-531a1fad7faso1348359e0c.2 for ; Sun, 27 Jul 2025 18:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753666691; x=1754271491; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=+jWrBoGuFR7/Ch9iGUxuLVntUn6aKWOR2QSTVXaeIb8=; b=N7NrWpNTC04C8QhkXnObhRAxl3hqdtfISgL88wDFs5r/sj489wpIIDnSdL2WK15YNj o1yv1iSNnVN3RstgCzWmfJCJFFA5RXwzqdKlGUiJ3jRaDBMOcAXZdnVw+YUTjqC8Wkep O2kHd+ILhAn+Buunqsp90Nht66yhigeBN4Cy/7358wd0xaLCHkH5MBTvPFnI4IJROrwd 7K5YOub9NTXlDFNHMojkNFQDUR+EbvZzdr60ZE9w4eIsNHiLR0Qvbyd0Mr/saBC97hHQ LYO/ueyXS4oxi/PX1oq/Dl5WRCTkEJVhruq06XJCmxAbzVM2M2BNH43If/Isn5bELCwO c6og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753666691; x=1754271491; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+jWrBoGuFR7/Ch9iGUxuLVntUn6aKWOR2QSTVXaeIb8=; b=p5XaFUYZEsMWitRSbu6lS3GtSBsGHaTRehMRAfWHuo+zp59/aCEwPBv89eLpRPz6QS LL5N42CnsgYKKX5MaVhOLOjUm9a0OMVVHcz5lm9EoDhwTvMOKw+kPXFSDqQexzMTf+Ct h8uWbsw9EDbS7sXfSj7HhoJMdxI69b9zlrXKchuntnLDDo4zxHN51sjpzia4tx4V5LWM ACneLdAO3VCDnpxznSpVp55mDj7CLZBxYuJE6XDc42L7vb/7m4AU+0S6+Nvsd4A88mz2 F0Y6VdcI2oT7qa8Djska8mEXT0QiE68qWrgQ3MKp7q0xhgK7Fzq0BoXUlEf4RRTgBXQI XbYw== X-Gm-Message-State: AOJu0YxDjJCIw+8BEy0c5ZSH2vLugCIDIT5Q018K3/lMnB/mLBax+KRY vdBqw9feqVh7fEWIBrkq8j2uMzU1TyHTAP57JV5oVr8hd5rYuEacEm08e6bzNw4I X-Gm-Gg: ASbGncs/CLDfsMk17rn0yr9ecxNOJ2FyaZqbdLRK/ysVarUcJ0RNfXhXJiONzkBwDGI nyYqkh7oeem1z16NLvCLY2j7UJkZ+8mW+ra1bwK8DagUQUy4l+glMjICMp7VUUx2fvBi0eqYFNH qL73z+fCO243l2xWwfIv/OZuX/S5lV2GvRyJyes2UIblW2cTubb+RRBSdlGcxPeuLdH2Zx1xnEG tbKTiwDf6txmssOcgodv7UVwnz8BWJiviU+aHgmLfMsQ0j9xn88LCR8ea3bvHtac9fkDZ3r9srC 9IrmYxv7ET4CxmdcMP4T6GUUFsS9x4kebTeAGRzQJSHhRxnZ2rNKRuCzHuRLFoO+tX9d1MyGkPJ epc5jG11vokSTk6r3RFxsp1qDkFshSFwkzKB1gYTt4qN2fLVQqH8B5VGTkQhbIg== X-Google-Smtp-Source: AGHT+IFiYE+v5RiL+CiVBUkDG1qSWqGh5Is9qcncwu1IyrK6oReLjZTuHkYM66kqCenWyB+0Wc2DtA== X-Received: by 2002:a05:6122:8290:b0:52c:4eb0:118d with SMTP id 71dfb90a1353d-538db528164mr3544021e0c.4.1753666691316; Sun, 27 Jul 2025 18:38:11 -0700 (PDT) Received: from [192.168.1.20] (syn-035-142-166-158.res.spectrum.com. [35.142.166.158]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-88b8de03ac7sm1093217241.21.2025.07.27.18.38.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Jul 2025 18:38:11 -0700 (PDT) Message-ID: <11b46c6d-190f-40fb-b904-a99246529329@gmail.com> Date: Sun, 27 Jul 2025 21:38:10 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ffmpeg-devel@ffmpeg.org References: <19ac6efe-69be-438e-a87b-ca9c91ab9290@gmail.com> Content-Language: en-US From: Stephen Hutchinson In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH v3] avformat/avisynth: fix segfault when also compiled with libvmaf X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 7/27/25 8:34 PM, Kacper Michajlow wrote: > On Mon, 28 Jul 2025 at 02:04, Daniel Bermond wrote: >> >> When FFmpeg is compiled with support for both avisynth and libvmaf, >> a segmentation fault occurs when using avisynth (.avs) input. >> >> This happens because both avisynthplus and vmaf have the exactly >> same C++ symbol 'Cache::~Cache()'[1][2], which is a C++ destructor. >> When using avisynth input, this destructor is also called in the >> vmaf side, although no vmaf object was created, thus causing a >> segmentation fault. >> >> Without changing this conflicting symbol in avisynthplus and/or >> vmaf upstream code, a solution is to switch the 'RTLD_LOCAL'[3] > > I'm not opposed to a workaround to the issues as an interim solution, > but has this issue been reported to upstream? Classes with such > generic names should be put in a namespace in the respective projects. > Additionally it would be good for those projects to be built with > -fvisibility=hidden to reduce the amount of exposed symbols and only > expose API entry points. > As a stopgap, yeah, this is probably the cleanest solution. It does need to be resolved upstream, though at least on the AviSynth+ side, I don't know how/if the reason this hadn't already been done was because it would have broken existing plugin compatibility. Still worth looking at, though. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".