-
Notifications
You must be signed in to change notification settings - Fork 118
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
Crash from multiply replace_ in large expression #169
Labels
bug
Something isn't working
Comments
A hint would be the following valgrind output:
|
Hi,
This example seems a bit more minimal:
Symbol s;
CFunction den;
L F =
16608736983689726473/192
*den(2+s)
;
Multiply replace_(s,1);
Print +f +s;
.end
Makes the debugging a lot easier. I don’t know when I have time. I am trying to resolve too many
issues at the same time.
Jos
… On 22 feb. 2017, at 14:38, Takahiro Ueda ***@***.***> wrote:
A hint would be the following valgrind output:
==5873== Memcheck, a memory error detector
==5873== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==5873== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==5873== Command: vorm test
==5873==
FORM 4.1 (Feb 1 2017, v4.1-20131025-295-g313a3f5) 64-bits Run: Wed Feb 22 14:17:10 2017
...
Time = 680.34 sec Generated terms = 103392
1,1,1,1,1,-4,0)] Terms in output = 99850
input Bytes used = 3498340
==5873== Invalid read of size 4
==5873== at 0x4B94E8: TestSub (proces.c:1427)
==5873== by 0x4B4E66: Generator (proces.c:2984)
==5873== by 0x4B65AD: Generator (proces.c:3842)
==5873== by 0x4B7AF8: Processor (proces.c:404)
==5873== by 0x436F42: DoExecute (execute.c:812)
==5873== by 0x44D3C4: ExecModule (module.c:274)
==5873== by 0x4AE00A: PreProcessor (pre.c:898)
==5873== by 0x4E4988: main (startup.c:1601)
==5873== Address 0xb45678 is not stack'd, malloc'd or (recently) free'd
==5873==
Program terminating at test.frm Line 10 -->
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#169 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFLxEp7mk7PZoKUBrK-W8qFagT8kU3Zzks5rfDpngaJpZM4MIoKz>.
|
For me, (g104d5d8), this example does not crash. |
Jos's example gave me
May be a bit subtle depending on environment... |
Maybe then you can make one that also crashes for you by successively
making the expression smaller. That is what I did.
It does crash for me at exactly the same point as Takahiro posted, using valgrind.
Jos
… On 22 feb. 2017, at 15:35, Josh Davies ***@***.***> wrote:
For me, (g104d5d8), this example does not crash.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#169 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFLxEg1geFxB-elQayHSuQLzSkfQPG9Nks5rfEeugaJpZM4MIoKz>.
|
I think I solved it.
I just pushed it. For me at least it works now with the full expr.h file.
Jos
… On 22 feb. 2017, at 15:50, Jos Vermaseren ***@***.***> wrote:
Maybe then you can make one that also crashes for you by successively
making the expression smaller. That is what I did.
It does crash for me at exactly the same point as Takahiro posted, using valgrind.
Jos
> On 22 feb. 2017, at 15:35, Josh Davies ***@***.*** ***@***.***>> wrote:
>
> For me, (g104d5d8), this example does not crash.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub <#169 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFLxEg1geFxB-elQayHSuQLzSkfQPG9Nks5rfEeugaJpZM4MIoKz>.
>
|
tueda
added a commit
that referenced
this issue
Feb 22, 2017
Works for me. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
The following script crashes on my machines
with
expr.h: https://anomalousdimension.dedyn.io/expr.h
The commented lines have the same effect, and run with no problems.
Thanks,
Josh.
The text was updated successfully, but these errors were encountered: