Wind River Support Network


LIN9-6836 : OpenHpi leaks file descriptors

Created: May 3, 2018    Updated: Dec 3, 2018
Resolved Date: May 14, 2018
Previous ID: CGP8-385
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Userspace


Calling saHpiSessionOpen/saHpiSessionClose leaves a file descriptor open.

Steps to Reproduce

1) Create a simple CGP project with openhpi --distro=wrlinux-cgl --all-layers --dl-layers --layers=wr-cgl --machines=intel-x86-64

2) Include a test case, I attached it as a layer in order to not use the SDK (extract the attached tarball in the root of the project)

3) Add the openhpi-test package to the project

$echo IMAGE_INSTALL += \"openhpi-test\" >> build/conf/

4) Start the target and start openhpid service with systemctl. You will need to disable the first line before.


5) Run openhpi-test in the background

6) There are two ways to see the issue:

6.1) ls -l /proc/`pidof wrl8_openhpi_test`/fd can be used to monitor file descriptor being leaked.
6.2) strace the test program, close() 

Other Downloads

Live chat