<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/79445>79445</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang build golang cgo code, segment fault
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          lfeng14
      </td>
    </tr>
</table>

<pre>
    demo.go
```
package main

// #cgo LDFLAGS: -ldl
// #include <stdlib.h>
// #include <dlfcn.h>
import "C"
import (
        "fmt"
)

func main() {
        fmt.Printf("This is go demo\n")
        C.CString("libsystemd-login.so.0")
        return
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kk-PpCwQxj9NeSFtsJBWDx567Nf3ModNZr-AQonsInQEN5lvv9Hu-ZM-bEIgBb968lRRQ4zWeKIW5AvIazZsaQ5r6ybypiizMej3VtMSchOAX4Ff4Mwf6whvg_o9GGLLYP0DuO_YA_YMUCgT2Ou1f738_wbiwk5Ou2fEeuU2TQxEF5N2dsxnEP_9g9JuUv4bZJdbWBMDxA4Qn-7qD18NIE5L-iQAm--Wp82rex1YAzYMqpfPzGlJ-Y_V-jQdj_hztpHZyExge3dAdn6X_RJsurx7S6v15p7g7BjfY6JFn1ww1ucx5PwpZaW0rR9drK5P_c50K3QjmiGjtqj4uaibopTZ3ErOG8FHXZ0nrmiUQkgioZuCRMMJp8y2yLHkBcpCoCxlzs81VUrTWRV1VUsBJadlsC537s-Sh9VkNsaN2qopS5m5YSQXjwFBVG7YS8J9VtZ250_jZiKU3NmY4pdCsslRe-Bs3KzTzIQj2OdBBU2AHYtkFvKJTcPmUratrp1TukUQj283Ns3bmKuwAPa79OM43dbwi1QC7A-nEbA_zP4NAAD__5N0zoA">