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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:06:25+00:00 2026-06-15T00:06:25+00:00

I have never seen this but i had this thing in my mind! stack

  • 0

I have never seen this but i had this thing in my mind!

stack memory error here could be a memory corruption also.
lets say there is a stack overflow in a c/c++ program.

does it create a core dump file?

  • 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-06-15T00:06:26+00:00Added an answer on June 15, 2026 at 12:06 am

    It depends on the operating system and language runtime. I’ll assume you’re talking about some flavour of Unix/Linux, since you mention a core dump.

    Typically, there will be some amount (perhaps a single page) of unmapped virtual memory beyond the stack. If you overflow by less than that amount, then the program will attempt to access that, giving a segmentation fault. If the program doesn’t handle the signal, then it will abort; and if core dumps are enabled, then one will be produced. You may need to enable core dumps, perhaps using ulimit -c unlimited from the shell you use to launch the program.

    If you overflow by a large amount, then you may instead overwrite some other part of the program’s memory. If this happens, then all bets are off; the program could crash, or could continue in a corrupt state and cause any kind of damage at any point in the future.

    That’s assuming that, by “overflow” you mean using more stack memory than has been allocated by some combination of a deep call stack and large automatic objects. If you’re talking about writing to the wrong part of the stack (e.g. by an out-of-bounds access to an automatic array), then you’ll typically get random memory corruption rather than a segmentation fault; again, the program might shamble on in a corrupt state with unpredictable results.

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

Sidebar

Related Questions

I have never seen this before, the rows will be sequential but I have
I am not strong on my PHP knowledge, but I have never seen this
I have seen this talked about but never answered. Maybe it has and I'm
I have seen many souce codes but I have never ever come across a
I have recently read the safe bool idiom article. I had seen this technique
I've never seen this happen before, very odd. I have a local SQL Server
I have never seen a buffer overflow exploit in live action. Suppose I found
I have never seen the usecase for pre-increment and post-increment in actual code. The
I'm wondering why I have never seen the following way to implement templates in
I've never seen anything like this. File structure: somefolder/base.php includes/stuff.php includes/constants.php base.php: <?php require(../includes/stuff.php);

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.