这是什么意思?? =>程序收到信号SIGSEGV,分段故障. 0x00000001 in ?? () [英] what is this means??=> Program received signal SIGSEGV, Segmentation fault. 0x00000001 in ?? ()

查看:651
本文介绍了这是什么意思?? =>程序收到信号SIGSEGV,分段故障. 0x00000001 in ?? ()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的代码开始时,我写了:

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


&调试时(在第3行设置断点!)
它说:=>程序收到信号SIGSEGV,分段错误.
0x00000001 in ?? ()

为什么这意味着????? \ m/(由于这个错误,我杀死了自己:D)
text.txt在我的桌面上!

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!!!

推荐答案

当程序尝试访问不允许访问的内存位置或尝试访问该内存位置时,发生分段错误以不允许的方式访问内存位置(例如,尝试写入只读位置或覆盖部分操作系统).

在类似Unix的操作系统上,一个名为SIGSEGV的信号发送到访问无效内存地址的进程.

有关分段错误 [ ^ ].


尝试将文本文件放在另一个驱动器的文件夹中并赋予访问权限.
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.


这篇关于这是什么意思?? =>程序收到信号SIGSEGV,分段故障. 0x00000001 in ?? ()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆