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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:06:04+00:00 2026-06-08T18:06:04+00:00

I have a multithreaded program running which crashes after a day or two. Moreover

  • 0

I have a multithreaded program running which crashes after a day or two. Moreover the gdb backtrace of the core dump does not lead anywhere. There are no symbols at the point where it crashes.

Now the machine that generates the core file has a physical memory of 3 Gigs and 5 Gigs swap space. But the core dump that we get is around 25 Gigs. Isn’t the core dump actually memory dump? Why is the core dump large?

And can anyone give me more lead on how to debug in such 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-06-08T18:06:05+00:00Added an answer on June 8, 2026 at 6:06 pm

    If you are running a 64-bit OS then you can have file-backed mappings that exceed many times the amount of available physical memory + swap space.

    Since kernel version 2.6.23, Linux provides a mechanism to control what gets included in the core dump file, called core dump filter. The value of the filter is a bit-field manipulated via the /proc/<pid>/coredump_filter file (see core(5) man page):

    • bit 0 (0x01) – anonymous private mappings (e.g. dynamically allocated memory)
    • bit 1 (0x02) – anonymous shared mappings
    • bit 2 (0x04) – file-backed private mappings
    • bit 3 (0x08) – file-backed shared mappings (e.g. shared libraries)
    • bit 4 (0x10) – ELF headers
    • bit 5 (0x20) – private huge pages
    • bit 6 (0x40) – shared huge pages

    The default value is 0x33 which corresponds to dumping all anonymous mappings as well as the ELF headers (but only if kernel is compiled with CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS) and the private huge pages. Reading from this file returns the hexadecimal value of the filter. Writing a new hexadecimal value to coredump_filter changes the filter for the particular process, e.g. to enable dump of all possible mappings one would:

    echo 0x7f > /proc/<pid>/coredump_filter
    

    (where <pid> is the PID of the process)

    The value of the core dump filter is iherited in child processes created by fork().

    Some Linux distributions might change the filter value for the init process early in the OS boot stage, e.g. to enable dumping the file-backed mappings. This would then affect any process started later.

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

Sidebar

Related Questions

I have written a multithreaded program which does some thinking and prints out some
I have a long-running multithreaded program, and I'd like to occasionally like to call
I have a multithreaded program which uses pthread mutexes for synchronization on few integers.
I have a speed critical multithreaded program which involves data in a tree structure.
I have a multithreaded C program, which consistently generates a segmentation fault at a
In a multithreaded C++ program, I have the equivalent of this running in one
If you have a multithreaded program (Linux 2.26 kernel), and one thread does something
My multithread program crash. I have .core file. I load it and thread apply
I have a multithreaded application, in which I'm trying to render with different threads.
I'm writing a multithreaded program, which would crash when a particular exception was thrown.

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.