Quantcast
Viewing all articles
Browse latest Browse all 40524

How to get more information on "Segmentation fault (core dumped)" on Ubuntu

Hey,

I have quite a huge application, running on Ubuntu, that crashes very rarely but from time to time I get a "Segmentation fault (core dumped)" error. I checked the code many times, tried to figure out what is the problem is, tried to reproduce problem in a smaller application but I just and cannot understand what is going on. I tried to solve it many times but after a while this error comes back and it starts to be very frustrating.

My first idea to see a bit more what is going on is to actually check what kind of information is inside this "core dumped". But I cannot find a way to get this core really being dumped. I tried to run:

ulimit -c unlimited

But this doesn't do anything.

Next I tried to attached gbd to the process (see answer 3 in here). But as soon as I do that, my application hangs until I quit gbd so this is not usable.

Then I started to check about Apport but it got me confused more than anything and not sure if it's really a possible solution.

Is there a way to get similar report as on OS X when an application crashes on Ubuntu?

Thanks a lot!


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>