taosdata / driver-go

taos go driver
MIT License
91 stars 32 forks source link

快速连续插入时,出现:fatal error: invalid pointer found on stack,程序强制退出 #144

Open zhuyongpeng opened 1 year ago

zhuyongpeng commented 1 year ago

执行插入部分代码如下: func insertDateToTDengine(c *OpcClientManager) { var cols []string var vals []string for col, val := range c.dataMap { cols = append(cols, col) vals = append(vals, strconv.Itoa(int(val))) } sql := fmt.Sprintf("INSERT INTO %s (ts,%s) values (now,%s)", c.Config.TableName, strings.Join(cols, ","), strings. Join(vals, ",")) //fmt.Println(sql) result, err := taos.Exec(sql) if utils.HasError(err) { fmt.Println(err) } _, err = result.RowsAffected() if utils.HasError(err) { fmt.Println(err) } //fmt.Println(affected) } 控制台打印错误如下: runtime: bad pointer in frame github.com/taosdata/driver-go/v3/wrapper.TaosQueryA.func2 at 0xc000ba1510: 0xd8 fatal error: invalid pointer found on stack

runtime stack: runtime.throw({0xe48ddc?, 0xd10a20?}) C:/Program Files/Go/src/runtime/panic.go:1047 +0x65 fp=0x7fa86ff628 sp=0x7fa86ff5f8 pc=0x989ea5 runtime.adjustpointers(0x7fa86ffa30?, 0xee68c?, 0x113662e?, {0x11dc6b0?, 0xd10a20?}) C:/Program Files/Go/src/runtime/stack.go:630 +0x1d0 fp=0x7fa86ff690 sp=0x7fa86ff628 pc=0x99eeb0 runtime.adjustframe(0x7fa86ffa30, 0x7fa86ffb20) C:/Program Files/Go/src/runtime/stack.go:672 +0xc9 fp=0x7fa86ff720 sp=0x7fa86ff690 pc=0x99efc9 runtime.gentraceback(0x0?, 0x0?, 0x0?, 0x7ff9a6bbb8cd?, 0x0, 0x0, 0x7fffffff, 0xef6ae0, 0x0?, 0x0) C:/Program Files/Go/src/runtime/traceback.go:334 +0xd0f fp=0x7fa86ffa98 sp=0x7fa86ff720 pc=0x9aab6f runtime.copystack(0xc000414680, 0x7fa86ffc88?) C:/Program Files/Go/src/runtime/stack.go:932 +0x2f5 fp=0x7fa86ffc50 sp=0x7fa86ffa98 pc=0x99f7d5 runtime.shrinkstack(0xc000414680) C:/Program Files/Go/src/runtime/stack.go:1214 +0x126 fp=0x7fa86ffc70 sp=0x7fa86ffc50 pc=0x9a06a6 runtime.newstack() C:/Program Files/Go/src/runtime/stack.go:1062 +0x3aa fp=0x7fa86ffe28 sp=0x7fa86ffc70 pc=0x99fc6a runtime.morestack() C:/Program Files/Go/src/runtime/asm_amd64.s:570 +0x93 fp=0x7fa86ffe30 sp=0x7fa86ffe28 pc=0x9b5913

goroutine 14 [running]: runtime.cgoCheckPointer({0xd92d60, 0xd8}, {0x0, 0x0}) C:/Program Files/Go/src/runtime/cgocall.go:394 +0x196 fp=0xc000ba14f0 sp=0xc000ba14e8 pc=0x9551b6 github.com/taosdata/driver-go/v3/wrapper.TaosQueryA.func2(0x2637b694b80?, 0x8f?, 0xc00027d578?) C:/Users/HN-LPC-229/go/pkg/mod/github.com/taosdata/driver-go/v3@v3.0.3/wrapper/taosc.go:147 +0x52 fp=0xc000ba1538 sp=0xc000ba14f0 pc=0xcf52f2 github.com/taosdata/driver-go/v3/wrapper.TaosQueryA(0xc00027d5b8?, {0xc000468750?, 0xdb6460?}, 0xdf44e0?) C:/Users/HN-LPC-229/go/pkg/mod/github.com/taosdata/driver-go/v3@v3.0.3/wrapper/taosc.go:147 +0x6d fp=0xc000ba1588 sp=0xc000ba1538 pc=0xcf522d github.com/taosdata/driver-go/v3/taosSql.(taosConn).taosQuery(0xc00089a910, {0xc000468750, 0x8f}, 0xc00062cff0) C:/Users/HN-LPC-229/go/pkg/mod/github.com/taosdata/driver-go/v3@v3.0.3/taosSql/connection.go:169 +0x65 fp=0xc000ba15c0 sp=0xc000ba1588 pc=0xcf7685 github.com/taosdata/driver-go/v3/taosSql.(taosConn).Exec(0xc00089a910, {0xc000468750?, 0x0?}, {0x123bf00?, 0x0?, 0xc00027d708?}) C:/Users/HN-LPC-229/go/pkg/mod/github.com/taosdata/driver-go/v3@v3.0.3/taosSql/connection.go:93 +0x17d fp=0xc000ba1688 sp=0xc000ba15c0 pc=0xcf731d database/sql.ctxDriverExec({0xf82790, 0xc00001a0a8}, {0x0?, 0x0?}, {0x263796a3fe8, 0xc00089a910}, {0xc000468750, 0x8f}, {0x123bf00, 0x0, ...}) C:/Program Files/Go/src/database/sql/ctxutil.go:43 +0x189 fp=0xc000ba1710 sp=0xc000ba1688 pc=0xce29e9 database/sql.(DB).execDC.func2() C:/Program Files/Go/src/database/sql/sql.go:1679 +0x175 fp=0xc000ba17d8 sp=0xc000ba1710 pc=0xce78d5 database/sql.withLock({0xf810f0, 0xc0000f01b0}, 0xc00027d988) C:/Program Files/Go/src/database/sql/sql.go:3439 +0x8c fp=0xc000ba1818 sp=0xc000ba17d8 pc=0xce7f4c database/sql.(DB).execDC(0x1000000d92c01?, {0xf82790, 0xc00001a0a8}, 0xc0000f01b0, 0x9cf7de?, {0xc000468750, 0x8f}, {0x0, 0x0, 0x0}) C:/Program Files/Go/src/database/sql/sql.go:1674 +0x266 fp=0xc000ba1a28 sp=0xc000ba1818 pc=0xce7226 database/sql.(DB).exec(0xa23a4a?, {0xf82790, 0xc00001a0a8}, {0xc000468750, 0x8f}, {0x0, 0x0, 0x0}, 0x8f?) C:/Program Files/Go/src/database/sql/sql.go:1659 +0xe8 fp=0xc000ba1aa0 sp=0xc000ba1a28 pc=0xce6f48 database/sql.(DB).ExecContext(0xe5c6a6?, {0xf82790, 0xc00001a0a8}, {0xc000468750, 0x8f}, {0x0, 0x0, 0x0}) C:/Program Files/Go/src/database/sql/sql.go:1633 +0xe5 fp=0xc000ba1b28 sp=0xc000ba1aa0 pc=0xce6d25 database/sql.(DB).Exec(...) C:/Program Files/Go/src/database/sql/sql.go:1651 TDengineTest/src/client.insertDateToTDengine(0xc0000f80e0) D:/work/go-workspace/TDengineTest/src/client/opc_client.go:127 +0x389 fp=0xc000ba1cb8 sp=0xc000ba1b28 pc=0xcfd9c9 TDengineTest/src/client.(OpcClientManager).OpcReadMsg(0xc0000f80e0) D:/work/go-workspace/TDengineTest/src/client/opc_client.go:113 +0x6a5 fp=0xc000ba1ea0 sp=0xc000ba1cb8 pc=0xcfd5c5 TDengineTest/src/client.(*OpcClientManager).StartOpcClient(0xc0000f80e0) D:/work/go-workspace/TDengineTest/src/client/opc_client.go:61 +0x1ae fp=0xc000ba1fc8 sp=0xc000ba1ea0 pc=0xcfce2e TDengineTest/src/client.StartAllOpcClient.func1() D:/work/go-workspace/TDengineTest/src/client/client_manager.go:20 +0x26 fp=0xc000ba1fe0 sp=0xc000ba1fc8 pc=0xcfc7a6 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000ba1fe8 sp=0xc000ba1fe0 pc=0x9b7b41 created by TDengineTest/src/client.StartAllOpcClient D:/work/go-workspace/TDengineTest/src/client/client_manager.go:20 +0x21c

goroutine 1 [semacquire, 6 minutes]: runtime.gopark(0x0?, 0xc00035d400?, 0xc0?, 0xd2?, 0xc000902db0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc00094fea0 sp=0xc00094fe80 pc=0x98c976 runtime.goparkunlock(...) C:/Program Files/Go/src/runtime/proc.go:369 runtime.semacquire1(0x123c068, 0x0?, 0x1, 0x0) C:/Program Files/Go/src/runtime/sema.go:150 +0x20f fp=0xc00094ff08 sp=0xc00094fea0 pc=0x99be0f sync.runtime_Semacquire(0xc00035d2c0?) C:/Program Files/Go/src/runtime/sema.go:62 +0x25 fp=0xc00094ff38 sp=0xc00094ff08 pc=0x9b33e5 sync.(*WaitGroup).Wait(0x100d8e420?) C:/Program Files/Go/src/sync/waitgroup.go:139 +0x52 fp=0xc00094ff60 sp=0xc00094ff38 pc=0x9d0812 main.main() D:/work/go-workspace/TDengineTest/main.go:80 +0x45 fp=0xc00094ff80 sp=0xc00094ff60 pc=0xcfe1c5 runtime.main() C:/Program Files/Go/src/runtime/proc.go:250 +0x1fe fp=0xc00094ffe0 sp=0xc00094ff80 pc=0x98c5de runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00094ffe8 sp=0xc00094ffe0 pc=0x9b7b41

goroutine 2 [force gc (idle), 6 minutes]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000053fb0 sp=0xc000053f90 pc=0x98c976 runtime.goparkunlock(...) C:/Program Files/Go/src/runtime/proc.go:369 runtime.forcegchelper() C:/Program Files/Go/src/runtime/proc.go:302 +0xb1 fp=0xc000053fe0 sp=0xc000053fb0 pc=0x98c811 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000053fe8 sp=0xc000053fe0 pc=0x9b7b41 created by runtime.init.6 C:/Program Files/Go/src/runtime/proc.go:290 +0x25

goroutine 3 [GC sweep wait]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000055f90 sp=0xc000055f70 pc=0x98c976 runtime.goparkunlock(...) C:/Program Files/Go/src/runtime/proc.go:369 runtime.bgsweep(0x0?) C:/Program Files/Go/src/runtime/mgcsweep.go:297 +0xd7 fp=0xc000055fc8 sp=0xc000055f90 pc=0x9762d7 runtime.gcenable.func1() C:/Program Files/Go/src/runtime/mgc.go:178 +0x26 fp=0xc000055fe0 sp=0xc000055fc8 pc=0x96ae26 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000055fe8 sp=0xc000055fe0 pc=0x9b7b41 created by runtime.gcenable C:/Program Files/Go/src/runtime/mgc.go:178 +0x6b

goroutine 4 [GC scavenge wait]: runtime.gopark(0x190bdc2684914?, 0x20a954?, 0x0?, 0x0?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000065f70 sp=0xc000065f50 pc=0x98c976 runtime.goparkunlock(...) C:/Program Files/Go/src/runtime/proc.go:369 runtime.(*scavengerState).park(0x11e6c20) C:/Program Files/Go/src/runtime/mgcscavenge.go:389 +0x53 fp=0xc000065fa0 sp=0xc000065f70 pc=0x974313 runtime.bgscavenge(0x0?) C:/Program Files/Go/src/runtime/mgcscavenge.go:622 +0x65 fp=0xc000065fc8 sp=0xc000065fa0 pc=0x974925 runtime.gcenable.func2() C:/Program Files/Go/src/runtime/mgc.go:179 +0x26 fp=0xc000065fe0 sp=0xc000065fc8 pc=0x96adc6 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000065fe8 sp=0xc000065fe0 pc=0x9b7b41 created by runtime.gcenable C:/Program Files/Go/src/runtime/mgc.go:179 +0xaa

goroutine 5 [finalizer wait, 6 minutes]: runtime.gopark(0x11e7220?, 0xc000050ea0?, 0x0?, 0x0?, 0xc000057f70?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000057e28 sp=0xc000057e08 pc=0x98c976 runtime.goparkunlock(...) C:/Program Files/Go/src/runtime/proc.go:369 runtime.runfinq() C:/Program Files/Go/src/runtime/mfinal.go:180 +0x10f fp=0xc000057fe0 sp=0xc000057e28 pc=0x969f2f runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000057fe8 sp=0xc000057fe0 pc=0x9b7b41 created by runtime.createfing C:/Program Files/Go/src/runtime/mfinal.go:157 +0x45

goroutine 18 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x1?, 0x7c?, 0xb3?, 0x9573e9?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000067f50 sp=0xc000067f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc000067fe0 sp=0xc000067f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000067fe8 sp=0xc000067fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 34 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000061f50 sp=0xc000061f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc000061fe0 sp=0xc000061f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000061fe8 sp=0xc000061fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 35 [GC worker (idle)]: runtime.gopark(0x190be3a0bafec?, 0x3?, 0x0?, 0x0?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000063f50 sp=0xc000063f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc000063fe0 sp=0xc000063f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000063fe8 sp=0xc000063fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 19 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x1?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0004a1f50 sp=0xc0004a1f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0004a1fe0 sp=0xc0004a1f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0004a1fe8 sp=0xc0004a1fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 7 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc00049df50 sp=0xc00049df30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc00049dfe0 sp=0xc00049df50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00049dfe8 sp=0xc00049dfe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 8 [GC worker (idle)]: runtime.gopark(0x190be3a0bafec?, 0x1?, 0x78?, 0x9e?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc00049ff50 sp=0xc00049ff30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc00049ffe0 sp=0xc00049ff50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc00049ffe8 sp=0xc00049ffe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 20 [GC worker (idle)]: runtime.systemstack_switch() C:/Program Files/Go/src/runtime/asm_amd64.s:459 fp=0xc0004a3f50 sp=0xc0004a3f48 pc=0x9b57c0 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1295 +0x209 fp=0xc0004a3fe0 sp=0xc0004a3f50 pc=0x96d149 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0004a3fe8 sp=0xc0004a3fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 9 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003d7f50 sp=0xc0003d7f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003d7fe0 sp=0xc0003d7f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003d7fe8 sp=0xc0003d7fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 21 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003d3f50 sp=0xc0003d3f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003d3fe0 sp=0xc0003d3f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003d3fe8 sp=0xc0003d3fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 10 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0xa4?, 0x80?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003d9f50 sp=0xc0003d9f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003d9fe0 sp=0xc0003d9f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003d9fe8 sp=0xc0003d9fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 22 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003d5f50 sp=0xc0003d5f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003d5fe0 sp=0xc0003d5f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003d5fe8 sp=0xc0003d5fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 11 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0xa4?, 0x80?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003dff50 sp=0xc0003dff30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003dffe0 sp=0xc0003dff50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003dffe8 sp=0xc0003dffe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 23 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0xa4?, 0x80?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003dbf50 sp=0xc0003dbf30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003dbfe0 sp=0xc0003dbf50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003dbfe8 sp=0xc0003dbfe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 12 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003e1f50 sp=0xc0003e1f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003e1fe0 sp=0xc0003e1f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003e1fe8 sp=0xc0003e1fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 24 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x3?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003ddf50 sp=0xc0003ddf30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003ddfe0 sp=0xc0003ddf50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003ddfe8 sp=0xc0003ddfe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 13 [GC worker (idle)]: runtime.gopark(0x123d4a0?, 0x1?, 0x7c?, 0xb3?, 0x0?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003e7f50 sp=0xc0003e7f30 pc=0x98c976 runtime.gcBgMarkWorker() C:/Program Files/Go/src/runtime/mgc.go:1235 +0xf1 fp=0xc0003e7fe0 sp=0xc0003e7f50 pc=0x96d031 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003e7fe8 sp=0xc0003e7fe0 pc=0x9b7b41 created by runtime.gcBgMarkStartWorkers C:/Program Files/Go/src/runtime/mgc.go:1159 +0x25

goroutine 50 [select, 6 minutes]: runtime.gopark(0xc0003e3f88?, 0x2?, 0x11?, 0x0?, 0xc0003e3f84?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0003e3e10 sp=0xc0003e3df0 pc=0x98c976 runtime.selectgo(0xc0003e3f88, 0xc0003e3f80, 0x0?, 0x0, 0x0?, 0x1) C:/Program Files/Go/src/runtime/select.go:328 +0x7dc fp=0xc0003e3f50 sp=0xc0003e3e10 pc=0x99ad1c database/sql.(*DB).connectionOpener(0xc000634340, {0xf82758, 0xc000629380}) C:/Program Files/Go/src/database/sql/sql.go:1224 +0x8d fp=0xc0003e3fb8 sp=0xc0003e3f50 pc=0xce542d database/sql.OpenDB.func1() C:/Program Files/Go/src/database/sql/sql.go:792 +0x2e fp=0xc0003e3fe0 sp=0xc0003e3fb8 pc=0xce436e runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0003e3fe8 sp=0xc0003e3fe0 pc=0x9b7b41 created by database/sql.OpenDB C:/Program Files/Go/src/database/sql/sql.go:792 +0x18d

goroutine 67 [IO wait]: runtime.gopark(0x0?, 0xc000622518?, 0xc8?, 0x25?, 0xc000622548?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0009516a8 sp=0xc000951688 pc=0x98c976 runtime.netpollblock(0x0?, 0xf87380?, 0x0?) C:/Program Files/Go/src/runtime/netpoll.go:526 +0xf7 fp=0xc0009516e0 sp=0xc0009516a8 pc=0x983177 internal/poll.runtime_pollWait(0x2637b790f08, 0x72) C:/Program Files/Go/src/runtime/netpoll.go:305 +0x89 fp=0xc000951700 sp=0xc0009516e0 pc=0x9b1a09 internal/poll.(pollDesc).wait(0x96e436?, 0x4b69f8?, 0x0) C:/Program Files/Go/src/internal/poll/fd_poll_runtime.go:84 +0x32 fp=0xc000951728 sp=0xc000951700 pc=0xa16632 internal/poll.execIO(0xc000622518, 0xef6840) C:/Program Files/Go/src/internal/poll/fd_windows.go:175 +0xe5 fp=0xc000951780 sp=0xc000951728 pc=0xa16dc5 internal/poll.(FD).Read(0xc000622500, {0xc000b44000, 0x8, 0xffff}) C:/Program Files/Go/src/internal/poll/fd_windows.go:441 +0x26b fp=0xc000951810 sp=0xc000951780 pc=0xa17c4b net.(netFD).Read(0xc000622500, {0xc000b44000?, 0x1010163539b0eb8?, 0x26379562b98?}) C:/Program Files/Go/src/net/fd_posix.go:55 +0x29 fp=0xc000951858 sp=0xc000951810 pc=0xaac289 net.(conn).Read(0xc0009001a0, {0xc000b44000?, 0xc0002798d8?, 0x99d7b2?}) C:/Program Files/Go/src/net/net.go:183 +0x45 fp=0xc0009518a0 sp=0xc000951858 pc=0xab8d45 io.ReadAtLeast({0xf7fce0, 0xc0000f6b40}, {0xc000b44000, 0x8, 0xffff}, 0x8) C:/Program Files/Go/src/io/io.go:332 +0x9a fp=0xc0009518e8 sp=0xc0009518a0 pc=0x9f211a io.ReadFull(...) C:/Program Files/Go/src/io/io.go:351 github.com/gopcua/opcua/uacp.(Conn).Receive(0xc0000f6b40?) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uacp/conn.go:349 +0x91 fp=0xc000951a48 sp=0xc0009518e8 pc=0xcc3431 github.com/gopcua/opcua/uasc.(SecureChannel).readChunk(0xc000020750) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:342 +0x3d fp=0xc000951c20 sp=0xc000951a48 pc=0xccfbdd github.com/gopcua/opcua/uasc.(SecureChannel).receive(0xc000020750, {0xf82758, 0xc000090b80}) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:246 +0x7b fp=0xc000951e48 sp=0xc000951c20 pc=0xccef3b github.com/gopcua/opcua/uasc.(SecureChannel).dispatcher(0xc000020750) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:187 +0xce fp=0xc000951fc8 sp=0xc000951e48 pc=0xcce8ce github.com/gopcua/opcua/uasc.(SecureChannel).open.func1.1() C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:479 +0x26 fp=0xc000951fe0 sp=0xc000951fc8 pc=0xcd11a6 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000951fe8 sp=0xc000951fe0 pc=0x9b7b41 created by github.com/gopcua/opcua/uasc.(SecureChannel).open.func1 C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:479 +0x5a

goroutine 68 [select, 6 minutes]: runtime.gopark(0xc0008a9f38?, 0x2?, 0xf8?, 0x9d?, 0xc0008a9f04?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0008a9d70 sp=0xc0008a9d50 pc=0x98c976 runtime.selectgo(0xc0008a9f38, 0xc0008a9f00, 0x0?, 0x0, 0x0?, 0x1) C:/Program Files/Go/src/runtime/select.go:328 +0x7dc fp=0xc0008a9eb0 sp=0xc0008a9d70 pc=0x99ad1c github.com/gopcua/opcua/uasc.(SecureChannel).scheduleRenewal(0xc000020750, 0xc000166000) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:599 +0x2e5 fp=0xc0008a9fc0 sp=0xc0008a9eb0 pc=0xcd1c65 github.com/gopcua/opcua/uasc.(SecureChannel).handleOpenSecureChannelResponse.func2() C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:581 +0x2a fp=0xc0008a9fe0 sp=0xc0008a9fc0 pc=0xcd18ea runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0008a9fe8 sp=0xc0008a9fe0 pc=0x9b7b41 created by github.com/gopcua/opcua/uasc.(*SecureChannel).handleOpenSecureChannelResponse C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:581 +0x49f

goroutine 69 [select, 6 minutes]: runtime.gopark(0xc0008abf40?, 0x2?, 0xa0?, 0xbd?, 0xc0008abec4?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0008abd18 sp=0xc0008abcf8 pc=0x98c976 runtime.selectgo(0xc0008abf40, 0xc0008abec0, 0x0?, 0x0, 0x0?, 0x1) C:/Program Files/Go/src/runtime/select.go:328 +0x7dc fp=0xc0008abe58 sp=0xc0008abd18 pc=0x99ad1c github.com/gopcua/opcua/uasc.(SecureChannel).scheduleExpiration(0xc000020750, 0xc000166000) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:631 +0x30c fp=0xc0008abfc0 sp=0xc0008abe58 pc=0xcd22ac github.com/gopcua/opcua/uasc.(SecureChannel).handleOpenSecureChannelResponse.func3() C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:582 +0x2a fp=0xc0008abfe0 sp=0xc0008abfc0 pc=0xcd188a runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0008abfe8 sp=0xc0008abfe0 pc=0x9b7b41 created by github.com/gopcua/opcua/uasc.(*SecureChannel).handleOpenSecureChannelResponse C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/uasc/secure_channel.go:582 +0x4fb

goroutine 70 [select, 6 minutes]: runtime.gopark(0xc000953f88?, 0x2?, 0x0?, 0x0?, 0xc000953d74?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc000953b60 sp=0xc000953b40 pc=0x98c976 runtime.selectgo(0xc000953f88, 0xc000953d70, 0x0?, 0x0, 0x0?, 0x1) C:/Program Files/Go/src/runtime/select.go:328 +0x7dc fp=0xc000953ca0 sp=0xc000953b60 pc=0x99ad1c github.com/gopcua/opcua.(Client).monitor(0xc0000f81c0, {0xf82758, 0xc0006281c0?}) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/client.go:245 +0x22d fp=0xc000953fb8 sp=0xc000953ca0 pc=0xcd70cd github.com/gopcua/opcua.(Client).Connect.func1.1() C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/client.go:215 +0x2e fp=0xc000953fe0 sp=0xc000953fb8 pc=0xcd6e6e runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000953fe8 sp=0xc000953fe0 pc=0x9b7b41 created by github.com/gopcua/opcua.(*Client).Connect.func1 C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/client.go:215 +0x9b

goroutine 71 [select, 6 minutes]: runtime.gopark(0xc0008a7f40?, 0x3?, 0x0?, 0x0?, 0xc0008a7eb6?) C:/Program Files/Go/src/runtime/proc.go:363 +0xd6 fp=0xc0008a7d30 sp=0xc0008a7d10 pc=0x98c976 runtime.selectgo(0xc0008a7f40, 0xc0008a7eb0, 0x0?, 0x0, 0x0?, 0x1) C:/Program Files/Go/src/runtime/select.go:328 +0x7dc fp=0xc0008a7e70 sp=0xc0008a7d30 pc=0x99ad1c github.com/gopcua/opcua.(Client).monitorSubscriptions(0xc0000f81c0, {0xf82758, 0xc0006281c0}) C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/client_sub.go:362 +0x405 fp=0xc0008a7fb8 sp=0xc0008a7e70 pc=0xcdd885 github.com/gopcua/opcua.(Client).Connect.func1.2() C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/client.go:216 +0x2e fp=0xc0008a7fe0 sp=0xc0008a7fb8 pc=0xcd6e0e runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc0008a7fe8 sp=0xc0008a7fe0 pc=0x9b7b41 created by github.com/gopcua/opcua.(*Client).Connect.func1 C:/Users/HN-LPC-229/go/pkg/mod/github.com/gopcua/opcua@v0.3.7/client.go:216 +0x105

进程 已完成,退出代码为 2

huskar-t commented 1 year ago

请使用 v3.0.4 版本