Summary: | test for FD_CLOEXEC seems to be unreliable on NetBSD | ||
---|---|---|---|
Product: | dbus | Reporter: | Simon McVittie <smcv> |
Component: | core | Assignee: | D-Bus Maintainers <dbus> |
Status: | RESOLVED FIXED | QA Contact: | D-Bus Maintainers <dbus> |
Severity: | normal | ||
Priority: | low | CC: | jmmv, msniko14, prlw1 |
Version: | 1.5 | Keywords: | love |
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Simon McVittie
2014-09-15 17:15:15 UTC
From the thread starting here http://mail-index.netbsd.org/tech-kern/2014/09/15/msg017660.html it seems that the problem is that we're inheriting miscellaneous fds from the environment, which are not close-on-exec. So the D-Bus test framework, intended to make sure that D-Bus starts its activated services with only stdin, stdout and stderr open, has found bugs in NetBSD's GUI environment where it starts applications with more than stdin, stdout and stderr open. One possible solution would be to iterate through fds >= 3 during test startup and make them all close-on-exec, so that only the new fds opened by libdbus are subject to this check. (This is hard to do portably, but doing the same thing as that check would be "good enough".) Another would be to fix your GUI, or run these tests in a non-GUI environment. Attachment #108352 [details] over on Bug #73689 should fix this. fixed with bug #73689 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.