<p dir="auto">by <strong>consalus</strong>:</p>
<pre class="notranslate">With weekly.2011-03-15 (and tip) on darwin and linux 6g, when I try to compile the
"gotcl" project, the compiler segfaults, apparently due to stack overflow.
When run in gdb, it looks like the issue occurs in sinit.c. The stack frames show
bouncing back and forth between init2 and init2list, though the eventual segfault
appears to happen in init1. My guess would be a cycle in the Node tree.

This issue doesn't appear to happen with the "release" branch or the
"weekly.2011-03-07.1" branch, so I assume it was introduced sometime between
the 7th and the 15th. I haven't gotten a chance to narrow the change range further.

Steps to duplicate:

   hg clone <a href="https://gotcl.googlecode.com/hg/" rel="nofollow">https://gotcl.googlecode.com/hg/</a> gotcl 
   cd gotcl
   make

For me on two machines, that results in a segfault.

Interestingly enough, if one changes "chans.go"  by commenting out line 136,
there is no segfault and everything compiles normally and tests pass. This phenomenon
doesn't appear to be dependent on the position of "forchan". When
"forchan" is added to the map by other means (in init), everything compiles
and it works fine.</pre>
<p dir="auto">by <strong><a href="mailto:gregory.tseng@moovweb.com">gregory.tseng@moovweb.com</a></strong>:</p>
<pre class="notranslate">Attached example program: regression.go

Environment: Windows 7 x64

Go versions: 1.0.3 and 1.2 (i386)

Assumptions:
Port 80 is occupied by another process.. Skype, Apache, etc.

Observations:
With go1.0.3, the example program will error out.

With go1.2, the example program (successfully?) binds to the port

Edge case:
If the first process that binds port 80 is a go program, the go1.0.3 example program
will not error out either.

If an additional instance of the compiled example program (in either go version) is run,
it will correctly error out.

Additional notes:
I tested the program on Ubuntu 12.04 x64 and in both go versions, it errors out
correctly.

I tried testing on Mac OSX (Mountain Lion and Mavericks), but did not end up with
conclusive results, so please check this out as well.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/7598/0/regression.go" rel="nofollow">regression.go</a> (178 bytes)</li>
</ol>