Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  'lftp' error while using in script.

    Posted Mon November 08, 2021 10:02 AM
    We recently updated lftp from 4.8.4-1 to 4.9.1. We're getting an error when using lftp in a script. It appears to be only when using the "cls" function inside lftp. Here is an example:

    # lftp <<EOF
    open ftp://**********
    user ****** ******
    cls
    quit
    EOF
    folder1/ folder2/ folder3/ folder4/
    The assert subroutine failed: __EX, file xheap.h, line 127
    IOT/Abort trap(coredump)

    It appears to only fail when using "cls" in this method. I found a GitHub bug report of the same thing here: http-get testcase fails in AIX · Issue #542 · lavv17/lftp

    We have downgraded back to 4.8.4-1 for the time being and it is working correctly.

    Thanks!​​

    ------------------------------
    Ryan McGuire
    ------------------------------

    #AIXOpenSource


  • 2.  RE: 'lftp' error while using in script.

    Posted Tue November 09, 2021 12:56 PM
    Thank you for reporting the issue. We will look into it.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: 'lftp' error while using in script.

    Posted Fri April 21, 2023 04:32 PM

    This is still happening in 4.9.2-1.  We just noticed it after a recent update.
    Is there a newer version that solves this?



    ------------------------------
    Howard Coles
    ------------------------------



  • 4.  RE: 'lftp' error while using in script.

    Posted Fri April 21, 2023 04:40 PM

    I just verified as well that 4.8.4-1 works as expected. 
    Is there an estimated version/date when this will be fixed?



    ------------------------------
    Howard Coles
    ------------------------------



  • 5.  RE: 'lftp' error while using in script.

    Posted Tue April 25, 2023 08:36 AM

    I have also confirmed that no "cls" was used in the script for this error to come up.



    ------------------------------
    Howard Coles
    ------------------------------