Jump to content

Segmentation fault, when starting debugging with GDB


perfstr

Recommended Posts

Hello, I would like to share my experience about development and debugging inside Armbian. On the beginning I tried to use Code::Blocks. But it crashed too many times, mostly during simple file editing. Then I found better IDE - CodeLite. When I wanted to debug a program, I found I have to install GDB. After installing and configuring it, the debugging looked to be possible, but every attempt finished with segmentation fault somewhere outside of my program, even before the first statement in main function was reached. After several attempts, I uninstalled and re-installed GDB and this time found recommended additional component - libc6-dbg. Installing this component fixed the fault problem. It looks a bit strange for me that the libc6-dbg is recommended and not required component. And another point - how would it be possible to detect during debugging that this component is missing?

 

I hope this topic will help somebody else, who meets the problem. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines