From nobody Mon Apr 17 20:41:00 2023 X-Original-To: multimedia@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 4Q0f8Y1S0wz459my for ; Mon, 17 Apr 2023 20:41:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0f8X4VMyz3nX2 for ; Mon, 17 Apr 2023 20:41:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681764060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yT6rbpY7UYdDBboDfg6NxxxNMC64YpJqstZEOZbd+eQ=; b=hhnvwZ91ZiFdkrN4lkK+d40Af/dGtx32FJ8jaJbPDpaZwfvYVu4Pa7jjdc25bl+UuwVBQC 5c0PaRYPoTQYpzn4NwOnnwBIY7B0OMiLNZ/onEy4+Wik5O7EwQI9hIa6OZFLph3zvAsrX7 nUAamhzhR1iiRbc+YT7OfKge3NIEzPsKSTkepP4Zkp4wyT53BcSMKST1jYkEkR2HuY0IQ+ dvNdOqsftlSeiBBOtES9RbfNpM0XjpTN1BElOwbqBviP61wclgp+m6WWxZp7cEhHLrZeQh 60/qk5+BYixEC3HpZyfXdHQcCpwsGGA0li5u4nZa9PZPFMHv8vUhXolHD7yF0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681764060; a=rsa-sha256; cv=none; b=UvsX3S2lbTQ39wv9n/v/AdSaxYYelejF7gyX48Oc/V3PSVoRiZ79hhfkp5thKi16Mdvr4W nnmtZu/zLCvE5bwO9xaH3XPwsDAIibpv/6F6iVvPuNROz3H1+2r6a+BuOkCOF4bbs7K9Af F0ZNBtKtpWKqJkSiMW6EE/FKz00opyi/DRvcw2yoEbnx8/BXZ81x24Mg9RPaoSgVRosFJm pzo80XuIGnmuo+hjwn7/+Rl28XIoVwriyI7MqHgqHl76ohaBVX2PQ8z4eq0AHf5oxC/4wG Wo8sH+F086fQ1JZmbcY7TCLKT4o9lW/chE6nVXwLC1n9wfw+Q61aC6SdEre8rg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q0f8X3QDDzkC5 for ; Mon, 17 Apr 2023 20:41:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33HKf0lC008364 for ; Mon, 17 Apr 2023 20:41:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33HKf0rs008363 for multimedia@FreeBSD.org; Mon, 17 Apr 2023 20:41:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 267200] multimedia/ffmpeg: Segmentation fault in ff_seek_frame_binary() Date: Mon, 17 Apr 2023 20:41:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shoesoft@gmx.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267200 Stefan Ehmann changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shoesoft@gmx.net --- Comment #3 from Stefan Ehmann --- Not sure if it's the same issue. After updating my build jails from 13.1 to 13.2 I now get a similar segfault when seeking some files. 13.2 is using llvm 14. I tried llvm15 from ports which has the same error. llvm13 from ports works fine (I think 13.1 was also using llvm13): Maybe compiler bug or buggy code and compiler is now stricter: Thread 9 "mpv/demux" received signal SIGSEGV, Segmentation fault. Address not mapped to object. [Switching to LWP 199306 of process 73876] 0x0000000801fb11b8 in ff_seek_frame_binary (s=3Ds@entry=3D0x80a460000, stream_index=3Dstream_index@entry=3D0, target_ts=3Dtarget_ts@entry=3D133047= 9561, flags=3Dflags@entry=3D0) at libavformat/utils.c:2175 2175 if (e->timestamp <=3D target_ts || e->pos =3D=3D e->min_dis= tance) { (gdb) bt #0 0x0000000801fb11b8 in ff_seek_frame_binary (s=3Ds@entry=3D0x80a460000, stream_index=3Dstream_index@entry=3D0, target_ts=3Dtarget_ts@entry=3D133047= 9561, flags=3Dflags@entry=3D0) at libavformat/utils.c:2175 #1 0x0000000801fb224b in seek_frame_internal (s=3D0x80a460000, stream_inde= x=3D0, timestamp=3D1330479561, flags=3D0) at libavformat/utils.c:2481 #2 av_seek_frame (s=3D0x80a460000, stream_index=3D, timestamp=3D, flags=3D0) at libavformat/utils.c:2504 #3 0x000000000037b7df in ?? () #4 0x000000000037454c in ?? () #5 0x000000000036e21d in ?? () #6 0x000000000036d49e in ?? () #7 0x0000000802acfa78 in thread_start (curthread=3D0x808415800) at /usr/src/lib/libthr/thread/thr_create.c:292 #8 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdf1f6000 (gdb) list 2170 2164 st =3D s->streams[stream_index]; 2165 if (st->index_entries) { 2166 AVIndexEntry *e; 2167 2168 /* FIXME: Whole function must be checked for non-keyframe entries in 2169 * index case, especially read_timestamp(). */ 2170 index =3D av_index_search_timestamp(st, target_ts, 2171 flags | AVSEEK_FLAG_BACKWARD); 2172 index =3D FFMAX(index, 0); 2173 e =3D &st->index_entries[index]; 2174 2175 if (e->timestamp <=3D target_ts || e->pos =3D=3D e->min_dis= tance) { (gdb) p st->index_entries $6 =3D (AVIndexEntry *) 0x0 --=20 You are receiving this mail because: You are the assignee for the bug.=