Giter Site home page Giter Site logo

Comments (5)

i-rinat avatar i-rinat commented on July 17, 2024

Looks like memory corruption, but I can't reproduce it on my machine (yet). Are there any chances you could do a bisection to find which was breaking change?

The way you usually do it is: you first checkout repository by git clone. Then go to v0.3.4 and mark is as "good" by git checkout v0.3.4; git bisect good. Then mark v0.3.6 as bad by git checkout v0.3.6; git bisect bad. And then compile and check every proposed state, with subsequent calling of git bisect good or git bisect bad, depending on whenever particular state was good (no bug) or bad (with bug). In relatively small number of steps you'll find which was breaking commit was.

from libvdpau-va-gl.

aliasaila avatar aliasaila commented on July 17, 2024

The bisect points to commit e10ef7a.

As for reproducing it, it seems to only happen when switching videos in VLC player.

Here's a slightly more detailed stack trace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff98ac3700 (LWP 7209)]
0x00007fffe81ce5b5 in dri2_unbind_context (context=, new=0x7fffc492a820) at ../../../../src/glx/dri2_glx.c:182
182 ../../../../src/glx/dri2_glx.c: No such file or directory.
(gdb) 
(gdb) bt
#0  0x00007fffe81ce5b5 in dri2_unbind_context (context=, new=0x7fffc492a820) at ../../../../src/glx/dri2_glx.c:182
#1  0x00007fffe81a6515 in MakeContextCurrent (dpy=0x7fffc613adc0, draw=85983241, read=85983241, gc_user=0x7fffc492a820) at ../../../../src/glx/glxcurrent.c:214
#2  0x00007fffa4158ff7 in do_presentation_queue_display (task=0x7fffc6162830) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:181
#3  0x00007fffa41596a9 in presentation_thread (param=0x7fffc4ecefa0) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:308
#4  0x00007ffff79a4454 in start_thread (arg=0x7fff98ac3700) at pthread_create.c:334
#5  0x00007ffff74ddedd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) bt full
#0  0x00007fffe81ce5b5 in dri2_unbind_context (context=, new=0x7fffc492a820) at ../../../../src/glx/dri2_glx.c:182
        pcp = 
        psc = 
#1  0x00007fffe81a6515 in MakeContextCurrent (dpy=0x7fffc613adc0, draw=85983241, read=85983241, gc_user=0x7fffc492a820) at ../../../../src/glx/glxcurrent.c:214
        gc = 0x7fffc492a820
        oldGC = 
#2  0x00007fffa4158ff7 in do_presentation_queue_display (task=0x7fffc6162830) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:181
        pqData = 0x7fffc4982020
        deviceData = 0x7fffc6168a30
        surface = 10
        clip_width = 0
        clip_height = 0
        surfData = 0x7fffc5777df0
        target_width = 0
        target_height = 0
        gl_error = 32767
        x11_err = -971626448
        __func__ = "do_presentation_queue_display"
        now = {tv_sec = 140735754808720, tv_nsec = 140737092783820}
#3  0x00007fffa41596a9 in presentation_thread (param=0x7fffc4ecefa0) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:308
        now = {tv_sec = 1458428292, tv_nsec = 453910752}
        timeout = -37
        task = 0x7fffc6162830
        int_q = 0x7fffc533d480
#4  0x00007ffff79a4454 in start_thread (arg=0x7fff98ac3700) at pthread_create.c:334
        __res = 
        pd = 0x7fff98ac3700
        now = 
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735754811136, -5747537729674460194, 0, 140736684701375, 3, 640, 5747602178275099614, 5747520933856494558}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 
        pagesize_m1 = 
        sp = 
        freesize = 
        __PRETTY_FUNCTION__ = "start_thread"
#5  0x00007ffff74ddedd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on July 17, 2024

The bisect points to commit e10ef7a.

That patch was made to make VLC work. It doesn't do any real changes, just returns some predefined values. Before that VLC just refused to use VDPAU. So the real issue was introduced somewhere else.

from libvdpau-va-gl.

i-rinat avatar i-rinat commented on July 17, 2024

Hi. I've recently changed the way GLX contexts are managed (switching to RAII concept in C++). Could you please check whenever issue is still there?

from libvdpau-va-gl.

aliasaila avatar aliasaila commented on July 17, 2024

Tested and it no longer crashes.

from libvdpau-va-gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.