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

c++ frontend issue (EDG_ROSE_Translation) #208

Open
sepy97 opened this issue Jun 27, 2022 · 3 comments
Open

c++ frontend issue (EDG_ROSE_Translation) #208

sepy97 opened this issue Jun 27, 2022 · 3 comments
Assignees

Comments

@sepy97
Copy link

sepy97 commented Jun 27, 2022

When running any Rose tool (either a tool written by me or prebuilt rose tools,, such as identityTranslator) on some CPP files (not all of them, just those that have templates and other syntactic sugar) I keep getting this issue:
Error: default reached template_parameter_kind = 11 identityTranslator[1166814] 2.77245s Rose[FATAL]: assertion failed: identityTranslator[1166814] 2.77254s Rose[FATAL]: ../../../../../../rose/src/frontend/CxxFrontend/EDG/edgRose/edgRose.C:18791 identityTranslator[1166814] 2.77258s Rose[FATAL]: SgExpression* EDG_ROSE_Translation::convert_constant_template_parameter(a_constant_ptr) identityTranslator[1166814] 2.77260s Rose[FATAL]: required: false

It's happening on newer versions of Rose (0.11.46.0.1+), on older it's fine (for example, 0.11.46.0.0): both my tool and identityTranslator work fine on both C and CPP files. Both old and new versions of Rose were installed from apt package, so EDG frontend was part of the package.

On my Rose tool I've figured out the line that causes the issue:
ast = frontend(argv);
So, it seems like this issue is related to how Rose works with the frontend, not sure how can I debug this issue.
Any help would be useful

@tristanvdb
Copy link
Contributor

Sorry for the late reply. Can you provide details about your environment? Ubuntu version?

@sepy97
Copy link
Author

sepy97 commented Aug 9, 2022

Ubuntu 20.04

@sepy97
Copy link
Author

sepy97 commented Aug 17, 2022

just as a follow-up, this is the --version-long of ROSE on which I can observe this problem:

ROSE (version: 0.11.46.0.1)
--- using EDG C/C++ front-end version: edg-5.0
--- using OFP Fortran parser version: unknown (OFP is disabled)
--- using Boost version: 1.71.0 (/usr)
--- using backend C compiler: gcc-9 version: 9.3
--- using backend C compiler path (as specified at configure time): gcc-9
--- using backend C++ compiler: g++-9 version: 9.3
--- using backend C++ compiler path (as specified at configure time): g++-9
--- using original build tree path: /root/mount/rose-build
--- using instalation path: /usr/rose
--- using GNU readline version: unknown (readline is disabled)
--- using libmagic version: unknown (libmagic is disabled)
--- using yaml-cpp version: unknown (yaml-cpp is disabled)
--- using lib-yices version: unknown (libyices is disabled)
--- binary analysis is enabled
--- ARM AArch64 is disabled
--- ARM AArch32 is disasbled
--- concolic testing is disabled

As I already said, for an older version (Ubuntu 18, ROSE 0.11.46.0.0) there is no such an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants