Bug#721375: Dies with SIGSEGV

Reinhard Tartler siretart at gmail.com
Sat Aug 31 14:37:18 UTC 2013


On Fri, Aug 30, 2013 at 11:01 PM, Christoph Egger <christoph at 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



More information about the pkg-multimedia-maintainers mailing list