Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Soft Works <softworkz-at-hotmail.com@ffmpeg.org>
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 02:43:50 +0000
Message-ID: <DM8P223MB03650E26A8847C42194FFAD0BACC2@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20250228022915.GQ4991@pb2>



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of
> Michael Niedermayer
> Sent: Freitag, 28. Februar 2025 03:29
> 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 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



What was the error when running all including 8/8?
The same?


> > > > testcase: ./ffprobe_g -v 99 ~/tickets/3679/wgetmjpegdump
> > > >
> > > > tell me if this file is not in the ticket and ill send it to you

Yes please. It doesn't seem to be there (only some pgrep and ncap files).


Thank you



_______________________________________________
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:44 UTC|newest]

Thread overview: 24+ 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
2025-02-28  2:43           ` Soft Works [this message]
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

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=DM8P223MB03650E26A8847C42194FFAD0BACC2@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM \
    --to=softworkz-at-hotmail.com@ffmpeg.org \
    --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