https://bugs.llvm.org/show_bug.cgi?id=43918

            Bug ID: 43918
           Summary: Debugserver doesn't continue with specified signal in
                    `vCont` packet
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev@lists.llvm.org
          Reporter: dmitry.neve...@gmail.com
                CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org

Created attachment 22778
  --> https://bugs.llvm.org/attachment.cgi?id=22778&action=edit
delve.log

I'm debugging the following go program on MacOS 10.14.6.

    package main

    import (
      "fmt"
      "os"
      "os/signal"
    )

    func main() {
      sigs := make(chan os.Signal, 1)
      signal.Notify(sigs, os.Interrupt)
      sig := <- sigs
      fmt.Printf("Got a signal '%v', start shutting down...\n", sig)
    }


The program waits for the SIGINT and exits. I'm sending SIGINT via `kill -2
<pid>`. Attached logs show that debugserver notifies go debugger that the
program got SIGINT (`$T02` package), go debugger responds with `vCont;C02`,
debugserver receives the packet, but doesn't call `MachProcess::Signal` and the
program doesn't get the SIGINT.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to