mpv crashed with SIGSEGV in _dl_close() called from libcuda.so.1

Bug #1967650 reported by Drew
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-510 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This was a fresh install of the daily image ubuntu mate downloaded on 4/2/2022.
Installed on btrfs, third party software enabled, nvidia driver set to on-demand mode.
Pretty much the first command I ran after install, intending to watch a twitch stream, while setting things up.

drew@drahsin:~$ mpv https://www.twitch.tv/videos/1444583539
 (+) Video --vid=1 (h264 1280x720)
 (+) Audio --aid=1 (aac 2ch 48000Hz)
     Subs --sid=1 --slang=rechat 'json' (null) (external)
[vaapi] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
Segmentation fault (core dumped)

ProblemType: Crash
DistroRelease: Ubuntu 22.04
Package: mpv 0.34.1-1ubuntu3
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Sat Apr 2 22:13:14 2022
ExecutablePath: /usr/bin/mpv
InstallationDate: Installed on 2022-04-03 (0 days ago)
InstallationMedia: Ubuntu-MATE 22.04 LTS "Jammy Jellyfish" - Daily amd64 (20220401)
ProcCmdline: mpv https://www.twitch.tv/videos/1444583539
SegvAnalysis:
 Segfault happened at: 0x7fb587f2224d <_dl_close+29>: cmpb $0x0,0x31f(%rbx)
 PC (0x7fb587f2224d) ok
 source "$0x0" ok
 destination "0x31f(%rbx)" (0x0000031f) not located in a known VMA region (needed writable region)!
 Stack memory exhausted (SP below stack segment)
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: mpv
StacktraceTop:
 _dl_close (_map=0x0) at ./elf/dl-close.c:795
 __GI__dl_catch_exception (exception=exception@entry=0x7fb574ad3d10, operate=<optimized out>, args=<optimized out>) at ./elf/dl-error-skeleton.c:208
 __GI__dl_catch_error (objname=0x7fb574ad3d68, errstring=0x7fb574ad3d70, mallocedp=0x7fb574ad3d67, operate=<optimized out>, args=<optimized out>) at ./elf/dl-error-skeleton.c:227
 _dlerror_run (operate=<optimized out>, args=<optimized out>) at ./dlfcn/dlerror.c:138
 __dlclose (handle=<optimized out>) at ./dlfcn/dlclose.c:31
Title: mpv crashed with SIGSEGV in _dl_close()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
separator:

Revision history for this message
Drew (joriankarstark) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 ?? ()
 ?? ()
 ?? ()
 ?? ()
 __GI__dl_catch_exception (exception=exception@entry=0x7fb574ad3d10, operate=<optimized out>, args=<optimized out>) at ./elf/dl-error-skeleton.c:208

tags: removed: need-amd64-retrace
Revision history for this message
Drew (joriankarstark) wrote :

Just to note, this is not unique to streamed videos. I am also getting a segfault on local videos.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mpv (Ubuntu):
status: New → Confirmed
information type: Private → Public
Revision history for this message
Drew (joriankarstark) wrote :

As a workaround for anyone running into this:
switching to vulkan drivers by adding
gpu-api=vulkan
to my mpv.conf file has fixed this for me in the mean time.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The offending library seems to be specific to the Nvidia driver. I only assume it's Nvidia version 510.

summary: - mpv crashed with SIGSEGV in _dl_close()
+ mpv crashed with SIGSEGV in _dl_close() called from libcuda.so.1
affects: mpv (Ubuntu) → nvidia-graphics-drivers-510 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.