bulbazord added a comment.
Herald added a subscriber: JDevlieghere.

With this patch:

  alex@ubuntu:~/llvm-project/build$ ./bin/lldb foo
  (lldb) target create "foo"
  Current executable set to '/home/alex/llvm-project/build/foo' (aarch64).
  (lldb) r
  Process 19623 launched: '/home/alex/llvm-project/build/foo' (aarch64)
  Process 19623 stopped
  * thread #1, name = 'foo', stop reason = signal SIGSEGV: invalid permissions 
for mapped object (fault address: 0xfffff7ff6000)
      frame #0: 0x0000aaaaaaaa0808 foo`crash() at foo.cpp:5:7
     2
     3    void crash() {
     4            int *ptr = static_cast<int *>(mmap(nullptr, sizeof(int), 
PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0));
  -> 5            *ptr = 0x12345678;
     6            munmap(ptr, sizeof(int));
     7    }
     8
  (lldb)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146668/new/

https://reviews.llvm.org/D146668

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to