Skip to content

Segmentation violation on context timeout #1571

@salarali

Description

@salarali

We started experiencing occasional seg faults on context timeouts, after upgrading from 8.0.0 to 8.4.0.

Expected Behavior

No panic

Current Behavior

2020-12-04T00:24:23.452Z	ERROR	Unable to setex on redis {"error": "context deadline exceeded"}
unexpected fault address 0x102010081
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x102010081 pc=0x46a485]
goroutine 835951033 [running]:
runtime.throw(0x1bda04b, 0x5)
	/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc05078bab8 sp=0xc05078ba88 pc=0x4368e2
runtime.sigpanic()
	/usr/local/go/src/runtime/signal_unix.go:702 +0x3cc fp=0xc05078bae8 sp=0xc05078bab8 pc=0x44d54c
runtime.memmove(0xc86e876000, 0x101010101, 0x1000000)
	/usr/local/go/src/runtime/memmove_amd64.s:392 +0x485 fp=0xc05078baf0 sp=0xc05078bae8 pc=0x46a485
runtime.concatstrings(0x0, 0xc05078bbd0, 0x3, 0x3, 0xc7944185a0, 0xc05078bc20)
	/usr/local/go/src/runtime/string.go:51 +0x183 fp=0xc05078bb88 sp=0xc05078baf0 pc=0x451fc3
runtime.concatstring3(0x0, 0x101010101, 0x1000000, 0x1bd6c08, 0x1, 0x1000000000000, 0x101010100, 0xc067675df0, 0x1)
	/usr/local/go/src/runtime/string.go:62 +0x47 fp=0xc05078bbc8 sp=0xc05078bb88 pc=0x4521d7
net.(*OpError).Error(0x2ec1060, 0x20075a0, 0xc793cfea80)
	/usr/local/go/src/net/net.go:467 +0x27b fp=0xc05078bc30 sp=0xc05078bbc8 pc=0x6084cb
github.com/go-redis/redis/v8.(*Script).Run(0xc00020f9e0, 0x20075a0, 0xc793cfea80, 0x2007920, 0xc00127a880, 0xc067675dd0, 0x1, 0x1, 0xc067675df0, 0x1, ...)
	/home/ec2-user/go/pkg/mod/github.com/go-redis/redis/[email protected]/script.go:61 +0x1aa fp=0xc05078bca8 sp=0xc05078bc30 pc=0xbac6ba

Let me know if you require further information. For now, we have reverted back to 8.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions