cfssl runtime error: invalid memory address or nil pointer dereference
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce cfssl version in the Gentoo cfssl-1.4.1 environment, then inspect vendor/github.com/daaku/go.zipexe/zipexe.go and vendor/github.com/GeertJohan/go.rice/appended.go at the stack frames. Compare the behavior with issue #1062 and determine whether the sqlite3-binding warning is related. Done means the command no longer panics during initialization.
Written by the indexing model from the issue text.
Description
I get the following when trying to execute cfssl version
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x8bf606]
goroutine 1 [running]:
debug/elf.(*Section).ReadAt(0xc00035c180?, {0xc0003fac00?, 0x32?, 0x31?}, 0x31?)
<autogenerated>:1 +0x26
archive/zip.readDirectoryEnd({0xbe5040, 0xc00019d500}, 0x5c0)
/usr/lib/go/src/archive/zip/reader.go:581 +0xf5
archive/zip.(*Reader).init(0xc0001d1ab0, {0xbe5040?, 0xc00019d500}, 0x5c0)
/usr/lib/go/src/archive/zip/reader.go:124 +0x5c
archive/zip.NewReader({0xbe5040, 0xc00019d500}, 0x5c0)
/usr/lib/go/src/archive/zip/reader.go:103 +0x5e
github.com/daaku/go%2ezipexe.zipExeReaderElf({0xbe5d80?, 0xc000126088}, 0x11dfb80)
/var/tmp/portage/app-crypt/cfssl-1.4.1/work/cfssl-1.4.1/vendor/github.com/daaku/go.zipexe/zipexe.go:128 +0x8b
github.com/daaku/go%2ezipexe.NewReader({0xbe5d80, 0xc000126088}, 0x0?)
/var/tmp/portage/app-crypt/cfssl-1.4.1/work/cfssl-1.4.1/vendor/github.com/daaku/go.zipexe/zipexe.go:48 +0x98
github.com/daaku/go%2ezipexe.OpenCloser({0xc00012d6f0?, 0xc0001e1be0?})
/var/tmp/portage/app-crypt/cfssl-1.4.1/work/cfssl-1.4.1/vendor/github.com/daaku/go.zipexe/zipexe.go:30 +0x57
github.com/GeertJohan/go%2erice.init.0()
/var/tmp/portage/app-crypt/cfssl-1.4.1/work/cfssl-1.4.1/vendor/github.com/GeertJohan/go.rice/appended.go:41 +0x65
During the install of cfssl 1.4.1 on Gentoo I get the following in the output of the install.
* QA Notice: Package triggers severe warnings which indicate that it
* may exhibit random runtime failures.
* sqlite3-binding.c:123303:10: warning: function may return address of local variable [-Wreturn-local-addr]
Linking issue #1062 as I think this is related
- Dominant language
- Go
- Stars
- 9.5k
- Forks
- 1.2k
- Avg merge
- 12h 48m
- Merged PRs (30d)
- 2
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/cfssl
-
gencrl: serial numbers that fail to parse are added to the CRL as 0 or a partial valuePossibly taken @sebxt claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudflare/cfssl#1460 ·
Maintainers usually reply within 2 days
-
`Bundler.BundleFromRemote` fails for IPv6 address literalsPossibly taken @reginaldalfret claimed this 14 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cloudflare/cfssl#1448 ·
Maintainers usually reply within 2 days
-
crl_override (and extensions) in /api/v1/sign request body are silently ignored by the HTTP APIPossibly taken @Hashim1999164 claimed this 70 days ago. Open
Difficulty 2/5 Half a day Newbie friendliness 78/100
cloudflare/cfssl#1439 ·
Maintainers usually reply within 2 days
-
gencrl silently revokes the wrong serial number when a line is not plain decimalPossibly taken @RaphaelFakhri claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
cloudflare/cfssl#1458 ·
Maintainers usually reply within 2 days
-
config: LoadConfig panics when not_after is before not_beforePossibly taken @sebxt claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
cloudflare/cfssl#1456 ·
Maintainers usually reply within 2 days
All issues in cloudflare/cfssl
Similar issues
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mvanhorn/cli-printing-press#5146 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AvengeMedia/DankMaterialShell#3853 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day