<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Debugserver doesn't continue with specified signal in `vCont` packet"
   href="https://bugs.llvm.org/show_bug.cgi?id=43918">43918</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Debugserver doesn't continue with specified signal in `vCont` packet
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dmitry.neverov@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22778" name="attach_22778" title="delve.log">attachment 22778</a> <a href="attachment.cgi?id=22778&action=edit" title="delve.log">[details]</a></span>
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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>