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 6239767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:26:55+00:00 2026-05-24T11:26:55+00:00

Is it possible to debug core file generated by a executable compiled without gdb

  • 0

Is it possible to debug core file generated by a executable compiled without gdb flag ?

If yes, any pointers or tutorials on it ?

  • 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-24T11:26:56+00:00Added an answer on May 24, 2026 at 11:26 am

    Yes you can. It will not be easy though. I will give you an example.

    Lets say that I have the following program called foo.c:

    main()
    {
        *((char *) 0) = '\0';
    }
    

    I’ll compile it and make sure that there is no symbols:

    $ cc foo.c
    $ strip a.out
    $ file a.out
    a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
    

    Ok, time to run it:

    $ ./a.out
    Segmentation fault (core dumped)
    

    Oops. There seems to be a bug. Let’s start a debugger:

    $ gdb ./a.out core
    [..]
    Reading symbols from /tmp/a.out...(no debugging symbols found)...done.
    [..]
    Core was generated by `./a.out'.
    Program terminated with signal 11, Segmentation fault.
    #0  0x0804839c in ?? ()
    (gdb) bt
    #0  0x0804839c in ?? ()
    #1  0xb7724e37 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
    #2  0x08048301 in ?? ()
    

    Hmm, looks bad. No symbols. Can we figure out what happened?

    (gdb) x/i $eip
    => 0x804839c:   movb   $0x0,(%eax)
    

    Looks like it tried to store a byte with a value of zero to the memory location pointed by the EAX register. Why did it fail?

    (gdb) p $eax
    $1 = 0
    (gdb)
    

    It failed because the EAX register is pointing to a memory address zero and it tried to store a byte at that address. Oops!

    Unfortunately I do not have pointers to any good tutorials. Searching for “gdb reverse engineering” gives some links which have potentially helpful bits and pieces.

    Update:

    I noticed the comment that this is about debugging a core dump at a customer. When you ship stripped binaries to a customer, you should always keep a debug version of that binary.

    I would recommend not stripping and even giving the source code though. All code that I write goes to a customer with the source code. I have been on the customer side too many times facing an incompetent vendor which has shipped a broken piece of software but does not know how to fix it. It sucks.

    This seems to be actually a duplicate of this question:

    Debug core file with no symbols

    There is some additional info there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible duplicate Debug Visual Studio Release in .NET What is the difference between Debug
Is it possible? By debug I mean setting breakpoints, inspect values and advance step
Is it possible to debug a shell script in IntelliJ IDEA 9.0.3. I hava
Is it possible to debug the init event from a http module? If I
Is it possible to specify relative paths for shared libraries when I do core
is it possible to debug AIR applications with the Android Emulator?
Is it possible to debug issues with stuff like wsstracing? Or is the disassembly
I guess it is not possible to debug a query in SQL Server if
I have read around the net that its possible to debug VBScript WSH files
Is this possible to debug the query in SQL Server 2005. I have heard

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.