Skip to content

fatal error: unexpected signal during runtime execution #1776

Description

@dingjianfeng

Our Go application uses the github.com/go-sql-driver/mysql v1.8.0 driver to connect to two MySQL database proxy. When one of the proxy is shut down, the application occasionally crashes with the following error. What could be the possible causes for this. our go version go1.20.8 linux/amd64?

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x46e542]

runtime stack:
runtime.throw({0xc02f92?, 0x0?})
/home/qa65/GO/go1.20.8/src/runtime/panic.go:1047 +0x5d fp=0x7f85d251c9e8 sp=0x7f85d251c9b8 pc=0x4388dd
runtime.sigpanic()
/home/qa65/GO/go1.20.8/src/runtime/signal_unix.go:825 +0x3e9 fp=0x7f85d251ca48 sp=0x7f85d251c9e8 pc=0x44fba9
runtime.gcWriteBarrier()
/home/qa65/GO/go1.20.8/src/runtime/asm_amd64.s:1654 +0x42 fp=0x7f85d251cac8 sp=0x7f85d251ca48 pc=0x46e542
runtime.gcWriteBarrierR8()
/home/qa65/GO/go1.20.8/src/runtime/asm_amd64.s:1756 +0x7 fp=0x7f85d251cad0 sp=0x7f85d251cac8 pc=0x46e687
runtime.(*waitq).dequeue(...)
/home/qa65/GO/go1.20.8/src/runtime/chan.go:779
runtime.chansend(0xc0006917a0, 0x7f85d251cba0, 0x0, 0x48ceb7?)
/home/qa65/GO/go1.20.8/src/runtime/chan.go:209 +0x194 fp=0x7f85d251cb58 sp=0x7f85d251cad0 pc=0x4076d4
runtime.selectnbsend(0x7f85d251cbb8?, 0x459247?)
/home/qa65/GO/go1.20.8/src/runtime/chan.go:694 +0x25 fp=0x7f85d251cb88 sp=0x7f85d251cb58 pc=0x408c65
time.sendTime({0xb01660?, 0xc0006917a0}, 0x0?)
/home/qa65/GO/go1.20.8/src/time/sleep.go:145 +0x52 fp=0x7f85d251cbc8 sp=0x7f85d251cb88 pc=0x48a9f2
runtime.runOneTimer(0xc00003c000, 0xc0003d0f08, 0x0?)
/home/qa65/GO/go1.20.8/src/runtime/time.go:885 +0x159 fp=0x7f85d251cc20 sp=0x7f85d251cbc8 pc=0x45a359
runtime.runtimer(0xc00003c000, 0x6302f03fc08)
/home/qa65/GO/go1.20.8/src/runtime/time.go:792 +0x1fa fp=0x7f85d251cc50 sp=0x7f85d251cc20 pc=0x45a19a
runtime.checkTimers(0xc00003c000, 0x0?)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:3477 +0x12c fp=0x7f85d251cc98 sp=0x7f85d251cc50 pc=0x441ecc
runtime.stealWork(0x119de80?)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:3089 +0x1c5 fp=0x7f85d251cd18 sp=0x7f85d251cc98 pc=0x4411e5
runtime.findRunnable()
/home/qa65/GO/go1.20.8/src/runtime/proc.go:2798 +0x33d fp=0x7f85d251ce20 sp=0x7f85d251cd18 pc=0x44063d
runtime.schedule()
/home/qa65/GO/go1.20.8/src/runtime/proc.go:3378 +0xb1 fp=0x7f85d251ce58 sp=0x7f85d251ce20 pc=0x441bf1
runtime.park_m(0xc000e964e0?)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:3529 +0x12d fp=0x7f85d251ce88 sp=0x7f85d251ce58 pc=0x44210d
runtime.mcall()
/home/qa65/GO/go1.20.8/src/runtime/asm_amd64.s:452 +0x43 fp=0x7f85d251ce98 sp=0x7f85d251ce88 pc=0x46c283

goroutine 1 [select, 2 minutes]:
runtime.gopark(0xc0012a1df0?, 0x2?, 0xd8?, 0x1a?, 0xc0012a1c9c?)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:381 +0xd6 fp=0xc0012a1a58 sp=0xc0012a1a38 pc=0x43b636
runtime.selectgo(0xc0012a1df0, 0xc0012a1c98, 0x1?, 0x0, 0xd47a88?, 0x1)
/home/qa65/GO/go1.20.8/src/runtime/select.go:327 +0x7be fp=0xc0012a1b98 sp=0xc0012a1a58 pc=0x44bd1e
gitup.com/upgocom/upmicro/bootstrap.Bootstrap({0x0, 0x0, 0x0?})
/home/qa65/go/pkg/mod/gitup.com/upgocom/upmicro@v1.2.9-2/bootstrap/bootstrap.go:177 +0x14e9 fp=0xc0012a1f40 sp=0xc0012a1b98 pc=0xa77b69
main.main()
/home/qa65/jenkins/workspace/qrc_svc2-cm-build-cautotrace/qrc_svc2/app/qraccsvr/qraccsvr.go:26 +0x25 fp=0xc0012a1f80 sp=0xc0012a1f40 pc=0xab8a45
runtime.main()
/home/qa65/GO/go1.20.8/src/runtime/proc.go:250 +0x207 fp=0xc0012a1fe0 sp=0xc0012a1f80 pc=0x43b207
runtime.goexit()
/home/qa65/GO/go1.20.8/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0012a1fe8 sp=0xc0012a1fe0 pc=0x46e4c1

goroutine 2 [force gc (idle), 2 minutes]:
runtime.gopark(0x6302dbafb97?, 0x0?, 0x0?, 0x0?, 0x0?)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:381 +0xd6 fp=0xc00004efb0 sp=0xc00004ef90 pc=0x43b636
runtime.goparkunlock(...)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:387
runtime.forcegchelper()
/home/qa65/GO/go1.20.8/src/runtime/proc.go:305 +0xb0 fp=0xc00004efe0 sp=0xc00004efb0 pc=0x43b470
runtime.goexit()
/home/qa65/GO/go1.20.8/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00004efe8 sp=0xc00004efe0 pc=0x46e4c1
created by runtime.init.6
/home/qa65/GO/go1.20.8/src/runtime/proc.go:293 +0x25

goroutine 3 [GC sweep wait, 2 minutes]:
runtime.gopark(0xc99601?, 0x116d4a0?, 0xc?, 0x14?, 0x1?)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:381 +0xd6 fp=0xc00004f780 sp=0xc00004f760 pc=0x43b636
runtime.goparkunlock(...)
/home/qa65/GO/go1.20.8/src/runtime/proc.go:387
runtime.bgsweep(0x0?)
/home/qa65/GO/go1.20.8/src/runtime/mgcsweep.go:319 +0xde fp=0xc00004f7c8 sp=0xc00004f780 pc=0x425a9e
runtime.gcenable.func1()
/home/qa65/GO/go1.20.8/src/runtime/mgc.go:178 +0x26 fp=0xc00004f7e0 sp=0xc00004f7c8 pc=0x41ac46
runtime.goexit()
/home/qa65/GO/go1.20.8/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00004f7e8 sp=0xc00004f7e0 pc=0x46e4c1
created by runtime.gcenable
/home/qa65/GO/go1.20.8/src/runtime/mgc.go:178 +0x6b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions