Comments (3)
Hmm, I don't get this. I'll fix this issue but Could you please temporally modify globals.go like below?
println(result)
panic("OCIEnvCreate error")
from go-oci8.
Hi, I encounterd a similar situation.
In my case, the reason is combination of OS and golang.
Here is golang's issue.
golang/go#49138
At first, golang v1.16.12(not accurate) on macOS monterey, an error occured while testing.
And same source on linux, no errors.
fatal error: unexpected signal during runtime execution
[signal SIGBUS: bus error code-0x2 addr=0x7ff89b0ccd20 pc=0x7ff8196dc5d]
runtime stack:
runtime.throw(0x42a4697, 0x2a)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.sigpanic()
/usr/lcal/go/src/runtime signal_unix.go:718 +0x2ef
goroutine 1 [syscall, locked to thread]:
rintime.cgocall(0x4206b80, 0xc000139738, 0x5500a68)
/usr/local/go/src/runtime/cgocall.go:154 +0x7a fp=0xc000139708 sp=0xc0001396d0 pc=0x40068fa
github.com/mattn/go-oci8. Cfunc_OCIEnvCreate(0xc000124038, 0xc000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
_cgo_gotypes.go:535 +0x6b fp=0xc000139738 sp=0xc000139708 pc=0x41d078b
github.com/mattn/go-oci8.init.0.func1(0xc000124038, 0xc000124038)
/Users/(...)/go/pkg/mod/github.com/mattn/[email protected]/globals.go:180 +0x79 fp=0xc000139798 sp=0xc000139738 pc=0x41ee9f9
github.com/mattn/go-oci8.init.0()
/Users/(...)/go/pkg/mod/github.com/mattn/[email protected]/globals.go:180 +0xc5 fp=0xc000139a48 sp=0xc000139738 pc=0x41d7685
//another pattern
objc[8119]: Attempt to use unknown class 0x7ff85b0772e0.
SIGABRT: abort
PC=0x7ff81982cdfe m=0 sigcode=0
signal arrived during cgo execution
goroutine 1 [syscall, locked to thread]:
rintime.cgocall(0x4206b80, 0xc000bd738, 0x55005b8)
/usr/local/go/src/runtime/cgocall.go:154 +0x7a fp=0xc0000bd708 sp=0xc0000bd6d0 pc=0x40068da
github.com/mattn/go-oci8. Cfunc_OCIEnvCreate(0xc0000a6038, 0xc000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
_cgo_gotypes.go:535 +0x6b fp=0xc0000bd738 sp=0xc0000bd708 pc=0x41d076b
github.com/mattn/go-oci8.init.0.func1(0xc0000a6038, 0xc0000a6038)
/Users/(...)/go/pkg/mod/github.com/mattn/[email protected]/globals.go:180 +0x79 fp=0xc0000bd798 sp=0xc0000bd738 pc=0x41ee9f9
github.com/mattn/go-oci8.init.0()
/Users/(...)/go/pkg/mod/github.com/mattn/[email protected]/globals.go:180 +0xc5 fp=0xc0000bda48 sp=0xc0000bd798 pc=0x41d7665
(...)
rax 0x2000209
rbx 0x80
rcx 0x7ff7bfefbfa8
rdx 0x0
rdi 0x8
rsi 0x1
rbp 0x7ff7bfefbff0
rsp 0x7ff7bfefbfa8
r8 0x600002c00180
r9 0x80
r10 0x0
r11 0x246
r12 0x0
r13 0x0
r14 0x1
r15 0x8
rip 0x7ff81982cdfe
rflags 0x246
cs 0x7
fs 0x0
gs 0x0
After upgrading to golang v1.17.7, the probrem was solved.
from go-oci8.
The error is this,and how can i deal with it? panic: OCIEnvCreate error
goroutine 1 [running]: github.com/mattn/go-oci8.init.0() C:/Users/kingdee/go/pkg/mod/github.com/mattn/[email protected]/globals.go:177 +0x518
您好,请问解决了吗,我也遇到这个问题:
本地代码运行通过,编译后的linux版本程序在另一台服务器上运行,也是报这个错误;如解决请告知下解决方式,谢谢!
from go-oci8.
Related Issues (20)
- What caused this problem? What should I do?In a hurry HOT 9
- Context cancelation not being honored HOT 6
- error: not found libclntsh.so HOT 2
- [example] set instant client environment by a shell in linux(ubuntu) HOT 1
- Can darwin/arm64 golang build this? HOT 1
- is there any fast bulk insert solutions like executemany() in python/node ? HOT 1
- How to connect as sysasm using our driver? HOT 1
- dyld: Library not loaded: @rpath/libclntsh.dylib.12.1
- compiling for linux using mac throws errors HOT 6
- window10 go build Windows to Linux failed,help me plz HOT 7
- Why is the length of lobbuffersize limited to 4000 and can it be increased to 10K or 100k
- Library not loaded: @rpath/libclntshcore.dylib.19.1 HOT 1
- Is there support for Kerberos authentication?
- Is this library maintained? HOT 1
- exit status 0xc0000135, golang with windows HOT 3
- oracle oci8 support mac arm64?,for example mac m1 HOT 4
- How to Execute Stored Procedure?
- Test oracle 19c TAC got error ORA-25412: transaction replay disabled by call to OCITransStart HOT 2
- How to avoid mistakes ORA-29275: 部分多字节字符
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-oci8.