Question: Kernel crash calling `assuming/restore_previous_state` inside catch. invalid nesting of _Inert_HASH structure

Maple 2025.1 on Linux.

I am not able to make MWE after 2 days trying. But this crash happens each time when I run my main application at same place.

So it is related to memory. Since in small example, it does not happen.

Sometimes I get server crash and sometimes I get message  I never seen before  invalid nesting of _Inert_HASH structure and it always happens on the call to the second line in `assuming/restore_previous_state`; shown below.  The crash says stack limit reached.

I have 92 GB RAM.

it happens on the command 

I could only for now make a small movie. with few debug commands I did.

If someone can suggest what other debug commands I could do to help find why this happen, I will try them. Maybe look at stack or examine some other maple internal data.

Here is the movie (you can put the mouse on the image and right click->open in new tab. To make it larger and easier to see)

It happen when I have odetest inside try/catch. And in the catch, call `assuming/restore_previous_state`;

 

Again, I am not able to make MWE, but I can reproduce this each time by running my main application.

It clear this is a bug in Maple internal in `assuming/restore_previous_state`; which was added not long ago in SupportTools. See https://www.mapleprimes.com/questions/240459-Why-Assuming-Keeps-Assumptions-On-Variables#answer309898  for reference.

Calling `assuming/restore_previous_state` is to clear stuck assumptions that Maple had when using odetest with assumption that were not being cleared correctly. But it seems there is a problem in the implementation of this function.

Please Wait...