Because you're loading junk addresses that are not valid pointers to memory in your process.
On Tue, Jan 26, 2016 at 1:47 PM, Bryan Rivera <[email protected]> wrote: > Why are these ops causing a segfault? > > unsafe_pointer_to_objref( Ptr{UInt32}(1000) ) > > > unsafe_load( Ptr{UInt32}(1000) ) > > The only reason I am using a pointer is because of a C function call. > > When I try to write a test using only Julia, it fails. The load is what I > narrowed it down to. >
