Program received signal SIGSEGV, Segmentation fault
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Program received signal SIGSEGV, Segmentation fault
hai everyone,
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182898743328 (LWP 22952)]
0x0000002a95da0340 in ?? ()
from /remote/data1/read.c
It means that the read.c code tried to access memory incorrectly. Did you write read.c yourself?
yes its my code only. can you please give me some more information about the SIGSEGV 11 signal and how to use the gdb to know the cause where it is happening in the code.
do you mean that stack space is not enough to execte the code
Quote:
Originally Posted by cyber-worx
Your attempting to access memory outside of your stack space.
Please paste your code :-)
hai everyone,
thanks for the inputs from all.
do you mean that to execute my code stack is not enough and my code tries to access out of allocated memory because of this reason am i getting this Segmentation fault (SIGSEGV 11 signal).
can you please give me some information about the tools in linux for how to trace on this segmentation issues or some other run time problems ( Dynamic execution ) problems.
i know only GDB tool. other than this tool do you know some other tools ( means to view the memory opcode and datas where and why segementation happens like that ).
gdb should be all you need, although if you are uncomfortable with the text interface, you could try one of the many GUIs which run on top of it. For data structures, ddd is quite nice (although the GUI is a little quirky).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.