Open HPI is an open source implementation of the SA Forum's Hardware Platform Interface (HPI). HPI provides an abstracted interface to managing computer hardware, typically for chassis and rack based servers
praveen@debian8:~/openhpi$ cat /etc/issue
Debian GNU/Linux stretch/sid \n \l
praveen@debian8:~/openhpi$ dpkg -l | grep libglib
ii libglib-perl 3:1.320-2 amd64 interface to the GLib and GObject libraries
ii libglib2.0-0:amd64 2.46.0-2 amd64 GLib library of C routines
ii libglib2.0-bin 2.46.0-2 amd64 Programs for the GLib library
ii libglib2.0-data 2.46.0-2 all Common files for GLib library
ii libglib2.0-dev 2.46.0-2 amd64 Development files for the GLib library
rc libglibmm-2.4-1c2a:amd64 2.42.0-1 amd64 C++ wrapper for the GLib toolkit (shared libraries)
ii libglibmm-2.4-1v5:amd64 2.46.1-1 amd64 C++ wrapper for the GLib toolkit (shared libraries)
praveen@debian8:~/openhpi$
Steps to reproduce the issue:
Compile and run the openhpi daemon.
When discovery is in progress, run “hpi_shell” with no arguments.
We get the below error and core dump.
praveen@debian8:~/ openhpi $ sudo /usr/local/sbin/openhpid -c /etc/openhpi/openhpi.conf.oa_ccc2_10
praveen@debian8:~/ openhpi $ ps -eaf | grep openhpi
root 3494 1 9 06:13 ? 00:00:00 /usr/local/sbin/openhpid -c /etc/openhpi/openhpi.conf.oa_ccc2_10
praveen 3496 3450 0 06:13 pts/1 00:00:00 grep openhpi
praveen@debian8:~/ openhpi $ hpi_shell
hpi_shell - This program came with OpenHPI 3.7.0
SAF HPI Version B.03.02
Attempt to unlock mutex that was not locked
Aborted (core dumped)
praveen@debian8:~/ openhpi $ ls -l core*
-rw------- 1 praveen praveen 9519104 Jan 14 06:13 core
praveen@debian8:~/openhpi$
It works fine when we allow to disover happen and after that we issue hpi_shell.
Other client programs such as hpiinv, hpitree –a etc works fine.
This issue is observed only on sid distribution debian machines, it works fine with squeeze distribution.
System Details:
praveen@debian8:~/openhpi$ cat /etc/issue Debian GNU/Linux stretch/sid \n \l praveen@debian8:~/openhpi$ dpkg -l | grep libglib ii libglib-perl 3:1.320-2 amd64 interface to the GLib and GObject libraries ii libglib2.0-0:amd64 2.46.0-2 amd64 GLib library of C routines ii libglib2.0-bin 2.46.0-2 amd64 Programs for the GLib library ii libglib2.0-data 2.46.0-2 all Common files for GLib library ii libglib2.0-dev 2.46.0-2 amd64 Development files for the GLib library rc libglibmm-2.4-1c2a:amd64 2.42.0-1 amd64 C++ wrapper for the GLib toolkit (shared libraries) ii libglibmm-2.4-1v5:amd64 2.46.1-1 amd64 C++ wrapper for the GLib toolkit (shared libraries) praveen@debian8:~/openhpi$
Steps to reproduce the issue:
praveen@debian8:~/ openhpi $ sudo /usr/local/sbin/openhpid -c /etc/openhpi/openhpi.conf.oa_ccc2_10 praveen@debian8:~/ openhpi $ ps -eaf | grep openhpi root 3494 1 9 06:13 ? 00:00:00 /usr/local/sbin/openhpid -c /etc/openhpi/openhpi.conf.oa_ccc2_10 praveen 3496 3450 0 06:13 pts/1 00:00:00 grep openhpi praveen@debian8:~/ openhpi $ hpi_shell hpi_shell - This program came with OpenHPI 3.7.0 SAF HPI Version B.03.02
Attempt to unlock mutex that was not locked Aborted (core dumped) praveen@debian8:~/ openhpi $ ls -l core* -rw------- 1 praveen praveen 9519104 Jan 14 06:13 core praveen@debian8:~/openhpi$
Reported by: openhpi2