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.

Bad Disassembly, Sea of Red Bookmarks

See original GitHub issue

To Reproduce Steps to reproduce the behavior:

  1. Compile the following code in a visual studio developer command prompt with the command cl /Zi /clr main.cpp
    #include <iostream>
    
    int main() {
        std::cout << "Hello World" << std::endl;
        return 0;
    }
    
  2. Import the resulting program into Ghidra and run analysis
  3. See thousands of error bookmarks

Expected behavior It should disassemble properly and not create error bookmarks everywhere. Alternatively, it should not disassemble at all. The former is preferred.

Insert generic but IDA can do this remark here.

Attachments main.zip

Environment (please complete the following information):

  • OS: Microsoft Windows [Version 10.0.22000.613]
  • Java Version: 11.0.14.1
  • Ghidra Version: All public versions
  • Ghidra Origin: [e.g. official ghidra-sre.org distro, third party distro, locally built] All of the above

Additional context Microsoft sucks

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
emteerecommented, Apr 19, 2022

An update to the parsing of the .Net data structures is nearing closure. The CLR processor is almost complete. Can’t promise a hard date or that it will be in 10.2, but is on the near term list to finish up.

1reaction
emteerecommented, Apr 18, 2022

I see the issue. It is mixed .NET Managed code and native code. I have a prototype fix that should work for both the upcoming patch release, and master.

We’re in the process of fully supporting .NET code in the near future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bad Disassembly, Sea of Red Bookmarks - bytemeta
To Reproduce Steps to reproduce the behavior: Compile the following code in a visual studio developer command prompt with the command cl /Zi...
Read more >
Red Rising Saga Quote Bookmarks - Etsy New Zealand
We are all stardust and stories!! My favourite quote is now on a bookmark I am so happy with it!! Purchased item: The...
Read more >
Thirty-One Bookmarks for sale - eBay
Great deals on Thirty-One Bookmarks. Get cozy and expand your home library with a large online selection of books at eBay.com. Fast &...
Read more >
Amazon.com : Oriental Carpet Bookmarks - 3 designs
Oriental Carpet Bookmarks - Antique Red Collection - 3 designs - Beautiful, Elegant, Woven Cloth Bookmarks! Best Gifts & Stocking Stuffers for Men,Women ......
Read more >
Does anybody put bookmarks on their favorite page after ...
I have been reading books since I was a small kid and as a result of that I have many, MANY favourite books....
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