Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
At the Beginning of my code i wrote :

1.section .data
2.fileName db '/home/fateme/Desktop/text.txt',0
3.


& when debug it (set breakpoint at line3!!)
it says:=> Program received signal SIGSEGV, Segmentation fault.
0x00000001 in ?? ()

why this means????? \m/ (i kill my self because of this errors:D)
text.txt is on my desktop!!!
Posted
Comments
Richard MacCutchan 14-Jul-10 4:59am    
Maybe if you showed the code at line 3 (and beyond) and explained which instruction caused the SEGV we could offer some better suggestions.

1 solution

A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system).

On Unix-like operating systems, a signal called SIGSEGV is sent to a process that accesses an invalid memory address.

For some details on Segmentation Fault[^].


Try to put the text file in a folder in another drive and give access privileges.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900