AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  After upgrade to AIX 7.3.1.2 'dnf update' seg faults

    Posted Wed March 27, 2024 12:09 PM

    I have an lpar that I upgraded from aix 7.1.4.3 to aix 7.3.1.2. I then successfully installed dnf but when I do a 'dnf update' I get a seg fault:

    dnf -vvv update
    DNF version: 4.2.17
    cachedir: /var/cache/dnf
    os-release file not found
    os-release: falling back to basic User-Agent: missing NAME or VERSION_ID
    repo: using cache for: AIX_Toolbox
    Segmentation fault(coredump)

    If I dbx the core:

    dbx /opt/freeware/bin/python3.9 /var/cache/dnf/core
    Type 'help' for help.
    [using memory image in /var/cache/dnf/core]
    reading symbolic information ...internal error: assertion failed at line 6693 in file object.c
    internal error: assertion failed at line 6693 in file object.c
    internal error: assertion failed at line 6693 in file object.c

    .

    .

    .

    internal error: assertion failed at line 6693 in file object.c


    Segmentation fault in inftrees.inflate_table [/opt/freeware/lib/libz.a] at 0x900000000d31e24 ($t1)
    0x900000000d31e24 (inflate_table+0x724) 7e93c92e           stwx   r20,r19,r25
    (dbx)

    When I look at /var/cache/dnf:

    /var/cache/dnf # ls -al
    total 50320
    drwxr-xr-x    3 root     system          256 Mar 26 16:28 .
    drwxr-xr-x    3 root     system          256 Mar 26 15:44 ..
    drwxr-xr-x    3 root     system          256 Mar 26 15:49 AIX_Toolbox-65d76c2c8658fdd3
    -rw-------    1 root     system     25754452 Mar 27 10:34 core
    -rw-r--r--    1 root     system            2 Mar 26 16:01 expired_repos.json
    -rw-r--r--    1 root     system            8 Mar 27 10:34 metadata_lock.pid

    Shouldn't there be more files in this directory? Any hints as to why it would seg fault?



    ------------------------------
    George White
    ------------------------------


  • 2.  RE: After upgrade to AIX 7.3.1.2 'dnf update' seg faults

    Posted Wed March 27, 2024 12:32 PM

    There won't be files in the cache until you do the update.

    Until then, this SHOULD be a link 

     /opt/freeware/lib/libz.a SHOULD be a link to /usr/opt/rpm/lib/libz.a , which  is provided by rpm.rte.

    1) First, verify this is a symlink:

    # ls -l /opt/freeware/lib/libz.a
    lrwxrwxrwx    1 root     system           23 Mar 27 11:36 /opt/freeware/lib/libz.a -> /usr/opt/rpm/lib/libz.a

    2) If it is correctly linked, what is your rpm.rte level?

    lslpp -l rpm.rte

    lppchk -c rpm.rte



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 3.  RE: After upgrade to AIX 7.3.1.2 'dnf update' seg faults

    Posted Wed March 27, 2024 03:08 PM

    I checked the link and it was bad. I relinked it as you show and dnf update now works. Thanks for the help.



    ------------------------------
    George White
    ------------------------------