home.social

#segmentationfault — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #segmentationfault, aggregated by home.social.

  1. I generated a SIGSEGV for my program by typing
    print (long long) 40($rsp)
    in

    Ok, I know I expected a near that point, and my code contains
    mov 40(%rsp), %rax
    but the SIGSEGV should be raised a few instructions after this movq, when dereferencing a derivative of this 40(%rsp) and at both points (this gdb print and the normal SIGSEGV point) the stack pointer looks ok.