Hi Paul,

thanks for reporting this.

I have checked the matter and the warning is bogus (from a time where a nested value could
not have more than one parent).

The warning is now removed (*SVN 1744*).

In contrast to the warning it should be safe to use the )SAVEd workspace.

Best Regards,
Jürgen


On 1/31/24 06:02, Paul Rockwell wrote:
I'm running GNU APL version 1.8 / SVN 1740M built on macOS 14.3 on an Apple Silicon (ARM) Mac.

I'm getting an error saving the workspace after executing the following:

        paulrockwell@Upstairs ~ % apl


                            ______ _   __ __ __    ___     ____   __

                           / ____// | / // / / /   /   |   / __ \ / /

                          / / __ /  |/ // / / /   / /| |  / /_/ // /

                         / /_/ // /|  // /_/ / / ___ | / ____// /___

                         \____//_/ |_/ \____/ /_/  |_|/_/    /_____/


                          Welcome to GNU APL version 1.8 / SVN: 1740M


                         Copyright © 2008-2023 Dr. Jürgen Sauermann

                               Banner by FIGlet: www.figlet.org


                        This program comes with ABSOLUTELY NO WARRANTY;

                                  for details run: apl --gpl.


             This program is free software, and you are welcome to
        redistribute it

                 according to the GNU Public License (GPL) version 3
        or later.


              PRD←('LPS' 6.95)('TAPES' 7.95)('CDS' 12.95)

              PRD

          LPS 6.95    TAPES 7.95    CDS 12.95

              )SAVE REPRO

        2024-01-30  23:55:55 (GMT-5)

              PRDTBL ← ⊃PRD

              PRDTBL

         LPS    6.95

         TAPES  7.95

         CDS   12.95

              )WSID

        IS REPRO

              )SAVE

        *** Sub-Value 0x152f164b0 has two parents.

        Child: vid=29, _val=0x152f164b0_par=1

        Parent 2: vid=5, _val=0x142e04c90_par=-1

        Call stack:

        *** useless apl.lines (no CXXFLAGS=-rdynamic -gdwarf-2)


        ----------------------------------------

        -- Stack trace at
        
/Volumes/MyPassport/paulrockwell/Documents/Build/GNU_APL/src/Archive.cc:1080

        ----------------------------------------

        0xa @@@@

        0xa  @@@@

        0xa   @@@@

        0xa    @@@@

        0xa     @@@@

        0xa      @@@@

        0xa       @@@@

        0xa        @@@@

        ========================================


         Running )CHECK...

        OK      - no stale functions

        OK      - no stale values

        OK      - no stale indices

        OK      - no duplicate parents



        The workspace will be )SAVEd, but using it for anything other
        than for

         recovering its content (i.e. defined functions or variables)
        means asking

         for BIG trouble!

        *** Sub-Value 0x152f06390 has two parents.

        Child: vid=23, _val=0x152f06390_par=2

        Parent 2: vid=5, _val=0x142e04c90_par=-1

        Call stack:


        ----------------------------------------

        -- Stack trace at
        
/Volumes/MyPassport/paulrockwell/Documents/Build/GNU_APL/src/Archive.cc:1080

        ----------------------------------------

        0xa @@@@

        0xa  @@@@

        0xa   @@@@

        0xa    @@@@

        0xa     @@@@

        0xa      @@@@

        0xa       @@@@

        0xa        @@@@

        ========================================


         Running )CHECK...

        OK      - no stale functions

        OK      - no stale values

        OK      - no stale indices

        OK      - no duplicate parents



        The workspace will be )SAVEd, but using it for anything other
        than for

         recovering its content (i.e. defined functions or variables)
        means asking

         for BIG trouble!

        *** Sub-Value 0x142e04200 has two parents.

        Child: vid=0, _val=0x142e04200_par=3

        Parent 2: vid=5, _val=0x142e04c90_par=-1

        Call stack:


        ----------------------------------------

        -- Stack trace at
        
/Volumes/MyPassport/paulrockwell/Documents/Build/GNU_APL/src/Archive.cc:1080

        ----------------------------------------

        0xa @@@@

        0xa  @@@@

        0xa   @@@@

        0xa    @@@@

        0xa     @@@@

        0xa      @@@@

        0xa       @@@@

        0xa        @@@@

        ========================================


         Running )CHECK...

        OK      - no stale functions

        OK      - no stale values

        OK      - no stale indices

        OK      - no duplicate parents



        The workspace will be )SAVEd, but using it for anything other
        than for

         recovering its content (i.e. defined functions or variables)
        means asking

         for BIG trouble!

        2024-01-30  23:56:28 (GMT-5)  REPRO

              )ERASE PRDTBL

              )SAVE

        2024-01-30  23:56:46 (GMT-5)  REPRO

              )OFF

As you can see, if I erase the variable PRDTBL, the save error goes away.

Please let me know if you need any other information or if I can assist in any further debugging. I have the sources and can debug and rebuild if necessary.

Thank you.

- Paul Rockwell
paulrockw...@mac.com

Reply via email to