Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Double close a fd make the program logic not works #179

Open
sgbihu opened this issue Dec 16, 2019 · 3 comments
Open

Double close a fd make the program logic not works #179

sgbihu opened this issue Dec 16, 2019 · 3 comments

Comments

@sgbihu
Copy link

sgbihu commented Dec 16, 2019

The below two functions try to close same file descriptor twice.

cookie_pixmap = xcb_dri3_pixmap_from_buffer_checked (priv->xcbconn, pixmap, win, size,

It will call close at write_vec in xcb_conn.c

vaReleaseBufferHandle (GST_MFX_DISPLAY_VADISPLAY (proxy->display), va_img.buf);

this will close at i965_release_buffer_handle in intel VA driver.

If the system try to open a new fd, it will return the Line 477 closed fd. And then it close by Line 129 again. This will make resource closed and make program has problem.

@criusxu
Copy link

criusxu commented Feb 14, 2021

how to fix this bug?

@sgbihu
Copy link
Author

sgbihu commented Feb 18, 2021

I didn't fix it. Because it called third-part library. I don't know the side effect. I use multi-process as a workaround.

@criusxu
Copy link

criusxu commented May 26, 2021

My program must display multi mfxsink in one process, do you have any idea to fix this problem?

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

No branches or pull requests

2 participants