-
Notifications
You must be signed in to change notification settings - Fork 129
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
pass_line_markers causes fatal error when reducing #195
Comments
Locally I've worked around this by deleting the following line: Line 762 in 8a67e69
Is there a way to work around this bug by passing command line flags? I often run creduce on a server where I can't build it from source or update packages. |
I can add a command line option to remove a pass from the pass schedule, but I'd like to understand what leads to this assert being triggered, perhaps you can share a way for us to reproduce this problem? the line in question just opens the file being reduced, I don't see how this would fail. |
It appears that this pass is attempting to open the file in the current working directory but I invoke creduce with the CWD set to a different directory. I just found a workaround: if I copy the input file to that directory before invoking creduce the pass will succeed. It seems like the pass is opening the file before creduce has copied the current input to the working directory? |
One of the passes expects the input file to existing in the cwd so copy it there first before invoking creduce.
the rule for interestingness tests is that:
|
I think the following is happening: pass_line_markers opens the file in Line 609 in 8a67e69
All other passes seem to open the $cfile variable inside transform .It seems to me like c-reduce only copies the source file after calling new : Line 631 in 8a67e69
which is before calling transform :Line 635 in 8a67e69
Maybe pass_line_markers can be changed to open the file later? |
I found this too. It seems still not fixed. I have to put reduce target the same directory I invoke |
After updating creduce I am no longer able to reduce clang crashes. Every time I try, creduce dies with the following stack trace:
The text was updated successfully, but these errors were encountered: