Opened 2 years ago

Closed 2 years ago

#9783 closed defect (needs_more_info)

Segmentation fault in zscale filter

Reported by: Michael Ruhwedel Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: zscale
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
ffmpeg -i <some-video> -vf 'zscale=-1:480,pad=640:480:(ow-iw)/2:(oh-ih)/2' <out>

results in:
Thread 1 "ffmpeg_g" received signal SIGSEGV, Segmentation fault.
0x00007ffff572f57c in ?? () from /usr/lib/libzimg.so.2

Attachments (3)

error.log (124.3 KB ) - added by Michael Ruhwedel 2 years ago.
error log with segmentation fault
log.log (70.7 KB ) - added by Michael Ruhwedel 2 years ago.
error log with segmentation fault, showing the ffmpeg version
ffmpeg-N-106951-g8bf618884b-linux64-gpl-error.log (67.7 KB ) - added by Michael Ruhwedel 2 years ago.
error log with segmentation fault, ffmpeg build via FFmpeg-Builds

Download all attachments as: .zip

Change History (15)

comment:1 by Elon Musk, 2 years ago

Not here, make sure you use latest version.

in reply to:  1 comment:2 by Michael Ruhwedel, 2 years ago

Replying to Elon Musk:

Not here, make sure you use latest version.

Apologies, where should i file the bug ticket?
I made sure I am using the latest version.
Compiled ffmpeg from main and zimg from v3.0.4

comment:3 by Elon Musk, 2 years ago

Post uncut full ffmpeg output.

by Michael Ruhwedel, 2 years ago

Attachment: error.log added

error log with segmentation fault

comment:4 by Michael Ruhwedel, 2 years ago

Thank you for following up, please see the file attached for the full output

comment:5 by Elon Musk, 2 years ago

Resolution: invalid
Status: newclosed

You posted cut output. Version is not displayed.

comment:6 by Michael Ruhwedel, 2 years ago

Resolution: invalid
Status: closedreopened

apologies again I had used -hide_banner. Please see the newly attached log file below.
what's confusing to me is that i compiled ffmpeg from the tag n5.1-dev
yet it shows as ffmpeg version 4.4.git

Last edited 2 years ago by Michael Ruhwedel (previous) (diff)

by Michael Ruhwedel, 2 years ago

Attachment: log.log added

error log with segmentation fault, showing the ffmpeg version

comment:7 by Elon Musk, 2 years ago

You posted 4.4 version, that is very old version by today standards.

comment:8 by Balling, 2 years ago

We do not support anything except the master branch of all libraries involved. Just use this: https://github.com/BtbN/FFmpeg-Builds

Also where is the input, LOL? vertical.mp4

comment:9 by Michael Ruhwedel, 2 years ago

Thank you for the suggestion and bearing with me =).
please see the new log attached. the binary was build using "FFmpeg-Builds linux64 gpl"
...
the error is independent of the video used. and now seems to be any zscale filter chain

code 2050: active window must be positive

Last message repeated 1 times

Error while filtering: Generic error in an external library
Failed to inject frame into filter network: Generic error in an external library

Last edited 2 years ago by Michael Ruhwedel (previous) (diff)

by Michael Ruhwedel, 2 years ago

error log with segmentation fault, ffmpeg build via FFmpeg-Builds

comment:10 by Balling, 2 years ago

Well, it no longer segfaults then.

[Parsed_zscale_0 @ 0x555c378ec4c0] code 2050: active window must be positive

should be understood.

comment:11 by Michael Ruhwedel, 2 years ago

Well, it no longer segfaults then.

true. For what it's worth the origin of the error message is
https://github.com/sekrit-twc/zimg/blob/master/src/zimg/graph/graphbuilder.cpp#L233
...
i'd say on master one error is now covering the other.

I'll close my bug report and keep retesting until I get to the segmentation fault again =)

comment:12 by Michael Ruhwedel, 2 years ago

Resolution: needs_more_info
Status: reopenedclosed
Note: See TracTickets for help on using tickets.