Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault when gbm device doesn't outlive gbm buffer object #24

Open
FallingSnow opened this issue Jun 19, 2023 · 1 comment
Open

Comments

@FallingSnow
Copy link

$ uname -a
Linux ayrtonslaptop 6.3.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 14 Jun 2023 20:10:31 +0000 x86_64 GNU/Linux

ffi: Ptr::<ffi::gbm_bo>::new(ffi, |ptr| ffi::gbm_bo_destroy(ptr)),

Is causing a segmentation fault on my system when the gbm::Device is dropped before the buffer object. I'm not using any unsafe code so I don't think this should be allowed to happen.

Let me know if you need any more details.

@Drakulix
Copy link
Member

No, that shouldn't happen, see #25 for a potential solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants