golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.09k stars 17.68k forks source link

runtime: crash in GC #7725

Closed rsc closed 9 years ago

rsc commented 10 years ago
---------- Forwarded message ----------
From: Dave Cheney <dave@cheney.net>
Date: Wed, Apr 2, 2014 at 7:41 PM
Subject: [golang-dev] GC crash, SIGSEGV: segmentation violation PC=0x4071dc
To: golang-dev <golang-dev@googlegroups.com>

Hello,

One of our juju packages can reliably (100% at the moment) crash the
runtime during tests.

Interestingly the PC is always the same, although the stack trace does
vary from time to time.

As reproducing this involves installing mongodb and all our juju
dependencies, I'd like to help narrow this crash down before trying to
log an issue.

If you want to try anyway, details to reproduce the issue are at the
end of the message.

Cheers

Dave

SIGSEGV: segmentation violation
PC=0x4071dc

goroutine 0 [idle]:
scanblock(0x7f42b0080000, 0x12de700)
/home/dfc/go/src/pkg/runtime/mgc0.c:969 +0x8ec fp=0x7fffb7565df8
markroot(0xc20800c900, 0x1007f4200000001)
/home/dfc/go/src/pkg/runtime/mgc0.c:1307 +0xd9 fp=0x7fffb7565e78
runtime.parfordo(0xc20800c900)
/home/dfc/go/src/pkg/runtime/parfor.c:88 +0xa3 fp=0x7fffb7565ef0
gc(0xc2089b1460)
/home/dfc/go/src/pkg/runtime/mgc0.c:2339 +0x1aa fp=0x7fffb7566018
mgc(0xc20827cb40)
/home/dfc/go/src/pkg/runtime/mgc0.c:2285 +0x2e fp=0x7fffb7566028
runtime.mcall(0x42b297)
/home/dfc/go/src/pkg/runtime/asm_amd64.s:181 +0x4b fp=0x7fffb7566038

goroutine 12757 [garbage collection]:
runtime.gc(0x7f4200000000)
/home/dfc/go/src/pkg/runtime/mgc0.c:2265 +0x1a3 fp=0xc2089b1470
runtime.mallocgc(0x1500, 0xce31e0, 0x1)
/home/dfc/go/src/pkg/runtime/malloc.goc:204 +0x1d6 fp=0xc2089b14d8
runtime.new(0xce31e0, 0x0)
/home/dfc/go/src/pkg/runtime/malloc.goc:825 +0x3b fp=0xc2089b14f8
math/rand.NewSource(0x863e227d68306861, 0x0, 0x0)
/home/dfc/go/src/pkg/math/rand/rand.go:25 +0x38 fp=0xc2089b1530
math/big.nat.probablyPrime(0xc208584870, 0x4, 0x9, 0x14, 0xda9a21)
/home/dfc/go/src/pkg/math/big/nat.go:1431 +0x5a3 fp=0xc2089b16b0
math/big.(*Int).ProbablyPrime(0xc20864b0e0, 0x14, 0x7f42b1125000)
/home/dfc/go/src/pkg/math/big/int.go:721 +0x4a fp=0xc2089b16e8
crypto/rsa.(*PrivateKey).Validate(0xc208b385a0, 0x0, 0x0)
/home/dfc/go/src/pkg/crypto/rsa/rsa.go:91 +0xd9 fp=0xc2089b17b0
crypto/x509.ParsePKCS1PrivateKey(0xc208569040, 0x13e, 0x13e,
0xc208b385a0, 0x0, ...)
/home/dfc/go/src/pkg/crypto/x509/pkcs1.go:77 +0x4b5 fp=0xc2089b18b8
crypto/tls.parsePrivateKey(0xc208569040, 0x13e, 0x13e, 0x0, 0x0, ...)
/home/dfc/go/src/pkg/crypto/tls/tls.go:259 +0x81 fp=0xc2089b1968
crypto/tls.X509KeyPair(0xc2084a5acd, 0x0, 0x33, 0xc20865b7ed, 0x0, ...)
/home/dfc/go/src/pkg/crypto/tls/tls.go:213 +0x32c fp=0xc2089b1ae8
launchpad.net/juju-core/environs/config.verifyKeyPair(0xc2084a5800,
0x2cd, 0x300, 0xc20865b600, 0x1ed, ...)
/home/dfc/src/launchpad.net/juju-core/environs/config/authkeys.go:82
+0x96 fp=0xc2089b1b78
launchpad.net/juju-core/environs/config.Validate(0xc2082f2320, 0x0, 0x0, 0x0)
/home/dfc/src/launchpad.net/juju-core/environs/config/config.go:280
+0xfa1 fp=0xc2089b1e18
launchpad.net/juju-core/environs/config.New(0x7f42b004b200,
0xc208b3ddd0, 0x7f42b004b208, 0x0, 0x0)
/home/dfc/src/launchpad.net/juju-core/environs/config/config.go:126
+0x1fc fp=0xc2089b1f80
----- stack segment boundary -----

Full log: http://paste.ubuntu.com/7196494/

To reproduce:

sudo apt-get install mongodb-server
go get launchpad.net/juju-core/...
go test launchpad.net/juju-core/worker/uniter

--

---
You received this message because you are subscribed to the Google Groups
"golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
rsc commented 10 years ago

Comment 1:

This issue was closed by revision 72c5d5e7567a67335db1c6ffcbe1a8fe90b7242.

Status changed to Fixed.