Red Hat Bugzilla – Bug 826027
ipmitool segfaults in ipmi_lanplus_send_payload
Last modified: 2016-09-20 00:32:27 EDT
This bug has been fixed upstream, patch tracker item 3508759.
The upstream patch actually fixes something else, fixing retransmissions just as side-effect. I'll port back only the relevant part.
1) when using impitool delloem extensions, the new extended version crashes under some circumstances - when a connection cannot be established for some reason
for example, the command:
ipmitool -I lanplus -H $HOST -U $USERNAME -P wrongpassword delloem powermonitor
fails like this:
Error: Unable to establish IPMI v2 / RMCP+ session
Segmentation fault (core dumped)
this doesn't affect the function of the program under normal circumstances (if the connection is established)
2) with the new patch allowing to configure the timeout value, it happens that the default timeout is too low and the request fails, for example like this:
# ipmitool -I lanplus -H $HOST -U $USERNAME -P $PASSWORD sensor list
Unable to renew SDR reservation
Close Session command failed: Reservation cancelled or invalid
there is an easy workaround to specify the timeout explicitly using the new "-N" option, for example like this:
# ipmitool -I lanplus -H $HOST -U $USERNAME -P $PASSWORD -N 4 sensor list
CPU 1 Temp | na | degrees C | na | na | na | na | 85.000 | 90.000 | na
CPU 2 Temp | na | degrees C | na | na | na | na | 85.000 | 90.000 | na
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
In the previous ipmitool update, new options '-R' and '-N' were added to adjust retransmission rate of outgoing IPMI requests over lan and lanplus interfaces. Implementation of these options set wrong default value of retransmission timeout and outgoing request timed out prematurely. In addition, in some corner cases, ipmitool could segfault when the timeout occurred. This update fixes the default timeout value and ipmitool without '-N' option retransmits outgoing IPMI requests as in previous versions.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.