LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Assembly program (https://www.linuxquestions.org/questions/linux-newbie-8/assembly-program-946154/)

Lazar 05-21-2012 09:51 AM

Assembly program
 
Hello Linux users.
I am into programming in NASM and i have a problem running program i have created. I have compiled and linked the files as it should be, yet there is no way i can open the final file i have made. When i go to the right directory by terminal and type ./TEST (which is name of the program file) it replies with: Segmentation fault (core dumped). Please help.

manu-tm 05-21-2012 10:10 AM

This just means that your program crashed because of a segmentation fault (http://en.wikipedia.org/wiki/Segmentation_fault) so you must check and fix your code.

Doc CPU 05-21-2012 10:34 AM

Hi there,

Quote:

Originally Posted by manu-tm (Post 4684012)
This just means that your program crashed because of a segmentation fault (http://en.wikipedia.org/wiki/Segmentation_fault)

right, and very often, that happens if you use indirect addressing or indexing without initializing the base address and/or properly checking the indexes.

[X] Doc CPU


All times are GMT -5. The time now is 01:02 AM.