Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7578685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:29:27+00:00 2026-05-30T17:29:27+00:00

I get crash reports from end users with Dr. Watson info and I want

  • 0

I get crash reports from end users with Dr. Watson info and I want to use them to find out where the crash occured (i.e. on which line of the code).

I can’t just use the EIP from the crash report because the exe we ship is digitally signed, and that changes all the offsets. However the crash info also has “bytes at CS:EIP”, which is the first 16 bytes starting from EIP where the crash occured. It looks like this:

Bytes at CS:EIP:
85 c4 14 c3 8b ff 55 8b ec 6a 0a 6a 00 ff 75 08

Those 16 bytes occur exactly once in the exe. I can find their offset in the EXE using just a HEX viewer, but in order to jump there during debugging and see which line that is in the source, I need to know their offset in memory after the EXE is loaded.

What’s the best way to scan the code segment of the program after it’s loaded? Can I add code that finds where the base offset of the EXE is, and then cycle through that and use memcmp to find where the byte pattern occurs.

Also, how can I find where the base offset of the EXE is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:29:28+00:00Added an answer on May 30, 2026 at 5:29 pm

    I’m using a very simple approach for the same problem.

    First, I dumpbin my executable to find the physical (in file) offset of the code segment.

    Then I subtract it from the memory address where these “magic” bytes are located in the binary.

    Then I run the program under a debugger, and just add this offset to the virtual address of the code segment.

           .text name
      10EE8E virtual size
        1000 virtual address (00401000 to 0050FE8D)
      10F000 size of raw data
    
     --> 400 file pointer to raw data (00000400 to 0010F3FF) <--
    
           0 file pointer to relocation table
           0 file pointer to line numbers
           0 number of relocations
           0 number of line numbers
    60000020 flags
             Code
             Execute Read
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get crash reports from users with some Dr. Watson info, including the EIP.
I get crash reports from my app. I really don't understand what the problem
I have this exception that I get in my crash reports from Android: java.lang.NoSuchMethodError:
As per client requirement i want to send crash Report when App get crash.
Does anyone knows how to get crash logs from customers? Instead of manually asking
Is there a way on Flurry to get the full stacktrace of crash reports?
I'm currently using TestFlight in order to get remote crash reports on a beta
I'm using crittercism to get the crash report from my ipad app. What i
When my app crashes, I get a crash report that takes 5 minutes to
When I run STLport on Darwin I get a strange crash. (Haven't seen it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.