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

  • Home
  • SEARCH
  • 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 6869753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:35:50+00:00 2026-05-27T03:35:50+00:00

My program operates like this: exe -p param1 -i param2 -o param3 It crashed

  • 0

My program operates like this:

exe -p param1 -i param2 -o param3

It crashed and generated a core dump file, core.pid.

I want to analyze the core dump file by

gdb ./exe -p param1 -i param2 -o param3 core.pid

But GDB recognizes the parameters of the EXE file as GDB’s input.

How do I analyze a core dump file in this situation?

  • 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-27T03:35:50+00:00Added an answer on May 27, 2026 at 3:35 am

    You can use the core with GDB in many ways, but passing parameters which is to be passed to the executable to GDB is not the way to use the core file. This could also be the reason you got that error. You can use the core file in the following ways:

    gdb <executable> <core-file> or gdb <executable> -c <core-file> or

    gdb <executable>
    ...
    (gdb) core <core-file>
    

    When using the core file you don’t have to pass arguments. The crash scenario is shown in GDB (checked with GDB version 7.1 on Ubuntu).

    For example:

    $ ./crash -p param1 -o param2
    Segmentation fault (core dumped)
    $ gdb ./crash core
    GNU gdb (GDB) 7.1-ubuntu
    ...
    Core was generated by `./crash -p param1 -o param2'. <<<<< See this line shows crash scenario
    Program terminated with signal 11, Segmentation fault.
    #0  __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:99
    99    ../sysdeps/i386/i686/multiarch/../../i586/strlen.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/../../i586/strlen.S
    (gdb)
    

    If you want to pass parameters to the executable to be debugged in GDB, use --args.

    For example:

    $ gdb --args ./crash -p param1 -o param2
    GNU gdb (GDB) 7.1-ubuntu
    ...
    (gdb) r
    Starting program: /home/@@@@/crash -p param1 -o param2
    
    Program received signal SIGSEGV, Segmentation fault.
    __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:99
    99    ../sysdeps/i386/i686/multiarch/../../i586/strlen.S: No such file or directory.
        in ../sysdeps/i386/i686/multiarch/../../i586/strlen.S
    (gdb)
    

    Man pages will be helpful to see other GDB options.

    Most useful commands are:

    • bt (backtrace)
    • info locals (show values of local variables)
    • info registers (show values of CPU registers)
    • frame X (change to stack frame X)
    • up and down (navigate in the stack frame (call chain))
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to hear your opinion about program life monitoring. This is the scenario.
What program can I use to decompile a class file? Will I actually get
Strange program hang, what does this mean in debug? After attaching windbg I found
A program that I work on assumes that the UUID generated by the Windows
I would like to implement a GA-based feature selection program for an SGI UV
I have a program that creates an object for each file in a directory
Say I want some functions to deal with some file, and I was considering
I am working on a simple FOSS VB.net program that operates mostly in one
When I exit my C++ program it crashes with errors like: EAccessViolation with mesage
Program followed by output. Someone please explain to me why 10,000,000 milliseconds from Jan

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.