<p dir="auto">by <strong><a href="mailto:hanks_j@ligo-wa.caltech.edu">hanks_j@ligo-wa.caltech.edu</a></strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. Setup a web-server serving https with a certificate from a local CA

2. Point the program listed at <a href="http://play.golang.org/p/iKScTFUQl3" rel="nofollow">http://play.golang.org/p/iKScTFUQl3</a> at the server

3. The program is unable to complete the TLS handshake.

What is the expected output?

The program should complete a TLS handshake and exit without errors.

What do you see instead?

Two error conditions:
 1. if certificate verification is enabled, it states that the certificate is signed by an unknown authority
 2. if certificate verification is disabled, it states that there is a bad record MAC.

I have verified that the certificate chain is complete, that the certificate and key are
the correct pair.

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

gc

Which operating system are you using?

Ubuntu 10.04 amd 64bit
Debian 6 amd 64bit

Which version are you using?  (run 'go version')

Tested on 1.0.2, 1.0.3, tip

Please provide any additional information below.

This could be a problem with my CA setup.  However the CA and the test web server
satisfy both gnutls and openssl.  Both report the certificate chain as being valid.  I
can make the connection with anything else.

I have attached a sample certificate, key, and ca certificate that I tested against.  It
is a horribly weak key.  However key length does not seem to change the outcome.  I have
tested this with 512 bit and 2048 bit rsa keys.

I ran into this issue while attempting to consume a https resource in a program I am
working on.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/4728/0/server1_cert.pem" rel="nofollow">server1_cert.pem</a> (1018 bytes)</li>
<li><a href="https://storage.googleapis.com/go-attachment/4728/0/server1_key.pem" rel="nofollow">server1_key.pem</a> (493 bytes)</li>
<li><a href="https://storage.googleapis.com/go-attachment/4728/0/ca-cert.pem" rel="nofollow">ca-cert.pem</a> (855 bytes)</li>
</ol>
<pre class="notranslate">What steps will reproduce the problem?

1. go get github.com/josharian/gostripbug
2. cd $GOPATH/src/github.com/josharian/gostripbug
3. make

What is the expected output?

Hello

What do you see instead?

runtime: function symbol table header: 0x0x0 0x0x0
fatal error: invalid function symbol table


runtime stack:

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

6g, 6l. Also reproduces with 5g, 5l. Haven't tried others.

Which operating system are you using?

OS X, arm/linux.

Which version are you using?  (run 'go version')

go version devel +75118231847b Thu Sep 12 00:15:28 2013 +0200 darwin/amd64

Please provide any additional information below.

Does not reproduce with Go 1.1.

I'd love to know for future reference -- if I wanted to write a test case for this in
the Go source tree (so I could reference a CL that others could build on instead of
making a separate GitHub repo), where would it belong?</pre>