Skip to content
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

Minor issue with redirection in the specialized binary (with configuration priming): curl #53

Closed
mudbri opened this issue Jul 4, 2021 · 4 comments
Assignees
Labels
bug Generic bug occamized-binary-exec-crash The specialized binary generated by OCCAM crashes over-specialization

Comments

@mudbri
Copy link

mudbri commented Jul 4, 2021

When curl is specialized with configuration priming, it results in a working binary. However, when the the output of the binary is redirected to a file, a segmentation fault occurs. This fault does not occur when configuration priming is not turned on. Files to reproduce the issue can be found here. The issue can be reproduced in the following steps:

  1. cd curl
  2. make (This might require installing openssl-1.0.2 using bash install_dependencies.sh)
  3. bash build.sh --enable-config-prime
  4. ./curl_occamized_stripped https://www.sri.com > t_out

This will result in a segmentation fault. However, when "> t_out" is removed, we get the expected output. If the --enable-config-prime flag is not used, there are no issues with redirection. This can be confirmed by running the test: make test

@caballa caballa added the bug Generic bug label Jul 6, 2021
@caballa caballa added the occamized-binary-exec-crash The specialized binary generated by OCCAM crashes label Aug 2, 2021
@caballa
Copy link

caballa commented Aug 2, 2021

The reason for the crash is explained in issue #54

@caballa caballa added the limitation Current limitations of OCCAM label Aug 2, 2021
@caballa caballa added over-specialization and removed limitation Current limitations of OCCAM labels Sep 22, 2021
@caballa caballa self-assigned this Sep 22, 2021
@caballa
Copy link

caballa commented Sep 29, 2021

Fixed in commit a348764

@caballa caballa closed this as completed Sep 29, 2021
@mudbri
Copy link
Author

mudbri commented Oct 12, 2021

I am still encountering a segmentation fault when I redirect the output of the specialized binary (e.g. ./curl_occamized_stripped https://www.sri.com > t_out)

@caballa caballa reopened this Oct 14, 2021
@caballa
Copy link

caballa commented Oct 19, 2021

I couldn't reproduce the error and Ashish either so I close again this issue.

@caballa caballa closed this as completed Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Generic bug occamized-binary-exec-crash The specialized binary generated by OCCAM crashes over-specialization
Projects
None yet
Development

No branches or pull requests

2 participants