question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception when loading rustc compiled executable

See original GitHub issue
Exception while running job "Loading file":
Traceback (most recent call last):
  File "CppHeaderParser/CppHeaderParser.py", line 2206, in __init__
  File "ply/lex.py", line 389, in token
ply.lex.LexError: Scanning error. Illegal character '$'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "angrmanagement/data/instance.py", line 284, in _worker
  File "angrmanagement/data/jobs/job.py", line 45, in run
  File "angrmanagement/data/jobs/loading.py", line 88, in _run
  File "angr/project.py", line 227, in __init__
  File "angr/project.py", line 358, in _register_object
  File "angr/procedures/definitions/__init__.py", line 327, in get
    return self.get_stub(name, arch)  # get_stub() might use the mangled name to derive the function prototype
  File "angr/procedures/definitions/__init__.py", line 345, in get_stub
    stub.prototype = self._proto_from_demangled_name(demangled_name)
  File "angr/procedures/definitions/__init__.py", line 308, in _proto_from_demangled_name
    parsed, _ = parse_cpp_file(name, with_param_names=False)
  File "angr/sim_type.py", line 2078, in parse_cpp_file
  File "CppHeaderParser/CppHeaderParser.py", line 2387, in __init__
CppHeaderParser.CppHeaderParser.CppParseError: Not able to parse  on line 1 evaluating "_"
Error around:

This is the executable it fails on: cg_clif.zip For reference this is the build/bin/cg_clif file created when compiling https://github.com/bjorn3/rustc_codegen_cranelift/

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rhelmotcommented, Apr 1, 2022

see https://github.com/angr/angr-website-hugo/issues/28 😃 we should remove that from the website

0reactions
bjorn3commented, Apr 2, 2022

I can confirm this is now fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't check for update to Compiler.exe - Rust - Community
This means that something is preventing the compiler from performing an update check and starting. This could be due to a firewall or...
Read more >
Unable to execute a hello world project when using prefer ...
You are able to compile your code just fine, as shown by the fact that invoking the Rust compiler (a.k.a. rustc ) doesn't...
Read more >
CantPackException: need DT_INIT on Rust executable for MIPS
What's the problem (or question)? UPX refuses to compress a Rust executable cross-compiled for MIPS (using LEDE's toolchain) Ultimate Packer ...
Read more >
Rust release built web executable when run standalone ...
If I add more load, it'll start throwing the "connection reset by peer" error. ... so the issue is only with the standalone...
Read more >
A Freestanding Rust Binary | Writing an OS in Rust
Such an executable is often called a “freestanding” or ... You can compile your crate through cargo build and then run the compiled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found