Skip to content
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

cgo callback into go code with a variadic function misbehaves #1323

Closed
gopherbot opened this issue Dec 5, 2010 · 6 comments
Closed

cgo callback into go code with a variadic function misbehaves #1323

gopherbot opened this issue Dec 5, 2010 · 6 comments

Comments

@gopherbot
Copy link
Contributor

by robert.hencke:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Extract the attached code
2. make bug
3. ./bug

What is the expected output?
x is 1 - hooray

What do you see instead?
x is 1 - hooray
unexpected fault address 0xf400000000000177
throw: throw: throw: throw: throw: throw: throw: malloc/free - deadlock

panic PC=0x2cc198
throw: malloc/free - deadlock
double panic

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Mac OS X 10.6 (64-bit)

Which revision are you using?  (hg identify)
a7674316208b tip

Please provide any additional information below.
If you comment out variadic(x), the program runs fine.
If you call BackIntoGo directly (not through C), the program also runs fine.

Attachments:

  1. cgobug.zip (1416 bytes)
@adg
Copy link
Contributor

adg commented Dec 6, 2010

Comment 1:

Owner changed to r...@golang.org.

@adg
Copy link
Contributor

adg commented Dec 6, 2010

Comment 2:

Labels changed: added cgo.

@rsc
Copy link
Contributor

rsc commented Dec 8, 2010

Comment 3:

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2010

Comment 4:

Labels changed: added cgo-exported-symbols.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2010

Comment 5:

Labels changed: added cgoexport, removed cgo-exported-symbols.

@rsc
Copy link
Contributor

rsc commented Mar 6, 2011

Comment 6:

This issue was closed by revision 1169559.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants