在linux上并发操作Oracle数据库时候,1个并发执行没问题,2个以上会报错。在Windows环境上多少并发都不会出错。
以下是报错信息,请大佬帮忙查看,困扰有一段时间了,谢谢。
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x7fc0ae252da5]
runtime stack:
runtime.throw(0x9dd49d, 0x2a)
/jboss/goenv/go/src/runtime/panic.go:616 +0x81
runtime.sigpanic()
/jboss/goenv/go/src/runtime/signal_unix.go:372 +0x28e
goroutine 34 [syscall]:
runtime.cgocall(0x89fb60, 0xc4200b46c0, 0x29)
/jboss/goenv/go/src/runtime/cgocall.go:128 +0x64 fp=0xc4200b4680 sp=0xc4200b4648 pc=0x4049a4
github.com/mattn/go-oci8._Cfunc_OCIHandleFree(0x7fc05c0be1a8, 0x7fc000000004, 0x0)
_cgo_gotypes.go:504 +0x4d fp=0xc4200b46c0 sp=0xc4200b4680 pc=0x87195d
github.com/mattn/go-oci8.(*OCI8Stmt).Close.func1(0x7fc05c0be1a8, 0xc400000004, 0x0)
/jboss/goenv/gopath/src/github.com/mattn/go-oci8/oci8.go:942 +0x5e fp=0xc4200b46f8 sp=0xc4200b46c0 pc=0x87ecee
github.com/mattn/go-oci8.(*OCI8Stmt).Close(0xc421e48040, 0x0, 0x0)
/jboss/goenv/gopath/src/github.com/mattn/go-oci8/oci8.go:942 +0x6d fp=0xc4200b4728 sp=0xc4200b46f8 pc=0x87656d
runtime.call32(0x0, 0x9f1470, 0xc42077dfa0, 0x2000000020)
/jboss/goenv/go/src/runtime/asm_amd64.s:573 +0x3b fp=0xc4200b4758 sp=0xc4200b4728 pc=0x4592cb
runtime.runfinq()
/jboss/goenv/go/src/runtime/mfinal.go:222 +0x1eb fp=0xc4200b47e0 sp=0xc4200b4758 pc=0x418eab
runtime.goexit()
/jboss/goenv/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc4200b47e8 sp=0xc4200b47e0 pc=0x45ba71
created by runtime.createfing
/jboss/goenv/go/src/runtime/mfinal.go:156 +0x62
goroutine 1 [chan send]:
slis_cs_dividend/controllers.DistrActualDividend(0xa3d560, 0xc420216120, 0x64, 0xa, 0x5)
/jboss/goenv/project/src/slis_cs_dividend/controllers/slis_cs_dividend.go:139 +0x2877
main.main()
/jboss/goenv/project/src/slis_cs_dividend/main.go:27 +0x128
goroutine 35 [syscall, 1 minutes]:
os/signal.signal_recv(0x0)
/jboss/goenv/go/src/runtime/sigqueue.go:139 +0xa6
os/signal.loop()
/jboss/goenv/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.0
/jboss/goenv/go/src/os/signal/signal_unix.go:28 +0x41
goroutine 36 [select, 1 minutes]:
database/sql.(*DB).connectionOpener(0xc4200d3540, 0xa399e0, 0xc4200b9c40)
/jboss/goenv/go/src/database/sql/sql.go:935 +0x119
created by database/sql.OpenDB
/jboss/goenv/go/src/database/sql/sql.go:634 +0x178
goroutine 37 [select, 1 minutes]:
database/sql.(*DB).connectionResetter(0xc4200d3540, 0xa399e0, 0xc4200b9c40)
/jboss/goenv/go/src/database/sql/sql.go:948 +0x12a
created by database/sql.OpenDB
/jboss/goenv/go/src/database/sql/sql.go:635 +0x1ae
goroutine 38 [select, 1 minutes]:
database/sql.(*DB).connectionOpener(0xc4200d3680, 0xa399e0, 0xc4200b9cc0)
/jboss/goenv/go/src/database/sql/sql.go:935 +0x119
created by database/sql.OpenDB
/jboss/goenv/go/src/database/sql/sql.go:634 +0x178
goroutine 39 [select, 1 minutes]:
database/sql.(*DB).connectionResetter(0xc4200d3680, 0xa399e0, 0xc4200b9cc0)
/jboss/goenv/go/src/database/sql/sql.go:948 +0x12a
created by database/sql.OpenDB
/jboss/goenv/go/src/database/sql/sql.go:635 +0x1ae
goroutine 40180 [syscall]:
github.com/mattn/go-oci8._Cfunc_OCIStmtExecute(0x7fc0801e0e38, 0x7fc09c0652f0, 0x7fc0801e0f20, 0x0, 0x0, 0x0, 0x7fc000000020, 0x0)
_cgo_gotypes.go:601 +0x50
github.com/mattn/go-oci8.(*OCI8Stmt).query.func4(0x7fc0801e0e38, 0x7fc09c0652f0, 0x7fc0801e0f20, 0x0, 0x0, 0x0, 0x20, 0x0)
/jboss/goenv/gopath/src/github.com/mattn/go-oci8/oci8.go:1303 +0xf3
github.com/mattn/go-oci8.(*OCI8Stmt).query(0xc421e8e380, 0xa39a20, 0xc4200a8010, 0xecc7b8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/jboss/goenv/gopath/src/github.com/mattn/go-oci8/oci8.go:1303 +0x19a
github.com/mattn/go-oci8.(*OCI8Conn).query(0xc42050ceb0, 0xa39a20, 0xc4200a8010, 0x9e7fd7, 0x172, 0xecc7b8, 0x0, 0x0, 0x4e88ac, 0x92c740, ...)
/jboss/goenv/gopath/src/github.com/mattn/go-oci8/oci8.go:640 +0xf5
github.com/mattn/go-oci8.(*OCI8Conn).QueryContext(0xc42050ceb0, 0xa39a20, 0xc4200a8010, 0x9e7fd7, 0x172, 0xecc7b8, 0x0, 0x0, 0xc4206ce300, 0xc42042d338, ...)
/jboss/goenv/gopath/src/github.com/mattn/go-oci8/oci8_go18.go:32 +0x2ab
database/sql.ctxDriverQuery(0xa39a20, 0xc4200a8010, 0x7fc0a957d498, 0xc42050ceb0, 0x0, 0x0, 0x9e7fd7, 0x172, 0xecc7b8, 0x0, ...)
/jboss/goenv/go/src/database/sql/ctxutil.go:48 +0x235
database/sql.(*DB).queryDC.func1()
/jboss/goenv/go/src/database/sql/sql.go:1464 +0x1e0
database/sql.withLock(0xa36160, 0xc421e76c80, 0xc42042d588)
/jboss/goenv/go/src/database/sql/sql.go:3032 +0x63
database/sql.(*DB).queryDC(0xc4200d3540, 0xa39a20, 0xc4200a8010, 0x0, 0x0, 0xc421e76c80, 0xc42024e560, 0x9e7fd7, 0x172, 0x0, ...)
/jboss/goenv/go/src/database/sql/sql.go:1459 +0x5ff
database/sql.(*DB).query(0xc4200d3540, 0xa39a20, 0xc4200a8010, 0x9e7fd7, 0x172, 0x0, 0x0, 0x0, 0x8f8001, 0xc421d3e280, ...)
/jboss/goenv/go/src/database/sql/sql.go:1442 +0x13b
database/sql.(*DB).QueryContext(0xc4200d3540, 0xa39a20, 0xc4200a8010, 0x9e7fd7, 0x172, 0x0, 0x0, 0x0, 0x8f80a0, 0x1, ...)
/jboss/goenv/go/src/database/sql/sql.go:1419 +0xd2
database/sql.(*DB).Query(0xc4200d3540, 0x9e7fd7, 0x172, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/jboss/goenv/go/src/database/sql/sql.go:1433 +0x82
github.com/astaxie/beego/orm.(*rawSet).readValues(0xc4204ebda0, 0x8da220, 0xc420c206a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
有疑问加站长微信联系(非本文作者)