Segmentation fault protection: Difference between revisions
Content added Content deleted
Line 48: | Line 48: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Most commonly, segfaults in Julia are indications of a problem in a called C library. However, the functions in Julia prefixed with |
Most commonly, segfaults in Julia are indications of a problem in a called C library. However, the functions in Julia prefixed with |
||
unsafe_, such as unsafe_load(), can be used to reference a null pointer as in C, and can thus cause a segfault in the LLVM |
unsafe_, such as unsafe_load(), can be used to reference a null pointer as in C, and can thus cause a segfault in the LLVM compiler runtime used to run Julia: |
||
<lang>julia> unsafe_load(convert(Ptr{Int}, C_NULL)) |
<lang>julia> unsafe_load(convert(Ptr{Int}, C_NULL)) |
||