openhpi2 / Open-HPI-base

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
0 stars 1 forks source link

hpi_shell gives core dump on debian OS #2611

Closed openhpi2 closed 8 years ago

openhpi2 commented 8 years ago

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:

  1. Compile and run the openhpi daemon.
  2. When discovery is in progress, run “hpi_shell” with no arguments.
  3. 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$

  1. It works fine when we allow to disover happen and after that we issue hpi_shell.
  2. Other client programs such as hpiinv, hpitree –a etc works fine.
  3. This issue is observed only on sid distribution debian machines, it works fine with squeeze distribution.

Reported by: openhpi2

openhpi2 commented 8 years ago

Original comment by: openhpi2

openhpi2 commented 8 years ago

This issue has been fixed as part of bug #1900(trunk revision 7667), hence closing this as closed-duplicate.

Original comment by: openhpi2