[BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

All your suggestions, requests and ideas for future development
Post Reply
fbmailcan
Posts: 5
Joined: 05 Nov 2022, 16:17

[BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by fbmailcan »

i run

Code: Select all

rpm -qa | grep -i filebot
	filebot-5.0.2-amd64.x86_64
on

Code: Select all

lsb_release -rd
	Description:    Fedora release 38 (Thirty Eight)
	Release:        38
with

Code: Select all

java -version
	Picked up JAVA_TOOL_OPTIONS: -Xmx1024M -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
	openjdk version "20" 2023-03-21
	OpenJDK Runtime Environment (Red_Hat-20.0.0.0.36-1.rolling.fc38) (build 20+36)
	OpenJDK 64-Bit Server VM (Red_Hat-20.0.0.0.36-1.rolling.fc38) (build 20+36, mixed mode, sharing)
prior to recent upgrade Fedora37 -> Fedora38, no issues.

currently, FileBot launches OK as usual.

but, if I drag a bunch of titles to FileBot, and try to match in TV Mode to TVDB, filebot crashes:

Code: Select all

Apr 26 09:14:30 dev01 plasmashell[6518]: #
Apr 26 09:14:30 dev01 plasmashell[6518]: # A fatal error has been detected by the Java Runtime Environment:
Apr 26 09:14:30 dev01 plasmashell[6518]: #
Apr 26 09:14:30 dev01 plasmashell[6518]: #  SIGSEGV (0xb) at pc=0x00007f266d564c4a, pid=6518, tid=6653
Apr 26 09:14:30 dev01 plasmashell[6518]: #
Apr 26 09:14:30 dev01 plasmashell[6518]: # JRE version: OpenJDK Runtime Environment Temurin-17.0.6+10 (17.0.6+10) (build 17.0.6+10)
Apr 26 09:14:30 dev01 plasmashell[6518]: # Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (17.0.6+10, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
Apr 26 09:14:30 dev01 plasmashell[6518]: # Problematic frame:
Apr 26 09:14:30 dev01 plasmashell[6518]: # C  [libmediainfo.so+0x164c4a]
Apr 26 09:14:30 dev01 plasmashell[6518]: #
Apr 26 09:14:30 dev01 plasmashell[6518]: # Core dump will be written. Default location: /var/lib/systemd/coredump/core.6518
Apr 26 09:14:30 dev01 plasmashell[6518]: #
Apr 26 09:14:30 dev01 plasmashell[6518]: # An error report file with more information is saved as:
Apr 26 09:14:30 dev01 plasmashell[6518]: # /home/dev01/hs_err_pid6518.log
Apr 26 09:14:30 dev01 plasmashell[6518]: #
Apr 26 09:14:30 dev01 plasmashell[6518]: # If you would like to submit a bug report, please visit:
Apr 26 09:14:30 dev01 plasmashell[6518]: #   https://github.com/adoptium/adoptium-support/issues
Apr 26 09:14:30 dev01 plasmashell[6518]: # The crash happened outside the Java Virtual Machine in native code.
Apr 26 09:14:30 dev01 plasmashell[6518]: # See problematic frame for where to report the bug.
Apr 26 09:14:30 dev01 plasmashell[6518]: #
Apr 26 09:14:30 dev01 kernel: potentially unexpected fatal signal 6.
Apr 26 09:14:30 dev01 kernel: CPU: 8 PID: 6653 Comm: Parallelism-1 Tainted: P           OE      6.2.12-300.fc38.x86_64 #1
Apr 26 09:14:30 dev01 kernel: Hardware name: System manufacturer System Product Name/PRIME X570-PRO, BIOS 4021 08/09/2021
Apr 26 09:14:30 dev01 kernel: RIP: 0033:0x7f27e8ae7b94
Apr 26 09:14:30 dev01 kernel: Code: 00 f0 ff ff 0f 46 da eb 87 0f 1f 44 00 00 b8 ba 00 00 00 0f 05 89 c3 e8 1a de 04 00 44 89 f2 89 de 89 c7 b8 ea 00 00 00 0f 05 <89> c3 f7 db 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c3 e9 78 ff ff ff
Apr 26 09:14:30 dev01 kernel: RSP: 002b:00007f26dc164a00 EFLAGS: 00000246 ORIG_RAX: 00000000000000ea
Apr 26 09:14:30 dev01 kernel: RAX: 0000000000000000 RBX: 00000000000019fd RCX: 00007f27e8ae7b94
Apr 26 09:14:30 dev01 kernel: RDX: 0000000000000006 RSI: 00000000000019fd RDI: 0000000000001976
Apr 26 09:14:30 dev01 kernel: RBP: 00007f26dc164a40 R08: 0000000000000000 R09: 0000000000000000
Apr 26 09:14:30 dev01 kernel: R10: 0000000000000008 R11: 0000000000000246 R12: 00007f26dc16a6c0
Apr 26 09:14:30 dev01 kernel: R13: 00007f26dc164be0 R14: 0000000000000006 R15: 00000000ffffffff
Apr 26 09:14:30 dev01 kernel: FS:  00007f26dc16a6c0 GS:  0000000000000000
Apr 26 09:14:30 dev01 plasmashell[6517]: /usr/bin/filebot: line 26:  6518 Aborted                 "$FILEBOT_HOME/jre/bin/java" -Dapplication.deployment=rpm -Dnet.filebot.AcoustID.fpcalc="$LIBRARY_PATH/fpcalc" --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.function=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.nio.file=ALL-UNNAMED --add-opens=java.base/java.nio.file.attribute=ALL-UNNAMED --add-opens=java.base/java.nio.channels=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.base/java.time.chrono=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/sun.nio.fs=ALL-UNNAMED --add-opens=java.logging/java.util.logging=ALL-UNNAMED --add-opens=java.desktop/java.awt=ALL-UNNAMED --add-opens=java.desktop/sun.awt=ALL-UNNAMED --add-opens=java.desktop/sun.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED -XX:+DisableAttachMechanism -Djna.boot.library.path="$LIBRARY_PATH" -Djna.library.path="$LIBRARY_PATH" -Djava.library.path="$LIBRARY_PATH" -Dapplication.dir="$APP_DATA" -Dapplication.cache="$APP_DATA/cache" -Djava.io.tmpdir="$APP_DATA/tmp" -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Dawt.useSystemAAFontSettings=on -Dprism.order=sw -Dnet.filebot.theme=Darcula -DuseGVFS=true -Dnet.filebot.gio.GVFS="$XDG_RUNTIME_DIR/gvfs" $JVM_OPTS $JAVA_OPTS $FILEBOT_OPTS -jar "$FILEBOT_HOME/jar/filebot.jar" "$@"
checking

Code: Select all

filebot -script fn:sysinfo
	Picked up JAVA_TOOL_OPTIONS: -Xmx1024M -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
	FileBot 5.0.2 (r9722)
	JNA Native: 6.1.4
	MediaInfo: 23.03
	7-Zip-JBinding: 16.02
	Tools: fpcalc/1.5.0 mkvpropedit/74.0.0
	Extended Attributes: OK
	Unicode Filesystem: OK
	GVFS: PlatformGVFS [/run/user/1000/gvfs]
	Script Bundle: 2023-04-14 (r896)
	Groovy: 4.0.11
	JRE: OpenJDK Runtime Environment 17.0.6
	JVM: OpenJDK 64-Bit Server VM
	CPU/MEM: 16 Core / 1.1 GB Max Memory / 47 MB Used Memory
	OS: Linux (amd64)
	HW: Linux dev01 6.2.12-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 20 23:05:25 UTC 2023 x86_64 GNU/Linux
	CPU/MEM: AMD Ryzen 7 3700X 8-Core Processor [MemTotal: 67 GB | MemFree: 60 GB | MemAvailable: 63 GB | SwapTotal: 17 GB | SwapFree: 17 GB]
	STORAGE: NONE
	UID/GID: uid=1000(dev01) gid=1000(dev01) groups=1000(dev01),6(disk),7(lp),10(wheel),11(cdrom),135(mock),387(www),983(vboxusers)
	DATA: /home/dev01/.filebot
	Package: RPM
	Activate License [PXXXXXXXX] on [Wed Apr 26 09:21:41 EDT 2023]
	License: FileBot License PXXXXXXXX (Valid-Until: 2023-09-27)
	Done ヾ(@⌒ー⌒@)ノ
noting

Code: Select all

# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
looks like it originates with bundled JVM ...
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by rednoah »

The problem originates at libmediainfo according to the log above.


:?: Which libmediainfo is installed on your system?


:arrow: Disabling libmediainfo can serve as an easy workaround if you don't need mediainfo integration.
:idea: Please read the FAQ and How to Request Help.
fbmailcan
Posts: 5
Joined: 05 Nov 2022, 16:17

Re: [BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by fbmailcan »

rpm -qa | grep -i libmedia
libmediainfo-23.03-1.fc38.x86_64
libmediainfo-devel-23.03-1.fc38.x86_64

from distro pkgs, @
https://src.fedoraproject.org/rpms/libmediainfo
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by rednoah »

Looks like the libmediainfo binaries broken.


:arrow: You can disable mediainfo integration like so:
viewtopic.php?t=12022
:idea: Please read the FAQ and How to Request Help.
fbmailcan
Posts: 5
Joined: 05 Nov 2022, 16:17

Re: [BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by fbmailcan »

that does the trick. thx! o/

is any functionality lost due to the disablement?
or just slowed down?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by rednoah »

It's going to be faster because FileBot won't be reading files content. Any feature / information / etc that requires reading the file content will not work / not be available/ etc.
:idea: Please read the FAQ and How to Request Help.
fbmailcan
Posts: 5
Joined: 05 Nov 2022, 16:17

Re: [BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by fbmailcan »

understood.

if you need more info from here in order to cobble a fix, let me know.

thx.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] segfault on Fedora38, @ "Problematic frame: C [libmediainfo.so+0x164c4a]"

Post by rednoah »

Unfortunately, the crash originates in libmediainfo.so for unknown reasons, so we can't debug or fix / workaround things from FileBot. Perhaps you could report the issue to the mediainfo package maintainer and / or MediaInfo developers as well.


:!: Since the MediaInfo project doesn't have an official Fedora 38 binary yet, perhaps the source is not yet compatible, even if it it compiles and somewhat works for some test cases:
https://mediaarea.net/en/MediaInfo/Download/Fedora
:idea: Please read the FAQ and How to Request Help.
Post Reply