From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 61775483CB for ; Wed, 1 May 2024 16:52:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 51A9268D6D5; Wed, 1 May 2024 19:52:19 +0300 (EEST) Received: from fgw21-4.mail.saunalahti.fi (fgw21-4.mail.saunalahti.fi [62.142.5.108]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4BB8A68D6C1 for ; Wed, 1 May 2024 19:52:12 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sci.fi; s=elisa1; h=content-transfer-encoding:content-type:mime-version:message-id:subject:cc:to: from:date:feedback-id:from:to:cc:reply-to:subject:date:in-reply-to:references: list-archive:list-subscribe:list-unsubscribe:content-type: content-transfer-encoding:message-id; bh=MAzF6BcJIg0DwviE+R51KtFHCOJ7UIXUijimgPhh3ak=; b=BE4CWzFIZurCUm3AnIy/OfWGa4C4r7hdIaHZS8bKXDzFVOSYwSNviyEcFiHKzYePUQrw/1dMqL59/ TqkIeT1EhPfllDwjr6BYA0Z3F3D/dX6Xb+mOON8ydxlyKJWW2HfnMs0ga/E/WPWBkYS7u0csobJR3w DtJN+QLoNaUIJhjC37xMHdx4GS9x8AGxYfRGscPzz5Nslt/M7GQF2rDRdyoWCi49gDVCtJtaDaYq4W PnpkMIrRaKAqI2x5ZnFWJsyBGv+ouVKrahnPG7yTZhbdA6kCRidu4c8jkQwOjTh2nV5JwjfMdo2lFZ NKxIFAv/ripsoB6hey32kozUK4l97Jg== Feedback-ID: 91b3a81a:25bf58:smtpa:elisa Received: from sci.fi (89-27-49-32.bb.dnainternet.fi [89.27.49.32]) by fgw20.mail.saunalahti.fi (Halon) with ESMTPSA id 2659f38c-07db-11ef-b3cf-005056bd6ce9; Wed, 01 May 2024 19:52:11 +0300 (EEST) Date: Wed, 1 May 2024 19:52:09 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: ffmpeg-devel@ffmpeg.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline Subject: [FFmpeg-devel] Massive memory leak in 6.1.1 (fixed on master) 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 Cc: Paul B Mahol Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Hi, I ran into a massive memory leak while transcoding some audio books after upgrading to ffmpeg 6.1.1 from 6.0.1. Instead of the normal ~100 MiB rss it now exceeds 10 GiB in about ten seconds and keeps on going up. Command line used was approximately this: ffmpeg -activation_bytes XXX -i book.aax -map 0:a -map 0:v -c:a mp3 -c:v co= py \ -ss 0.000000 -to 909.038005 -metadata track=3D"1/69" -metadata title=3D"Cha= pter 1" book_01.mp3 Bisect points to: commit 90fba2774304 ("avfilter/trim: switch to activate") I then tried master and discovered that the leak is has been fixed by these two commits: commit 84e400ae37b1 ("avfilter/buffersrc: switch to activate") commit d9e41ead8226 ("avfilter/avfilter: fix OOM case for default activate") So those should be cherry-picked to the next 6.1 release (assuming there will be one). Both cherry-pick cleanly, and afterwards the leak is gone from the 6.1 branch as well. -- = Ville Syrj=E4l=E4 syrjala@sci.fi _______________________________________________ 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".