Skip to content

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

@farzonl

Description

@farzonl

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions