I've read through the same thing twenty times and I've missed something obvious. Someone who's never seen it before looks at and says, did you really mean to do this?
但是它们有一双旁观者之眼,我把同一段代码读上20遍,都会漏掉一些很明显的错误,从没看过这段代码的人会告诉我?
foo You probably weren't calling foo ad nauseam here but segmentation fault refers to segments of memory colliding.
你可能不会倒胃口地调用,但是段错误是涉及内存段冲突。
Segfault. And why might I possibly have done that?
段错误,为什么可能出现这种情况呢?
It's going to segfault, right?
出现段错误,对不?
Almost everyone in this room has probably had a segfault at some point or core dump where you end up with this random file called core, which recall is just the contents of memory at the time your program crashed.
几乎这个教室里的所有人,在某个时候,都遇到过段错误,或者通过这个core文件的,存储器内核更新,这就是你的内存出现错误,你的程序崩溃掉了。
If you pass a function in C, a value that it's not expecting bad things happen and bad things generally reduce to segfault.
如果你在C中传递一个函数,一个没有预料的情况将会出现,这个情况通常是段错误。
应用推荐