【问题标题】:Go plugin core dumps when using go routines and variables使用 Go 例程和变量时 Go 插件核心转储
【发布时间】:2018-03-12 17:32:10
【问题描述】:

我无法在 go 插件中启动的 go 例程中使用变量。 以下代码是我正在尝试做的一个示例。

代码

// Can be an non-empty struct as well
var channel = make(chan string) 
log.Println(channel) 
go func(ch chan string) { 
    log.Println(ch) 
}(channel)

在 darwin 上的 go 插件中执行时出现 coredump 崩溃。

-是的 Go 插件在 darwin 上工作:http://prntscr.com/iq8czy

【问题讨论】:

  • 这里不是发布有关 Go 实现的错误的地方。问题跟踪器应该足够了。
  • @RayfenWindspear 不,他们在达尔文上工作得很好。除了……这个问题。只需使用 go 1.10 再试一次
  • 是的,它已经爆发了...runtime: unexpected return pc for runtime.goexit called from 0xc42007c0c0
  • 它被否决了,因为错误报告离题了。支持票就足够了。
  • 当他们在询问时不清楚是错误还是编程错误时,OP 拒绝投票似乎有点不公平

标签: go crash coredump


【解决方案1】:

我最近向 golang 报告了这个问题:Issue related to go plugin crashes

这似乎只在 darwin (OS X) 上出现。

【讨论】:

    猜你喜欢
    • 2018-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多