importing gozk causes runtime.Goexit() to hang

Bug #1278930 reported by Dvir Volk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gozk
New
Undecided
Unassigned

Bug Description

I've encountered this running a program that needed to exit on --help.

Found out that importing gozk causes it not to exit (go 1.2) when runtime.Goexit() is called.
I've managed to reproduce this, and even track the source of the problem :)

reproduce code here (not working in the playground of course):
http://play.golang.org/p/434rez15-z

The root of it is zk.go:264 - in init(): SetLogLevel(0)
which calls some C functions. Commenting it out removes the problem.

source for the above play attached

Revision history for this message
Dvir Volk (dvirsky) wrote :
Revision history for this message
Alexey Borzenkov (snaury) wrote :

This seems to be an issue with cgo, reported here: http://code.google.com/p/go/issues/detail?id=7711

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.