Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and move writer functions and options
Date: Fri, 28 Feb 2025 03:29:15 +0100
Message-ID: <20250228022915.GQ4991@pb2> (raw)
In-Reply-To: <DM8P223MB036511B912822A34CB560A5BBACC2@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM>


[-- Attachment #1.1: Type: text/plain, Size: 4719 bytes --]

On Fri, Feb 28, 2025 at 01:47:05AM +0000, Soft Works wrote:
> 
> 
> > -----Original Message-----
> > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Soft
> > Works
> > Sent: Freitag, 28. Februar 2025 02:31
> > To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
> > Subject: Re: [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and
> > move writer functions and options
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of
> > > Michael Niedermayer
> > > Sent: Freitag, 28. Februar 2025 02:23
> > > To: FFmpeg development discussions and patches <ffmpeg-
> > devel@ffmpeg.org>
> > > Subject: Re: [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename
> > and
> > > move writer functions and options
> > >
> > > On Thu, Feb 27, 2025 at 02:01:34PM +0000, softworkz wrote:
> > > > From: softworkz <softworkz@hotmail.com>
> > > >
> > > > Signed-off-by: softworkz <softworkz@hotmail.com>
> > > > ---
> > > >  fftools/ffprobe.c                   | 910 ++++++-------------------
> > --
> > > -
> > > >  libavutil/Makefile                  |   1 +
> > > >  libavutil/avtextformat.h            |  50 ++
> > > >  libavutil/textformat/avtextformat.c | 620 +++++++++++++++++++
> > > >  4 files changed, 848 insertions(+), 733 deletions(-)
> > > >  create mode 100644 libavutil/textformat/avtextformat.c
> > >
> > > this and patch 1 crash
> > >
> > > ==1574970== Invalid read of size 1
> > > ==1574970==    at 0x483EF46: strlen (in /usr/lib/x86_64-linux-
> > > gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> > > ==1574970==    by 0x7683D14: __vfprintf_internal (vfprintf-
> > > internal.c:1688)
> > > ==1574970==    by 0x7696F99: __vsnprintf_internal (vsnprintf.c:114)
> > > ==1574970==    by 0x1239AA1: av_vbprintf (in ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x1256473: av_log_default_callback (in
> > > ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x1256162: av_log (in ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x125CB4B: av_opt_set_defaults2 (in
> > ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x127611C: avtext_context_open (in ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x2F9672: main (in ffmpeg/ffprobe_g)
> > > ==1574970==  Address 0xffffffff is not stack'd, malloc'd or (recently)
> > > free'd
> > > ==1574970==
> > > ==1574970==
> > > ==1574970== Process terminating with default action of signal 11
> > > (SIGSEGV)
> > > ==1574970==  Access not within mapped region at address 0xFFFFFFFF
> > > ==1574970==    at 0x483EF46: strlen (in /usr/lib/x86_64-linux-
> > > gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> > > ==1574970==    by 0x7683D14: __vfprintf_internal (vfprintf-
> > > internal.c:1688)
> > > ==1574970==    by 0x7696F99: __vsnprintf_internal (vsnprintf.c:114)
> > > ==1574970==    by 0x1239AA1: av_vbprintf (in ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x1256473: av_log_default_callback (in
> > > ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x1256162: av_log (in ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x125CB4B: av_opt_set_defaults2 (in
> > ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x127611C: avtext_context_open (in ffmpeg/ffprobe_g)
> > > ==1574970==    by 0x2F9672: main (in ffmpeg/ffprobe_g)
> > > ==1574970==  If you believe this happened as a result of a stack
> > > ==1574970==  overflow in your program's main thread (unlikely but
> > > ==1574970==  possible), you can try to increase the size of the
> > > ==1574970==  main thread stack using the --main-stacksize= flag.
> > > ==1574970==  The main thread stack size used in this run was 8388608.
> > >
> > > testcase: ./ffprobe_g -v 99 ~/tickets/3679/wgetmjpegdump
> > >
> > > tell me if this file is not in the ticket and ill send it to you
> > 
> > Hi Michael,
> > 
> > only patch 8/8 is expected to work. Since this is a RFC for the moment,
> > I spared the time for making sure that every single commit builds.
> > (please see cover letter notes in 0/8)
> > 
> > Once the direction is clear, I'll prepare a patchset with all commits
> > working of course.

ok


> > 
> > Thanks
> 
> Did you try 8/8 - does it pass for you? It's fine locally on x64 Linux, on AzDevops Linux x64 and on Patchwork andriy/make_fate_x86.
> But what bothers me a bit is that it failed on the Chinese CPU system.

i found the issue in 1+2 as a result of bisecting, so no the whole set
crashed

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The difference between a dictatorship and a democracy is that every 4 years
the population together is allowed to provide 1 bit of input to the government.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

  reply	other threads:[~2025-02-28  2:29 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 14:01 [FFmpeg-devel] [PATCH 0/8] [RFC] avtextformat: Transform text writing into an independent API ffmpegagent
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 1/8] ffprobe/avtextformat: Rename and move writer structs softworkz
2025-02-28  1:18   ` Michael Niedermayer
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and move writer functions and options softworkz
2025-02-28  1:23   ` Michael Niedermayer
2025-02-28  1:30     ` Soft Works
2025-02-28  1:47       ` Soft Works
2025-02-28  2:29         ` Michael Niedermayer [this message]
2025-02-28  2:43           ` Soft Works
2025-03-01 22:02             ` Michael Niedermayer
2025-03-01 22:52               ` Soft Works
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 3/8] ffprobe/avtextformat: Generalize ffprobe specifics softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 4/8] ffprobe/avtextformat: Rename flags and enums softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 5/8] ffprobe/avtextformat: Move flags softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 6/8] ffprobe/avtextformat: Rename writer to formatter softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 7/8] ffprobe/avtextformat: Move formatters to avutil softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 8/8] ffprobe/avtextformat: Split out text writers as independent classes softworkz
2025-02-28  5:02 ` [FFmpeg-devel] [PATCH v2 0/8] [RFC] avtextformat: Transform text writing into an independent API ffmpegagent
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 1/8] ffprobe/avtextformat: Rename and move writer structs softworkz
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 2/8] ffprobe/avtextformat: Rename and move writer functions and options softworkz
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 3/8] ffprobe/avtextformat: Generalize ffprobe specifics softworkz
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 4/8] ffprobe/avtextformat: Rename flags and enums softworkz
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 5/8] ffprobe/avtextformat: Move flags softworkz
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 6/8] ffprobe/avtextformat: Rename writer to formatter softworkz
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 7/8] ffprobe/avtextformat: Move formatters to avutil softworkz
2025-02-28  5:02   ` [FFmpeg-devel] [PATCH v2 8/8] ffprobe/avtextformat: Split out text writers as independent classes softworkz
2025-02-28 13:51   ` [FFmpeg-devel] [PATCH v2 0/8] [RFC] avtextformat: Transform text writing into an independent API Nicolas George
2025-02-28 22:29     ` Soft Works

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250228022915.GQ4991@pb2 \
    --to=michael@niedermayer.cc \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git