-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(1)Output should fit inside a single term. Increase MaxTermSize? #292
Comments
OK, I think the issue is that if you arrive at https://github.com/vermaseren/form/blob/master/sources/sort.c#L963 the problem is not that MaxTermSize is too small, but actually you need larger SubSmallSize or SubTermsInSmall etc. The documentation does describe subfilepatches, sublargepatches, sublargesize though, should multi-stage sorting not be working here? Thanks, |
To my knowledge that ‘subsystem’ works, but indeed, you may have to set those to larger
values than the default.
Much of this was designed before the polyratfun existed and in those days it was hardly
ever used. The polyratfun however makes these parameters much more important.
Jos
… On 24 Aug 2018, at 10:13, jodavies ***@***.***> wrote:
OK, I think the issue is that if you arrive at https://github.com/vermaseren/form/blob/master/sources/sort.c#L963 <https://github.com/vermaseren/form/blob/master/sources/sort.c#L963> the problem is not that MaxTermSize is too small, but actually you need larger SubSmallSize or SubTermsInSmall etc.
The documentation does describe subfilepatches, sublargepatches, sublargesize though, should multi-stage sorting not be working here?
Thanks,
Josh.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#292 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFLxEnZTSaGjdKqIgaxiwYx3vwYzH4z0ks5uT7WngaJpZM4WJ8KY>.
|
Here is a simpler example,
which gives
So,
It seems something bad happens if the sub small buffer must be sorted to sub large buffer? Thanks, |
In this example, it is a Line 918 in 743ed4f
after which, newout->handle is 3 , set by PutOut : Line 1437 in 743ed4f
This causes the message and termination at: Line 960 in 743ed4f
It seems that it is assumed that if |
Various buffers in AllocSort depend on the IOsize parameter. At the main level this is >= MaxTermSize, but this was not the case when sorting function args, dollar variables. Fixes the examples in vermaseren#80 vermaseren#292
Various buffers in AllocSort depend on the IOsize parameter. At the main level this is >= MaxTermSize, but this was not the case when sorting function args, dollar variables. Fixes the examples in vermaseren#80 vermaseren#292
Hello,
This relates to the discussion in #289 (comment)
I have managed to extract a minimal crashing example from a larger set of codes: (rename as .frm)
test-minimal.txt
The example has two modes, inside a function argument (`#define DOINARG') or not.
Outside the function argument, everything runs OK. It also checks in each loop whether the current expression does indeed fit inside a function argument; it does.
Computing inside a function argument, however, it always crashes, however large I set MaxTermSize (10M, for eg, does not work).
For the first (commented) example input, it works for MaxTermSize values larger than 42K. With the default, (with my patches), I get the output
which is a different error from the crashing second input term.
The code which this has been taken from has run successfully on many millions of very similar input terms. This one causes problems.
Any ideas?
Thanks,
Josh.
The text was updated successfully, but these errors were encountered: