BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
System Administration
Showing results for 
Search instead for 
Do you mean 

hpsmh broken with Debian 7 (wheezy) - segmentation fault

Occasional Visitor

hpsmh broken with Debian 7 (wheezy) - segmentation fault

Dear Staff,

 

with the upgrade to Debian 7 wheezy the system management homepage 'hpsmhd' service does not work anymore.

 

syslog says:

kernel: [1119919.555047] hpsmhd[28207]: segfault at 7f1e00000000 ip 00007f1e58380fa0 sp 00007fffb2704218 error 4 in libc-2.13.so[7f1e5826e000+180000]

 

Will there be a fix for this issue?

 

Kind Regards

Jens

 

 

7 REPLIES
Visitor

Re: hpsmh broken with Debian 7 (wheezy) - segmentation fault

Have the same issue. Will Debian 7 be supported?

Occasional Visitor

Re: hpsmh broken with Debian 7 (wheezy) - segmentation fault

Same problem with SLES 11 SP3.

 

In the strace output I saw this error happens during xml parsing so I removed /opt/hp/hpsmh/lib/libxml2.la and /opt/hp/hpsmh/lib/libxml2.so.2.7.8. This forced the SMH to use the OS supplied version of libxml2.

 

SMH is running now.

Occasional Visitor

Re: hpsmh broken with Debian 7 (wheezy) - segmentation fault

No luck here, still does not work.

with (seems incompatible) libxml2 hpsmhd runs, but does not parse xml correctly - thus returning garbled output, if any.

 

hpsmh uses libxml2.so.2.7.2 - which in Debian requires the libc6 version of 'squeeze'

Occasional Visitor

Re: hpsmh broken with Debian 7 (wheezy) - segmentation fault

Hello JKworks,

 

 I have the same problem as yours,

SegFault installing hpsmh, I tried several releases :

hpsmh_6.0.0-97_amd64.deb
hpsmh_7.1.2-3.2-4._amd64.deb
hpsmh-7.2.1-2.x86_64.rpm  convert with alien in  hpsmh_7.2.1-3_amd64.deb

Nothing....  always Segmentation fault, no service, no install...

 

Anything news ,

Pierre

Occasional Contributor

Re: hpsmh broken with Debian 7 (wheezy) - segmentation fault

Same problem here - trying to install on a Proxmox V3.1 server and I get the same.

 

When is this going to get resolved ?

Occasional Visitor

Re: hpsmh broken with Debian 7 (wheezy) - segmentation fault

Bump - Any update on this from HP? 

 

Thanks

 

 

Highlighted
Occasional Visitor

Re: hpsmh broken with Debian 7 (wheezy) - segmentation fault

[ Edited ]

As DanielKern states there is an xml segmentation fault parsing xml configuration (/opt/hp/hpsmh/conf/smhpd.xml):

 

It happens to me on Debian 6.0.7 Squeeze:

 

root@localhost:~# cat /etc/debian_version
6.0.7
root@localhost:~# uname -a
Linux localhost 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux

When you try to start hpsmhd (apache modified version) daemon with log level "debug" (http://httpd.apache.org/docs/2.2/mod/core.html#loglevel):

 

strace /opt/hp/hpsmh/sbin/hpsmhd -DSSL -e debug -E /tmp/log.txt -f /opt/hp/hpsmh/conf/smhpd.conf

 

The /tmp/log.txt shows no errors, but the strace command output is:

 

stat("/opt/hp/hpsmh/conf/smhpd.xml", {st_mode=S_IFREG|0644, st_size=973, ...}) = 0
open("/opt/hp/hpsmh/conf/smhpd.xml", O_RDONLY) = 7
lseek(7, 0, SEEK_CUR)                   = 0
read(7, "<?xml version=\"1.0\" encoding=\"UT"..., 8192) = 973
read(7, "", 7219)                       = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

If run the server again with strace, the error message "Configuration failed" appears, explained briefly here:

 

http://serverfault.com/questions/481346/why-does-apache-fail-to-start-and-only-say-configuration-failed-in-error-log

 

So, first I cleaned all dirty shared memory segments this segmentation fault generates:

 

ipcs -s | grep hpsmh | awk '{print $2;}' | while read -r line; do ipcrm sem "$line"; done

 

Then, force hpsmhd to use operating system libraries instead of using it own libraries (mv or rm) as recommended by DanielKern:

 

root@localhost:/opt/hp/hpsmh/lib# mv libxml2.* /root

 

And finally:

 

/etc/init.d/hpsmhd start

 

root@localhost:/opt/hp/hpsmh/lib# ps -edf | grep hp
root      9566     1  1 13:01 ?        00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf
root      9567  9566  0 13:01 ?        00:00:00 /opt/hp/hpsmh/bin/rotatelogs /var/spool/opt/hp/hpsmh/logs/error_log 5M
root      9568  9566  0 13:01 ?        00:00:00 /opt/hp/hpsmh/bin/rotatelogs /var/spool/opt/hp/hpsmh/logs/access_log 5M
hpsmh     9569  9566  0 13:01 ?        00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf
hpsmh     9570  9566  0 13:01 ?        00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf
hpsmh     9571  9566  0 13:01 ?        00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf
hpsmh     9572  9566  0 13:01 ?        00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf
hpsmh     9573  9566  0 13:01 ?        00:00:00 /opt/hp/hpsmh/sbin/hpsmhd -DSSL -f /opt/hp/hpsmh/conf/smhpd.conf

--
"You don't know where your shadow will fall",
Somebody.-
----------------------------------------------------------------
Olaf Reitmaier Veracierta
----------------------------------------------------------------
http://www.olafrv.com
----------------------------------------------------------------