--- Begin Message ---
Package: mplayer2
Version: 2.0-701-gd4c5b7f-2
Severity: important
Moin!
mplayer2 segfaults here:
Christoph
gdb --args mplayer foo-1080p.mkv
GNU gdb (GDB) 7.6 (Debian 7.6-5)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-kfreebsd-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/mplayer...Reading symbols from
/usr/lib/debug/usr/bin/mplayer...done.
done.
(gdb) run
Starting program: /usr/bin/mplayer foo-1080p.mkv
MPlayer2 2.0-701-gd4c5b7f-2 (C) 2000-2012 MPlayer Team
Cannot open file '/home/christoph/.mplayer/input.conf': No such file or
directory
Failed to open /home/christoph/.mplayer/input.conf.
Playing foo-1080p.mkv.
[mkv] SeekHead position beyond end of file - incomplete file?
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang ger
[mkv] Track ID 3: audio (A_DTS), -aid 1, -alang eng
[mkv] Will play video track 1.
Detected file format: Matroska
Load subtitles in .
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object
file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[ass] auto-open
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: DCA (DTS Coherent Acoustics) [libavcodec]
AUDIO: 48000 Hz, 2 ch, floatle, 1536.0 kbit/50.00% (ratio: 192000->384000)
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VIDEO: 1920x816 23.976 fps 0.0 kbps ( 0.0 kB/s)
VO: [xv] 1920x816 => 1920x816 Planar YV12
X11 error: BadAccess (attempt to access private resource denied)
Program received signal SIGSEGV, Segmentation fault.
memset () at ../sysdeps/x86_64/memset.S:563
563 ../sysdeps/x86_64/memset.S: No such file or directory.
(gdb) bt full
#0 memset () at ../sysdeps/x86_64/memset.S:563
No locals.
#1 0x0000000000464392 in memset (__len=<optimized out>, __ch=128,
__dest=<optimized out>)
at /usr/include/x86_64-kfreebsd-gnu/bits/string3.h:84
No locals.
#2 allocate_xvimage (vo=0xc442c0, vo=0xc442c0, foo=0) at libvo/vo_xv.c:343
ctx = 0xc791f0
x11 = 0xc50680
#3 config (vo=0xc442c0, width=<optimized out>, height=<optimized out>,
d_width=<optimized out>,
d_height=<optimized out>, flags=<optimized out>, format=842094169) at
libvo/vo_xv.c:289
x11 = <optimized out>
vinfo = {visual = 0xc64f00, visualid = 33, screen = 0, depth = 24,
class = 4, red_mask = 16711680,
green_mask = 65280, blue_mask = 255, colormap_size = 256,
bits_per_rgb = 8}
xswa = {background_pixmap = 140737488337132, background_pixel = 816,
border_pixmap = 5820608,
border_pixel = 0, bit_gravity = 3159809, win_gravity = 2,
backing_store = 24,
backing_planes = 140737488337056, backing_pixel = 140737488336864,
save_under = 12862144,
event_mask = 9015536, do_not_propagate_mask = 13079024,
override_redirect = 1920, colormap = 816,
cursor = 1920}
attribs = {x = 0, y = 0, width = 1366, height = 768, border_width = 0,
depth = 24,
visual = 0xc64f00, root = 150, class = 1, bit_gravity = 1,
win_gravity = 1, backing_store = 0,
backing_planes = 4294967295, backing_pixel = 0, save_under = 0,
colormap = 32, map_installed = 1,
map_state = 2, all_event_masks = 5898292, your_event_mask = 0,
do_not_propagate_mask = 0,
override_redirect = 0, screen = 0xc58ae0}
xswamask = <optimized out>
depth = <optimized out>
ctx = 0xc791f0
i = 0
#4 0x0000000000440e52 in vo_config (vo=0xc442c0, width=width@entry=1920,
height=height@entry=816,
d_width=d_width@entry=1920, d_height=d_height@entry=816,
flags=flags@entry=0,
format=format@entry=842094169) at libvo/video_out.c:426
opts = 0x8990f0
ret = <optimized out>
#5 0x00000000004c6805 in config (vf=0xc71ca0, width=1920, height=816,
d_width=1920, d_height=816, flags=0,
outfmt=842094169) at libmpcodecs/vf_vo.c:74
info = 0x58d0c0 <info>
flags = 0
d_height = 816
d_width = 1920
vf = 0xc71ca0
outfmt = 842094169
height = 816
width = 1920
#6 0x000000000049a115 in vf_config_wrapper (vf=0xc71ca0, width=<optimized
out>, height=<optimized out>,
d_width=<optimized out>, d_height=<optimized out>, flags=<optimized out>,
outfmt=842094169)
at libmpcodecs/vf.c:701
r = <optimized out>
#7 0x000000000049a115 in vf_config_wrapper (vf=0xc721e0, width=<optimized
out>, height=<optimized out>,
d_width=d_width@entry=1920, d_height=d_height@entry=816,
flags=flags@entry=0, outfmt=842094169)
at libmpcodecs/vf.c:701
r = <optimized out>
#8 0x0000000000495d32 in mpcodecs_config_vo2 (sh=sh@entry=0x94f920,
w=<optimized out>, h=<optimized out>,
outfmts=0x7fffffffbab0, preferred_outfmt=<optimized out>) at
libmpcodecs/vd.c:335
opts = 0x8990f0
j = <optimized out>
out_fmt = 842094169
screen_size_x = 1920
screen_size_y = 816
vf = 0xc721e0
sc = 0x0
palette = 0
vocfg_flags = 0
#9 0x00000000004961bc in init_vo (sh=sh@entry=0x94f920,
pix_fmt=AV_PIX_FMT_YUV420P)
at libmpcodecs/vd_ffmpeg.c:492
supported_fmts = <optimized out>
ctx = 0xc724c0
avctx = 0xc72780
aspect = <optimized out>
width = 1920
height = 816
#10 0x0000000000496610 in decode (sh=0x94f920, packet=<optimized out>,
data=<optimized out>,
len=<optimized out>, flags=<optimized out>, reordered_pts=<optimized out>)
at libmpcodecs/vd_ffmpeg.c:778
got_picture = 1
ret = <optimized out>
ctx = 0xc724c0
pic = 0xc725a0
avctx = 0xc72780
lavc_param = <optimized out>
mpi = 0x0
dr1 = 0
pkt = {pts = -9223372036854775808, dts = -9223372036854775808, data =
0x11bf0d0 "", size = 59,
stream_index = 0, flags = 0, side_data = 0x0, side_data_elems = 0,
duration = 0, destruct = 0x0,
priv = 0x94f6c0, pos = -1, convergence_duration = 0}
#11 0x000000000049272c in decode_video (sh_video=sh_video@entry=0x94f920,
packet=packet@entry=0x11bf070,
start=0x11bf0d0 "", in_size=in_size@entry=59, drop_frame=0, pts=0) at
libmpcodecs/dec_video.c:451
mpi = 0x0
t = 2002941436
t2 = <optimized out>
tt = <optimized out>
opts = 0x8990f0
prevpts = <optimized out>
#12 0x000000000042b7b7 in update_video (mpctx=0x8990f0) at mplayer.c:2862
in_size = <optimized out>
buf = <optimized out>
pkt = 0x11bf070
framedrop_type = <optimized out>
decoded_frame = <optimized out>
sh_video = 0x94f920
video_out = 0xc442c0
pts = <optimized out>
frame_time = <optimized out>
#13 run_playloop (mpctx=0x8990f0) at mplayer.c:3453
vo = 0xc442c0
vsleep = <optimized out>
sh_video = <optimized out>
vf = <optimized out>
t2 = <optimized out>
time_frame = <optimized out>
aq_sleep_time = <optimized out>
pts_us = <optimized out>
duration = <optimized out>
pts2 = <optimized out>
opts = 0x8990f0
full_audio_buffers = false
audio_left = false
end_is_chapter = false
cmd = <optimized out>
video_left = <optimized out>
endpts = -9.2233720368547758e+18
sleeptime = 0.5
was_restart = true
buffered_audio = -1
#14 main (argc=<optimized out>, argv=<optimized out>) at mplayer.c:4905
mem_ptr = <optimized out>
opt_exit = <optimized out>
i = <optimized out>
mpctx = 0x8990f0
opts = 0x8990f0
stream_filename = <optimized out>
res = <optimized out>
__PRETTY_FUNCTION__ = "main"
sub_fps = <optimized out>
uninitialize_parts = <optimized out>
playtree_direction = <optimized out>
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 10.0-0-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mplayer2 depends on:
ii liba52-0.7.4 0.7.4-16
ii libass4 0.10.0-3
ii libavcodec54 6:9.8-2+b1
ii libavformat54 6:9.8-2+b1
ii libavresample1 6:9.8-2+b1
ii libavutil52 6:9.8-2+b1
ii libbluray1 1:0.2.2-1
ii libbs2b0 3.1.0+dfsg-2
ii libc0.1 2.17-92
ii libcaca0 0.99.beta18-1
ii libcdio-cdda1 0.83-4
ii libcdio-paranoia1 0.83-4
ii libcdio13 0.83-4
ii libdca0 0.0.5-6
ii libdirectfb-1.2-9 1.2.10.0-5
ii libdv4 1.0.0-6
ii libdvdnav4 4.2.0+20130225-3
ii libdvdread4 4.2.0+20130219-2
ii libenca0 1.14-3
ii libfaad2 2.7-8
ii libgif4 4.1.6-10
ii libgl1-mesa-glx [libgl1] 9.1.6-2
ii libjack-jackd2-0 [libjack-0.116] 1.9.9.5+20130622git7de15e7a-1
ii libjpeg8 8d-1
ii liblcms2-2 2.2+git20110628-2.2
ii liblircclient0 0.9.0~pre1-1
ii libmad0 0.15.1b-8
ii libmng1 1.0.10-3
ii libmpg123-0 1.15.3-1
ii libncurses5 5.9+20130608-1
ii libogg0 1.3.1-1
ii libpng12-0 1.2.49-4
ii libpostproc52 6:0.8.7-1
ii libpulse0 4.0-6
ii libquvi7 0.4.1-1
ii libsdl1.2debian 1.2.15-6
ii libsmbclient 2:3.6.17-1
ii libspeex1 1.2~rc1-7
ii libswscale2 6:9.8-2+b1
ii libtheora0 1.1.1+dfsg.1-3.1
ii libtinfo5 5.9+20130608-1
ii libvdpau1 0.7-1
ii libvorbis0a 1.3.2-1.3
ii libx11-6 2:1.6.1-1
ii libxext6 2:1.3.2-1
ii libxinerama1 2:1.1.3-1
ii libxss1 1:1.2.2-1
ii libxv1 2:1.0.9-1
ii libxvidcore4 2:1.3.2-9
ii libxxf86vm1 1:1.1.3-1
ii zlib1g 1:1.2.8.dfsg-1
mplayer2 recommends no packages.
mplayer2 suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Christoph,
I think you mentioned to me at some point in person that you believe
that this bug was caused by something on your system, and is not
really a problem in mplayer2. If I misremember, or you think that it
is a problem in mplayer2 after all, please reopen this bug with what
you found out.
Take care,
Reinhard
On Sat, Aug 31, 2013 at 10:37 AM, Reinhard Tartler <siret...@gmail.com> wrote:
> On Fri, Aug 30, 2013 at 11:01 PM, Christoph Egger <christ...@debian.org>
> wrote:
>> mplayer2 segfaults here:
>
>
> static void allocate_xvimage(struct vo *vo, int foo)
> {
> [..]
> {
> ctx->xvimage[foo] =
> (XvImage *) XvCreateImage(x11->display, x11->xv_port,
> ctx->xv_format, NULL,
> ctx->image_width,
> ctx->image_height);
> ctx->xvimage[foo]->data =
> malloc(ctx->xvimage[foo]->data_size);
> XSync(x11->display, False);
> }
> memset(ctx->xvimage[foo]->data, 128,
> ctx->xvimage[foo]->data_size);
> return;
> }
>
>
> Your backtrace indicates that the segfault occurs in the memset, which
> write to a memory area provided by XvCreateImage. I therefore suspect
> that this is caused by your video driver. I see that you are using
> kFreeBSD, may I ask what video driver you are using, so that I can
> reassign this bug appropriately?
>
> As a workaround, using opengl or Xshm as video backend could work.
>
> Cheers,
> Reinhard
--
regards,
Reinhard
--- End Message ---