47155 Segmentation fault core dumped
时间: 2023-09-03 17:09:10 浏览: 112
根据提供的引用内容和问题,似乎出现了一个段错误(core dumped)的问题。段错误通常是由内存不当操作引起的,比如空指针、野指针的读写操作,数组越界访问,破坏常量等。为了避免这个问题,可以对每个指针进行初始化为NULL,并且使用正确的下标访问数组。另外,使用字符串操作函数时,应该使用安全的函数来防止读写越界。如果想要排除这个问题,可以使用调试技巧如ulimit来查看生成core文件的大小限制。请检查代码中是否存在这些问题,并进行相应的修复。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core d](https://download.csdn.net/download/error0723/12013192)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [segmentation fault (core dumped)](https://blog.csdn.net/sexyluna/article/details/123766687)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文