Bug 202589 - multimedia/mpv crash by ctrl+c
Summary: multimedia/mpv crash by ctrl+c
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Carlos J. Puga Medina
URL: https://github.com/mpv-player/mpv/iss...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-23 10:13 UTC by sasamotikomi
Modified: 2016-08-01 13:04 UTC (History)
3 users (show)

See Also:
cjpm: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sasamotikomi 2015-08-23 10:13:38 UTC
If you stop player by ctrl+c it's  crash. 
$ mpv anything
ctrl+ c
$ Segmentation fault
Comment 1 Carlos J Puga Medina 2015-08-23 10:19:57 UTC
(In reply to sasamotikomi from comment #0)

It crashes if you press 'q' key?
Comment 2 sasamotikomi 2015-08-23 12:04:47 UTC
(In reply to Carlos J Puga Medina from comment #1)
No, it doesn't
Comment 3 Carlos J Puga Medina 2015-09-02 08:48:38 UTC
(In reply to sasamotikomi from comment #2)

So, what's the problem here?

Use 'q' key to close mpv :)
Comment 4 Carlos J Puga Medina 2015-10-20 16:11:11 UTC
Can we close this PR?
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2015-10-21 02:53:46 UTC
@Carlos, at maintainer request yes. I've assigned the issue to you, please let me know if you cannot close it. Please triage the issue as best you can (keywords, other fields), and then use the most correct resolution
Comment 6 Carlos J Puga Medina 2015-10-21 17:05:23 UTC
(In reply to Kubilay Kocak from comment #5)

Thanks, @Kubilay
Comment 7 sasamotikomi 2016-03-08 19:00:16 UTC
(In reply to Carlos J Puga Medina from comment #4)
Problem still present.
Comment 8 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-04-15 18:36:39 UTC
I can't reproduce this issue.
Comment 9 sasamotikomi 2016-05-23 03:32:33 UTC
(In reply to Carlos J. Puga Medina from comment #8)
Open any terminal emulator (xterm. urxvt etc.) or even without X.
$ mpv something.media
CTRL+C (in terminal emulator not in player window)
Get crash.
It's really terrible issue, I often forget and use CTRL+C in terminal instead of q and my system often full of mpv.core... 
backtrace:
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from /usr/local/lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libgraphite2.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libgraphite2.so.3
Reading symbols from /usr/local/lib/libiconv.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.2
Reading symbols from /usr/local/lib/libpcre.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libpcre.so.1
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x29f705a5 in swapcontext () from /lib/libthr.so.3
[New Thread 2c006a00 (LWP 100224/mpv/terminal)]
[New Thread 2c006780 (LWP 100158/mpv/lua (ytdl_hook))]
[New Thread 2c006500 (LWP 100147/mpv/lua (osc))]
[New Thread 2c003080 (LWP 101131/mpv)]
(gdb) bt full
#0  0x29f705a5 in swapcontext () from /lib/libthr.so.3
No symbol table info available.
#1  0x29f6fff1 in sigaction () from /lib/libthr.so.3
No symbol table info available.
#2  0xbfbff044 in ?? ()
No symbol table info available.
#3  0x00000002 in ?? ()
No symbol table info available.
#4  0x00010006 in ?? ()
No symbol table info available.
#5  0xbf7fbc20 in ?? ()
No symbol table info available.
#6  0x00000000 in ?? ()
No symbol table info available.
Comment 10 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-05-24 09:14:31 UTC
You can define the keybindings. 

See https://github.com/mpv-player/mpv/blob/master/etc/input.conf
Comment 11 Carlos J. Puga Medina freebsd_committer freebsd_triage 2016-08-01 13:03:50 UTC
Mpv exits properly with Ctrl^C'ed

% mpv file
...
CTRL+C

Exiting... (Quit)

So it works fine.