brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetoslav Neykov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-416) br fatal error
Date Thu, 22 Dec 2016 08:06:58 GMT

    [ https://issues.apache.org/jira/browse/BROOKLYN-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15769426#comment-15769426
] 

Svetoslav Neykov commented on BROOKLYN-416:
-------------------------------------------

Easy to reproduce with
{noformat}
while ./br apps; do date; done
{noformat}

> br fatal error
> --------------
>
>                 Key: BROOKLYN-416
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-416
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.9.0, 0.10.0
>            Reporter: Svetoslav Neykov
>
> On macOS Sierra, executing any br command (reproduced with login & apps):
> {noformat}
> $ br login https://localhost:8443 user pass
> {noformat}
> Leads to the following exception:
> {noformat}
> fatal error: unexpected signal during runtime execution
> [signal 0xb code=0x1 addr=0xb01dfacedebac1e pc=0xf71b]
> runtime stack:
> runtime.throw(0x5256a0, 0x2a)
> 	/usr/lib/go-1.6/src/runtime/panic.go:547 +0x90
> runtime.sigpanic()
> 	/usr/lib/go-1.6/src/runtime/sigpanic_unix.go:12 +0x5a
> runtime.unlock(0x6cea20)
> 	/usr/lib/go-1.6/src/runtime/lock_sema.go:107 +0x14b
> runtime.(*mheap).alloc_m(0x6cea20, 0x1, 0x20000000002, 0x99dd58)
> 	/usr/lib/go-1.6/src/runtime/mheap.go:492 +0x314
> runtime.(*mheap).alloc.func1()
> 	/usr/lib/go-1.6/src/runtime/mheap.go:502 +0x41
> runtime.systemstack(0x7fff5fbff7e8)
> 	/usr/lib/go-1.6/src/runtime/asm_amd64.s:307 +0xab
> runtime.(*mheap).alloc(0x6cea20, 0x1, 0x10000000002, 0xf3bf)
> 	/usr/lib/go-1.6/src/runtime/mheap.go:503 +0x63
> runtime.(*mcentral).grow(0x6cfdd0, 0x0)
> 	/usr/lib/go-1.6/src/runtime/mcentral.go:209 +0x93
> runtime.(*mcentral).cacheSpan(0x6cfdd0, 0x99dd58)
> 	/usr/lib/go-1.6/src/runtime/mcentral.go:89 +0x47d
> runtime.(*mcache).refill(0x768960, 0xc800000002, 0x99dd58)
> 	/usr/lib/go-1.6/src/runtime/mcache.go:119 +0xcc
> runtime.mallocgc.func2()
> 	/usr/lib/go-1.6/src/runtime/malloc.go:642 +0x2b
> runtime.systemstack(0x6c9d00)
> 	/usr/lib/go-1.6/src/runtime/asm_amd64.s:291 +0x79
> runtime.mstart()
> 	/usr/lib/go-1.6/src/runtime/proc.go:1051
> goroutine 6 [running]:
> runtime.systemstack_switch()
> 	/usr/lib/go-1.6/src/runtime/asm_amd64.s:245 fp=0xc820232760 sp=0xc820232758
> runtime.mallocgc(0x10, 0x3629a0, 0x0, 0xc8203f3ff0)
> 	/usr/lib/go-1.6/src/runtime/malloc.go:643 +0x869 fp=0xc820232838 sp=0xc820232760
> runtime.newarray(0x3629a0, 0x1, 0xc8203f3ff0)
> 	/usr/lib/go-1.6/src/runtime/malloc.go:798 +0xc9 fp=0xc820232878 sp=0xc820232838
> runtime.makeslice(0x3530e0, 0x1, 0x1, 0x0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/runtime/slice.go:32 +0x165 fp=0xc8202328c8 sp=0xc820232878
> strings.genSplit(0x0, 0x0, 0x498a20, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/strings/strings.go:256 +0x144 fp=0xc820232958 sp=0xc8202328c8
> strings.Split(0x0, 0x0, 0x498a20, 0x1, 0x0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/strings/strings.go:294 +0x65 fp=0xc8202329a8 sp=0xc820232958
> encoding/asn1.parseFieldParameters(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/encoding/asn1/common.go:91 +0x81 fp=0xc820232ae0 sp=0xc8202329a8
> encoding/asn1.parseField(0x41b0c0, 0xc8203e54d0, 0x199, 0xc8203f4b45, 0x10, 0x501, 0x0,
0x0, 0x0, 0x0, ...)
> 	/usr/lib/go-1.6/src/encoding/asn1/asn1.go:851 +0x314c fp=0xc820233268 sp=0xc820232ae0
> encoding/asn1.parseSequenceOf(0xc8203f4b45, 0x10, 0x501, 0x7bc0a8, 0x363120, 0x7bc0a8,
0x41b0c0, 0x363120, 0xc8203fbee0, 0x97, ...)
> 	/usr/lib/go-1.6/src/encoding/asn1/asn1.go:558 +0x455 fp=0xc8202333a0 sp=0xc820233268
> encoding/asn1.parseField(0x363120, 0xc820337b90, 0x197, 0xc8203f4b22, 0x51, 0x524, 0x21,
0x0, 0x0, 0x0, ...)
> 	/usr/lib/go-1.6/src/encoding/asn1/asn1.go:867 +0x2752 fp=0xc820233b28 sp=0xc8202333a0
> encoding/asn1.parseSequenceOf(0xc8203f4b22, 0x51, 0x524, 0x7bc0a8, 0x3630a0, 0x7bc0a8,
0x363120, 0x3630a0, 0xc8203fbd80, 0x97, ...)
> 	/usr/lib/go-1.6/src/encoding/asn1/asn1.go:558 +0x455 fp=0xc820233c60 sp=0xc820233b28
> encoding/asn1.parseField(0x3630a0, 0xc8203fba80, 0x197, 0xc8203f4b20, 0x53, 0x526, 0x0,
0x0, 0x0, 0x0, ...)
> 	/usr/lib/go-1.6/src/encoding/asn1/asn1.go:867 +0x2752 fp=0xc8202343e8 sp=0xc820233c60
> encoding/asn1.UnmarshalWithParams(0xc8203f4b20, 0x53, 0x526, 0x3422e0, 0xc8203fba80,
0x0, 0x0, 0x0, 0x0, 0x0, ...)
> 	/usr/lib/go-1.6/src/encoding/asn1/asn1.go:990 +0x16e fp=0xc8202344d0 sp=0xc8202343e8
> encoding/asn1.Unmarshal(0xc8203f4b20, 0x53, 0x526, 0x3422e0, 0xc8203fba80, 0x0, 0x0,
0x0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/encoding/asn1/asn1.go:983 +0x8f fp=0xc820234538 sp=0xc8202344d0
> crypto/x509.parseCertificate(0xc8203f8900, 0x545, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/crypto/x509/x509.go:953 +0x636 fp=0xc820234e78 sp=0xc820234538
> crypto/x509.ParseCertificate(0xc8203f4b00, 0x545, 0x546, 0xb, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/crypto/x509/x509.go:1195 +0x19e fp=0xc820234f20 sp=0xc820234e78
> crypto/x509.(*CertPool).AppendCertsFromPEM(0xc82021a060, 0xc8201c6dbd, 0x14a84, 0x51043,
0xc82021a001)
> 	/usr/lib/go-1.6/src/crypto/x509/cert_pool.go:96 +0x11d fp=0xc820234f88 sp=0xc820234f20
> crypto/x509.execSecurityRoots(0x1b2725, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/crypto/x509/root_darwin.go:23 +0x23e fp=0xc820235060 sp=0xc820234f88
> crypto/x509.initSystemRoots()
> 	/usr/lib/go-1.6/src/crypto/x509/root_nocgo_darwin.go:10 +0x18 fp=0xc820235080 sp=0xc820235060
> sync.(*Once).Do(0x6e68b0, 0x55e760)
> 	/usr/lib/go-1.6/src/sync/once.go:44 +0xe4 fp=0xc8202350a8 sp=0xc820235080
> crypto/x509.systemRootsPool(0x0)
> 	/usr/lib/go-1.6/src/crypto/x509/root.go:15 +0x2f fp=0xc8202350c0 sp=0xc8202350a8
> crypto/x509.(*Certificate).Verify(0xc82007b680, 0xc82000b6b8, 0x9, 0xc8201001e0, 0x0,
0xecfe9bba8, 0x8f4ad21, 0x6c9700, 0x0, 0x0, ...)
> 	/usr/lib/go-1.6/src/crypto/x509/verify.go:241 +0x1de fp=0xc820235318 sp=0xc8202350c0
> crypto/tls.(*clientHandshakeState).doFullHandshake(0xc820235e38, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/crypto/tls/handshake_client.go:278 +0x6e9 fp=0xc8202359d0 sp=0xc820235318
> crypto/tls.(*Conn).clientHandshake(0xc8200f0000, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/crypto/tls/handshake_client.go:213 +0x1737 fp=0xc820235ee8 sp=0xc8202359d0
> crypto/tls.(*Conn).Handshake(0xc8200f0000, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/crypto/tls/conn.go:1033 +0xec fp=0xc820235f28 sp=0xc820235ee8
> net/http.(*Transport).dialConn.func3(0xc8200f0000, 0x0, 0xc820018a20)
> 	/usr/lib/go-1.6/src/net/http/transport.go:828 +0x21 fp=0xc820235f68 sp=0xc820235f28
> runtime.goexit()
> 	/usr/lib/go-1.6/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc820235f70 sp=0xc820235f68
> created by net/http.(*Transport).dialConn
> 	/usr/lib/go-1.6/src/net/http/transport.go:833 +0x986
> goroutine 1 [select]:
> net/http.(*Transport).getConn(0xc8200c00c0, 0xc8200e0000, 0x0, 0xc82000b6b0, 0x5, 0xc82000b6b8,
0xe, 0x0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/net/http/transport.go:711 +0x4ef
> net/http.(*Transport).RoundTrip(0xc8200c00c0, 0xc8200e0000, 0xc8200c00c0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/net/http/transport.go:311 +0x7e9
> net/http.send(0xc8200e0000, 0x7bc528, 0xc8200c00c0, 0x0, 0x0, 0x0, 0xc82000b740, 0x0,
0x0)
> 	/usr/lib/go-1.6/src/net/http/client.go:260 +0x6b7
> net/http.(*Client).send(0xc82000b710, 0xc8200e0000, 0x0, 0x0, 0x0, 0x55d651, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/net/http/client.go:155 +0x185
> net/http.(*Client).doFollowingRedirects(0xc82000b710, 0xc8200e0000, 0x55ee90, 0x0, 0x0,
0x0)
> 	/usr/lib/go-1.6/src/net/http/client.go:475 +0x8a4
> net/http.(*Client).Do(0xc82000b710, 0xc8200e0000, 0xdc33c88cbfdbabf4, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/net/http/client.go:188 +0xff
> github.com/apache/brooklyn-client/cli/net.(*Network).SendRequestGetStatusCode(0xc82000e400,
0xc8200e0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/net/net.go:122
+0x19a
> github.com/apache/brooklyn-client/cli/net.(*Network).SendRequest(0xc82000e400, 0xc8200e0000,
0x0, 0x0, 0x0, 0x0, 0x0)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/net/net.go:108
+0x48
> github.com/apache/brooklyn-client/cli/net.(*Network).SendGetRequest(0xc82000e400, 0xc820013820,
0x10, 0x0, 0x0, 0x0, 0x0, 0x0)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/net/net.go:147
+0xb2
> github.com/apache/brooklyn-client/cli/api/application.Applications(0xc82000e400, 0x0,
0x0, 0x0, 0x0, 0x0)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/api/application/applications.go:42
+0xc8
> github.com/apache/brooklyn-client/cli/commands.(*Application).list(0xc82002e070)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/commands/application.go:104
+0x36
> github.com/apache/brooklyn-client/cli/commands.(*Application).Run(0xc82002e070, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/commands/application.go:63
+0x24c
> github.com/apache/brooklyn-client/cli/command_runner.ConcreteRunner.RunCmdByName(0x7bcd28,
0xc820013080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/command_runner/runner.go:49
+0xe7
> github.com/apache/brooklyn-client/cli/command_runner.(*ConcreteRunner).RunCmdByName(0xc820018540,
0x4a4b30, 0xb, 0xc8200888c0, 0x0, 0x0)
> 	<autogenerated>:1 +0xe0
> github.com/apache/brooklyn-client/cli/app.getCommand.func1(0xc8200888c0)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/app/app.go:82
+0x57
> github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli.Command.Run(0x4a4b30,
0xb, 0x0, 0x0, 0xc82000b2f0, 0x3, 0x3, 0xc8200ba9a0, 0x14, 0x0, ...)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli/command.go:174
+0x1399
> github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli.(*App).Run(0xc8200883c0,
0xc82000b290, 0x3, 0x3, 0x0, 0x0)
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/vendor/github.com/urfave/cli/app.go:187
+0x112b
> main.main()
> 	/tmp/release-working-dir/source/apache-brooklyn-0.10.0-src/brooklyn-client/cli/target/src/github.com/apache/brooklyn-client/cli/br/brooklyn.go:62
+0x915
> goroutine 5 [chan receive]:
> net/http.(*Transport).dialConn(0xc8200c00c0, 0x0, 0xc82000b6b0, 0x5, 0xc82000b6b8, 0xe,
0x0, 0x0, 0x0)
> 	/usr/lib/go-1.6/src/net/http/transport.go:834 +0x9c2
> net/http.(*Transport).getConn.func4(0xc8200c00c0, 0x0, 0xc82000b6b0, 0x5, 0xc82000b6b8,
0xe, 0xc820018720)
> 	/usr/lib/go-1.6/src/net/http/transport.go:706 +0x66
> created by net/http.(*Transport).getConn
> 	/usr/lib/go-1.6/src/net/http/transport.go:708 +0x262
> {noformat}
> On retry it works:
> {noformat}
> Get https://localhost:8443/v1/server/version: x509: certificate is valid for web-console,
not localhost
> {noformat}
> But then can't use {{--skipSslChecks}} to skip the validation. It just ignores it.
> Reproduced with br {{0.9.0}} and {{0.10.0-rc3}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message