Giter Site home page Giter Site logo

file handle leaks increase fast about libxcam HOT 3 CLOSED

intel avatar intel commented on August 26, 2024
file handle leaks increase fast

from libxcam.

Comments (3)

windyuan avatar windyuan commented on August 26, 2024

MengJia, please check this issue.
Thanks.

from libxcam.

dspmeng avatar dspmeng commented on August 26, 2024

commit f0f23a8 drm: enable prime buffer sharing for cl buffer and image

With above commit, two hidden issue are triggered by our use case:
V4l2 exports dma buf fd -> DrmBoData is created and get its own fd via drm_intel_bo_gem_export_to_prime() -> drm prime driver find an already exported dma buf (by v4l2), and go to a specific path.

  1. RBP Linux kernel 3.10.28 has a bug inside drm_prime.c, fixed later in 3.11. With this bug, driver already allocates fd, but failed to return it to user space. so drm_intel_bo_gem_export_to_prime() always failed in our user case, and has no way to close the fd.
  2. DrmBoBuffer is created for every incoming V4l2Buffer, and allocates a fd. But it didn't close the fd in destructor.

from libxcam.

dspmeng avatar dspmeng commented on August 26, 2024

Fixed by #217 and another linux kernel patch.

from libxcam.

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.