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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:36:42+00:00 2026-06-04T21:36:42+00:00

It used to be that I would get Segmentation Fault with no core, then

  • 0

It used to be that I would get Segmentation Fault with no core, then I added -ggdb to the compile command and executed this command in bash prior to executing gcc:

ulimit -c unlimited

All was good for a while (I got a core), but now I get Segmentation Fault (core dumped) but no core in the directory where gcc command was issued? Could it be going somewhere else? What else can I try?

A little additional info:

  1. OS: Gentoo Linux
  2. Enable ELF core dumps is enabled in the running kernel.
  3. The application is a text editor written in gtk+

Answer:
I found it two ways:

  1. find / -name "core" -ls
  2. As torek suggested:

    $ strace ./executable > output.txt 2>&1

    $ grep chdir output.txt

  • 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-04T21:36:46+00:00Added an answer on June 4, 2026 at 9:36 pm

    As @JonathanLeffler noted, the core dump goes in the current directory.

    You can use strace to see if the process has done a chdir(). Unfortunately strace does not show where the core dump itself went, but:

    $ cat crash.c
    int main(void) {
        chdir("/tmp");
        *(int *)0 = 0;
        return 0;
    }
    $ cc -o crash crash.c
    $ strace ./crash
    execve("./crash", ["./crash"], [/* 53 vars */]) = 0
    ... [lots of libc trace stuff snipped] ...
    chdir("/tmp")                           = 0
    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
    +++ killed by SIGSEGV (core dumped) +++
    Segmentation fault
    $ ls /tmp
    

    and there is now a core.pid file in there.

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

Sidebar

Related Questions

I have an application that used Macro. In this macro I would like to
Would it be correct to say that whenever casting is used, the resulting object
Would you happen to know of any tools that can be used to find
Would like to make anapplication in Java that will not automatically parse parameters used
I would like to know what packages are out there that can be used
Folks, Used to be that when you hit a servlet/jsp, the app server would
I'm used to do doing things like this: <a href=Javascript:void(0); onclick=GetCommentForGeneralObservation(<%# Eval(ID) %>)> That
This query would get one row with the id and the number of ID
For me usable means that: it's being used in real-wold it has tools support.
I used that article on code project to create my own Captcha image, is

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.