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

Value error triggered on functions that don't need to be demangled. #10

Open
farzonl opened this issue May 28, 2023 · 0 comments
Open

Comments

@farzonl
Copy link

farzonl commented May 28, 2023

So this code

exceptions::PyValueError::new_err(("Could not demangle symbol", error.to_string()))

Is throwing a value error on these function names:
'_main', 'ctor_0', 'ctor_1', 'ctor_2', 'ctor_3', 'ctor_4', 'ctor_5', 'ctor_6', 'ctor_7', 'ctor_8', 'ctor_9', 'ctor_10', 'ctor_11', 'ctor_12', 'ctor_13', 'ctor_14', 'ctor_15', 'ctor_16', 'ctor_17', 'ctor_18', 'ctor_19', 'ctor_20', 'ctor_21', 'ctor_22', 'ctor_23', 'ctor_24', 'ctor_25', 'ctor_26'
I'm not entirely sure why c++ constructors are getting numbered like this.
This is my work around:

functionName = f.name
try:
    functionName = demangle(f.name)
except ValueError:
    allFailedFunctionNames.append(f.name)
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

1 participant