Author Topic: Segmentation Error  (Read 1160 times)

julieiskander

  • Guest
Segmentation Error
« on: May 11, 2016, 07:48:01 am »
I am working on codeblocks on ubuntu 14.4
it was working fine
now suddenly when i ran the program from codeblocks it gives segmentation fault (core dumped).
Whereas, when the same program is ran from g++ cmd it works just fine.

How can I solve that???

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13085
    • Travis build status
Re: Segmentation Error
« Reply #1 on: May 11, 2016, 11:13:02 am »
If your program crashes then you have some problem in your program.
Either a bug or the program is loading some incorrect shared library.
The best thing you can do is start using the debugger/valgrind to try and understand why it crashes.

Without knowing what your program does we can't help, also most of the times this is off topic for this forum.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]