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.

CLE crashes when trying to load FASM-compiled executables

See original GitHub issue
>>> b=angr.Project('./garbage_bytes2.EXE')
ERROR   | 2015-12-15 16:57:25,594 | cle.loader | Loading error when loading /home/viktor/tool/angrtest/garbage_bytes2.EXE with backend Blob
Traceback (most recent call last): File "/home/viktor/.virtualenvs/angr3/local/lib/python2.7/site-packages/cle/loader.py", line 230, in load_object loaded = backend(path,compatible_with=compatible_with, filetype=filetype, is_main_bin=is_main_bin, **options)
  File "/home/viktor/.virtualenvs/angr3/local/lib/python2.7/site-packages/cle/backends/blob.py", line 25, in __init__raise CLEError("Must specify custom_arch when loading blob!")
CLEError: Must specify custom_arch when loading blob!
Traceback (most recent call last):    
  File "<stdin>", line 1, in <module>
  File "/home/viktor/.virtualenvs/angr3/local/lib/python2.7/site-packages/angr/project.py", line 98, in __init__
self.loader = cle.Loader(self.filename, **load_options)
File "/home/viktor/.virtualenvs/angr3/local/lib/python2.7/site-packages/cle/loader.py", line 88, in __init__
self._load_main_binary()
File "/home/viktor/.virtualenvs/angr3/local/lib/python2.7/site-packages/cle/loader.py", line 139, in _load_main_binary
self.main_bin = self.load_object(self._main_binary_path, self._main_opts, is_main_bin=True)
File "/home/viktor/.virtualenvs/angr3/local/lib/python2.7/site-packages/cle/loader.py", line 236, in load_object
raise CLEError("All backends failed loading %s!" % path)
cle.errors.CLEError: All backends failed loading /home/viktor/tools/angrtest/garbage_bytes2.EXE!

Not sure if this is my error or whether it is on angr/CLE. I made a fresh virtualenv to try and fix this. Didn’t help.

garbage_bytes.txt

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rhelmotcommented, Dec 18, 2015

Alright so the answer here is that this is a MS-DOS executable, which is not currently supported by CLE. It wouldn’t be too hard to write a loader for this format, since there’s no metadata and it’s basically a flat binary minus the header if I’m not mistaken.

0reactions
trietptmcommented, Mar 27, 2020

It would be nice to have angr CLE support for MS-DOS executable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cl.exe crashes with fast code optimization and Intel Memory ...
Trying to compile hook.c from MinHook https://github.com/TsudaKageyu/minhook library with /Ox and /d2MPX produces an internal compiler error. 1. Toolset ...
Read more >
Executable runtime crash caused by linking with dynamic ...
1 Answer 1 · After you run ldd on your executable, check the path(s) where that library is being loaded from, make sure...
Read more >
Quick Access Crashes Explorer
Step 1: Try to end the file explorer task. 1. Right click on Taskbar. 2. Click on Task Manager. 3. Right click on...
Read more >
5 Troubleshoot System Crashes
Crash in the Compiled Code ... Analyze the fatal error log to identify if the crash occurred in the compiled code. If the...
Read more >
Investigating memory access crashes
Memory corruption occurs when a memory location is unexpectedly modified. After this modification, another part of your app may crash when it tries...
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