bitwiseworks / rpm-issues

all issues for rpm's not having a own repo go here
3 stars 1 forks source link

Crash in klusrmgr when WarpIN not installed #16

Closed altsan closed 2 years ago

altsan commented 3 years ago

Describe the bug

When updating libc on a barebones install without WarpIN installed, the dependency triggers installation of klusrmgr which then executes for initialization. However, the lack of WarpIN results in the following error:

Line 17 of _SMBUsersCheck in klusrmgr.VRM:
+++               WarpINPath = left(WarpINPath, length(WarpINPath) - 1 )
*** Error 40 Incorrect call to routine

This is because WarpINPath was retrieved using VRGetIni(), which returns an empty string on failure, and thus the expression length(WarpINPath)-1 is invalid.

This crash results in a VX-REXX error popup, which is problematic because this install operation is taking place in an unattended environment and the popup causes the process to hang indefinitely.

To Reproduce Steps to reproduce the behavior:

  1. Install klusrmgr via yum on a system without WarpIN installed.

Expected behavior klusrmgr should either initialize successfully without any error popups if WarpIN is absent, or else fail silently.

SilvanScherrer commented 3 years ago

this is a clear regression, which should not be there. We work on a fix asap.

herwigb commented 2 years ago

Fixed in klusrmgr 1.4.4