New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: panic in cmd/compile/internal/gc.typecheck1 #27771
Comments
It helps greatly if you link to the exact project or mention the exact steps to build it. Is it this https://github.com/CmdrVasquess/BCplus ? What are the exact steps to clone and build it ? |
https://github.com/CmdrVasquess/BCplus is the project that produces the crash. Take the commit f2593416ec5faa5155d1b0de256771b9abf088cb into a clean go environment. Then 'go build' makes the compile crash – at least on my machine. The following patch to
This is the go.mod from a crashing build (crashes every time):
|
/cc @griesemer |
Could it be the return parameter name |
Just added some information as comment to the issue: Project Link, Git
commit label, go.mod
Am Donnerstag, den 20.09.2018, 01:14 -0700 schrieb Agniva De Sarker:
… It helps greatly if you link to the exact project or mention the
exact steps to build it.
Is it this https://github.com/CmdrVasquess/BCplus ?
What are the exact steps to clone and build it ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/golang/go
","title":"golang/go","subtitle":"GitHub
repository","main_image_url":"https://assets-cdn.github.com/images/em
ail/message_cards/header.png","avatar_image_url":"https://assets-
cdn.github.com/images/email/message_cards/avatar.png","action":{"name
":"Open in
GitHub","url":"https://github.com/golang/go"}},"updates":{"snippets":
***@***.*** in #27771: It helps greatly if
you link to the exact project or mention the exact steps to build
it.\r\n\r\nIs it this https://github.com/CmdrVasquess/BCplus
?\r\n\r\nWhat are the exact steps to clone and build it
?"}],"action":{"name":"View
Issue","url":"#27771 (comment)-
423085882"}}}
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#27771 (comment)
085882",
"url": "#27771 (comment)
882",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
***@***.***": "MessageCard",
***@***.***": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [golang/go] 'go build' crashes with SIGSEGV (#27771)",
"sections": [
{
"text": "",
"activityTitle": "**Agniva De Sarker**",
"activityImage": "https://assets-cdn.github.com/images/email/message_
cards/avatar.png",
"activitySubtitle": ***@***.***",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
***@***.***": "ActionCard",
"inputs": [
{
"isMultiLine": true,
***@***.***": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
***@***.***": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\":
\"IssueComment\",\n\"repositoryFullName\":
\"golang/go\",\n\"issueId\": 27771,\n\"IssueComment\":
\"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
***@***.***": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\":
\"golang/go\",\n\"issueId\": 27771\n}"
},
{
"targets": [
{
"os": "default",
"uri": "#27771 (comment)
882"
}
],
***@***.***": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
***@***.***": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\":
382089355\n}"
}
],
"themeColor": "26292E"
}
]
|
What did you do?
Working on my project BCplus (here on github) I changed the code then 'go build'
What did you expect to see?
Generally the build completes (sometimes with errors in my code, sometimes with success;)
What did you see instead?
I see ICE:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x70 pc=0xb7bbae]
goroutine 1 [running]:
cmd/compile/internal/gc.typecheck1(0xc00048c300, 0x2, 0xa8c9bb)
/usr/local/go/src/cmd/compile/internal/gc/typecheck.go:1270 +0x3ece
cmd/compile/internal/gc.typecheck(0xc00048c300, 0x2, 0xc000489701)
/usr/local/go/src/cmd/compile/internal/gc/typecheck.go:238 +0x6ad
cmd/compile/internal/gc.typecheck1(0xc00048c480, 0x2, 0x5002000000005)
/usr/local/go/src/cmd/compile/internal/gc/typecheck.go:584 +0x2c8a
cmd/compile/internal/gc.typecheck(0xc00048c480, 0x2, 0x0)
/usr/local/go/src/cmd/compile/internal/gc/typecheck.go:238 +0x6ad
cmd/compile/internal/gc.typecheck1(0xc00048c280, 0x1, 0x0)
/usr/local/go/src/cmd/compile/internal/gc/typecheck.go:2051 +0xaaf9
cmd/compile/internal/gc.typecheck(0xc00048c280, 0x1, 0xb8f17f)
/usr/local/go/src/cmd/compile/internal/gc/typecheck.go:238 +0x6ad
cmd/compile/internal/gc.typecheckslice(0xc000058140, 0x5, 0x8, 0x1)
/usr/local/go/src/cmd/compile/internal/gc/typecheck.go:68 +0x50
cmd/compile/internal/gc.Main(0xcc0f50)
/usr/local/go/src/cmd/compile/internal/gc/main.go:518 +0x2059
main.main()
/usr/local/go/src/cmd/compile/main.go:51 +0x96
System details
The text was updated successfully, but these errors were encountered: