{"action":"created","issue":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/1952","repository_url":"https://api.github.com/repos/hyperledger/fabric","labels_url":"https://api.github.com/repos/hyperledger/fabric/issues/1952/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/fabric/issues/1952/comments","events_url":"https://api.github.com/repos/hyperledger/fabric/issues/1952/events","html_url":"https://github.com/hyperledger/fabric/issues/1952","id":161759963,"number":1952,"title":"make all:  panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x8 pc=0x4c36af]","user":{"login":"jjjjibm","id":17887475,"avatar_url":"https://avatars.githubusercontent.com/u/17887475?v=3","gravatar_id":"","url":"https://api.github.com/users/jjjjibm","html_url":"https://github.com/jjjjibm","followers_url":"https://api.github.com/users/jjjjibm/followers","following_url":"https://api.github.com/users/jjjjibm/following{/other_user}","gists_url":"https://api.github.com/users/jjjjibm/gists{/gist_id}","starred_url":"https://api.github.com/users/jjjjibm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjjjibm/subscriptions","organizations_url":"https://api.github.com/users/jjjjibm/orgs","repos_url":"https://api.github.com/users/jjjjibm/repos","events_url":"https://api.github.com/users/jjjjibm/events{/privacy}","received_events_url":"https://api.github.com/users/jjjjibm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-22T18:59:15Z","updated_at":"2016-06-22T19:41:02Z","closed_at":null,"body":"<!-- For general purpose questions, use Stack Overflow http://stackoverflow.com/questions/tagged/hyperledger -->\r\n\r\n## Description\r\nI am running 'make all' and encountered this panic in the section that starts the unit \r\n\r\nRACE: 2016/06/22 18:20:04 ca.go:497: err <nil>\r\n--- FAIL: TestReadUserSet (0.00s)\r\n        eca_test.go:341: Failed to read user set: [Identity or token does not match.]\r\n        eca_test.go:367: Failed to read user set: [Signature verification failed.]\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n        panic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x8 pc=0x4c36af]\r\n\r\ngoroutine 124 [running]:\r\npanic(0xb25fc0, 0xc82000e120)\r\n        /opt/go/src/runtime/panic.go:464 +0x3e6\r\ntesting.tRunner.func1(0xc8202a9320)\r\n        /opt/go/src/testing/testing.go:467 +0x192\r\npanic(0xb25fc0, 0xc82000e120)\r\n        /opt/go/src/runtime/panic.go:426 +0x4e9\r\n\r\nHere is the full stdout for context: \r\nstart serving...\r\nRunning tests....\r\ntest_user0 [0xc820279380 0xc8202794a0 0xc8202795c0 0xc820279680]*********************** ATTR test_user0 company ACompany\r\n*********************** ATTR test_user0 position Software Staff\r\n*********************** ATTR test_user0 position Software Engineer\r\n*********************** ATTR test_user0 business_unit Sales\r\ntest_user0 [0xc820139860 0xc820139980 0xc820139a40 0xc820139b00]*********************** ATTR test_user0 position Software Staff\r\n*********************** ATTR test_user0 position Software Engineer\r\n*********************** ATTR test_user0 business_unit Sales\r\n*********************** ATTR test_user0 company ACompany\r\ntest_user0 [0xc820326ba0 0xc820326cc0 0xc820326de0 0xc820326ea0]*********************** ATTR test_user0 company ACompany\r\n*********************** ATTR test_user0 position Software Staff\r\n*********************** ATTR test_user0 position Software Engineer\r\n*********************** ATTR test_user0 business_unit Sales\r\ntest_user0 [0xc820349140 0xc820349260 0xc820349380 0xc820349440]*********************** ATTR test_user0 company ACompany\r\n*********************** ATTR test_user0 position Software Staff\r\n*********************** ATTR test_user0 position Software Engineer\r\n*********************** ATTR test_user0 business_unit Sales\r\ntest_user0 [0xc82039e960 0xc82039ea20 0xc82039eae0 0xc82039ec00]*********************** ATTR test_user0 position Software Engineer\r\n*********************** ATTR test_user0 business_unit Sales\r\n*********************** ATTR test_user0 company ACompany\r\n*********************** ATTR test_user0 position Software Staff\r\ntest_user0 [0xc820409380 0xc820409440 0xc820409500 0xc820409620]*********************** ATTR test_user0 position Software Engineer\r\n*********************** ATTR test_user0 business_unit Sales\r\n*********************** ATTR test_user0 company ACompany\r\n*********************** ATTR test_user0 position Software Staff\r\ntest_user0 [0xc82044aba0 0xc82044acc0 0xc82044ad80 0xc82044ae40]*********************** ATTR test_user0 position Software Staff\r\n*********************** ATTR test_user0 position Software Engineer\r\n*********************** ATTR test_user0 business_unit Sales\r\n*********************** ATTR test_user0 company ACompany\r\n2016/06/22 18:20:04 Log level not recognized '', defaulting to DEBUG: logger: invalid log level\r\n2016/06/22 18:20:04 Working at security level [256]\r\nTRACE: 2016/06/22 18:20:04 ca.go:332: Reading CA private key.\r\nTRACE: 2016/06/22 18:20:04 ca.go:373: Reading CA certificate.\r\nTRACE: 2016/06/22 18:20:04 eca.go:309: gRPC ECAP:CreateCertificate\r\nTRACE: 2016/06/22 18:20:04 ca.go:754: Reading token for admin.\r\nTRACE: 2016/06/22 18:20:04 eca.go:327: id or token mismatch: id=admin\r\n--- FAIL: TestCreateCertificatePairAdmin (0.00s)\r\n        eca_test.go:235: Failed to enroll testAdmin: [Identity or token does not match.]\r\nTRACE: 2016/06/22 18:20:04 eca.go:521: gRPC ECAA:RegisterUser\r\nTRACE: 2016/06/22 18:20:04 eca.go:549: ECAA.checkRegistrarSignature\r\nTRACE: 2016/06/22 18:20:04 ca.go:492: Reading certificate for admin and usage 1\r\nTRACE: 2016/06/22 18:20:04 ca.go:497: err <nil>\r\nTRACE: 2016/06/22 18:20:04 eca.go:587: ECAA.checkRegistrarSignature: failure for admin\r\n--- FAIL: TestRegisterUser (0.00s)\r\n        eca_test.go:245: Signature verification failed.\r\nTRACE: 2016/06/22 18:20:04 eca.go:309: gRPC ECAP:CreateCertificate\r\nTRACE: 2016/06/22 18:20:04 ca.go:754: Reading token for testUser.\r\nTRACE: 2016/06/22 18:20:04 eca.go:327: id or token mismatch: id=testUser\r\n--- FAIL: TestCreateCertificatePairTestUser (0.00s)\r\n        eca_test.go:256: Failed to enroll testUser: [Identity or token does not match.]\r\nTRACE: 2016/06/22 18:20:04 eca.go:521: gRPC ECAA:RegisterUser\r\nTRACE: 2016/06/22 18:20:04 eca.go:549: ECAA.checkRegistrarSignature\r\nTRACE: 2016/06/22 18:20:04 ca.go:492: Reading certificate for admin and usage 1\r\nTRACE: 2016/06/22 18:20:04 ca.go:497: err <nil>\r\nTRACE: 2016/06/22 18:20:04 eca.go:587: ECAA.checkRegistrarSignature: failure for admin\r\n--- FAIL: TestRegisterDuplicateUser (0.00s)\r\n        eca_test.go:266: Expected error was not returned when registering user twice: [Signature verification failed.]\r\nTRACE: 2016/06/22 18:20:04 eca.go:521: gRPC ECAA:RegisterUser\r\nTRACE: 2016/06/22 18:20:04 eca.go:549: ECAA.checkRegistrarSignature\r\nTRACE: 2016/06/22 18:20:04 ca.go:492: Reading certificate for admin and usage 1\r\nTRACE: 2016/06/22 18:20:04 ca.go:497: err <nil>\r\nTRACE: 2016/06/22 18:20:04 eca.go:587: ECAA.checkRegistrarSignature: failure for admin\r\n--- FAIL: TestRegisterAuditor (0.00s)\r\n        eca_test.go:277: Signature verification failed.\r\nTRACE: 2016/06/22 18:20:04 eca.go:521: gRPC ECAA:RegisterUser\r\nTRACE: 2016/06/22 18:20:04 eca.go:549: ECAA.checkRegistrarSignature\r\nTRACE: 2016/06/22 18:20:04 ca.go:492: Reading certificate for testUser and usage 1\r\nTRACE: 2016/06/22 18:20:04 ca.go:497: err <nil>\r\nTRACE: 2016/06/22 18:20:04 eca.go:587: ECAA.checkRegistrarSignature: failure for testUser\r\nTRACE: 2016/06/22 18:20:04 eca.go:246: gRPC ECAP:ReadCACertificate\r\nTRACE: 2016/06/22 18:20:04 eca.go:475: gRPC ECAP:ReadCertificate\r\nTRACE: 2016/06/22 18:20:04 ca.go:514: Reading certificatess for testUser.\r\nTRACE: 2016/06/22 18:20:04 eca.go:309: gRPC ECAP:CreateCertificate\r\nTRACE: 2016/06/22 18:20:04 ca.go:754: Reading token for testAuditor.\r\nTRACE: 2016/06/22 18:20:04 eca.go:327: id or token mismatch: id=testAuditor\r\nTRACE: 2016/06/22 18:20:04 eca.go:600: gRPC ECAA:ReadUserSet\r\nTRACE: 2016/06/22 18:20:04 ca.go:772: Reading role for testAuditor.\r\nTRACE: 2016/06/22 18:20:04 ca.go:492: Reading certificate for testAuditor and usage 1\r\nTRACE: 2016/06/22 18:20:04 ca.go:497: err <nil>\r\n--- FAIL: TestReadUserSet (0.00s)\r\n        eca_test.go:341: Failed to read user set: [Identity or token does not match.]\r\n        eca_test.go:367: Failed to read user set: [Signature verification failed.]\r\npanic: runtime error: invalid memory address or nil pointer dereference [recovered]\r\n        panic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x8 pc=0x4c36af]\r\n\r\ngoroutine 124 [running]:\r\npanic(0xb25fc0, 0xc82000e120)\r\n        /opt/go/src/runtime/panic.go:464 +0x3e6\r\ntesting.tRunner.func1(0xc8202a9320)\r\n        /opt/go/src/testing/testing.go:467 +0x192\r\npanic(0xb25fc0, 0xc82000e120)\r\n        /opt/go/src/runtime/panic.go:426 +0x4e9\r\ngithub.com/hyperledger/fabric/membersrvc/ca.TestReadUserSet(0xc8202a9320)\r\n        /opt/gopath/src/github.com/hyperledger/fabric/membersrvc/ca/eca_test.go:370 +0x79f\r\ntesting.tRunner(0xc8202a9320, 0x1183480)\r\n        /opt/go/src/testing/testing.go:473 +0x98\r\ncreated by testing.RunTests\r\n        /opt/go/src/testing/testing.go:582 +0x892\r\nFAIL    github.com/hyperledger/fabric/membersrvc/ca     10.274s\r\n?       github.com/hyperledger/fabric/membersrvc/protos [no test files]\r\nok      github.com/hyperledger/fabric/peer      0.085s  coverage: 11.0% of statements\r\nok      github.com/hyperledger/fabric/protos    0.118s  coverage: 5.8% of statements\r\n?       github.com/hyperledger/fabric/tools/busywork/benchmarks [no test files]\r\nok      github.com/hyperledger/fabric/tools/busywork/busywork   2.424s   coverage: 88.9% of statements\r\n?       github.com/hyperledger/fabric/tools/busywork/counters   [no test files]\r\nok      github.com/hyperledger/fabric/tools/dbutility   0.144s  coverage: 32.4% of statements\r\nStopping peer..\r\nmake: *** [unit-test] Error 1\r\nvagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric\r\n\r\nHere are all logs from /var/logs: \r\n[logs.zip](https://github.com/hyperledger/fabric/files/328573/logs.zip)\r\n\r\n\r\n## Describe How to Reproduce\r\n1.Start vagrant\r\n2.Go to 'fabric' directory, for example $GOPATH/src/github.com/hyperledger/fabric\r\n3.Make all "},"comment":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/comments/227854334","html_url":"https://github.com/hyperledger/fabric/issues/1952#issuecomment-227854334","issue_url":"https://api.github.com/repos/hyperledger/fabric/issues/1952","id":227854334,"user":{"login":"JonathanLevi","id":1161321,"avatar_url":"https://avatars.githubusercontent.com/u/1161321?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanLevi","html_url":"https://github.com/JonathanLevi","followers_url":"https://api.github.com/users/JonathanLevi/followers","following_url":"https://api.github.com/users/JonathanLevi/following{/other_user}","gists_url":"https://api.github.com/users/JonathanLevi/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanLevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanLevi/subscriptions","organizations_url":"https://api.github.com/users/JonathanLevi/orgs","repos_url":"https://api.github.com/users/JonathanLevi/repos","events_url":"https://api.github.com/users/JonathanLevi/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanLevi/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T19:41:02Z","updated_at":"2016-06-22T19:41:02Z","body":"Thanks for the detailed reporting! Can provide a fix momentarily..."}}
{"actor":{"display_login":"JonathanLevi"}}