-
Notifications
You must be signed in to change notification settings - Fork 86
SIGSEGV when using multiple dpiContexts #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There shouldn't be any reason not to use a single context but it would be good to figure out the source of this issue, too. I'll take a look and get back to you. |
This is a very strange error, and though reproducible in 9/10 of runs with Go 1.16rc1 (or tip), I've never seen it with Go <1.16. With current godror tip, you can compile a test binary (for debugging) with
The test code is on line 16 of For Go, you can either download if from one of the links at the bottom of https://golang.org/dl/ , or install it separately with
or use the tip in the same manner with
|
I have also observed the exact same issue in C application. I can share a gdb backtrace if required. |
@junaidriaz449 do you have a test case handy? @anthony-tuininga is a bit slammed at the moment, so a standalone test case would be handy. I'm sure @anthony-tuininga will be interested why you are using multiple contexts, given his previous comment. |
Thanks, I can confirm those fixes work! |
What version of ODPI-C are you using (see dpi.h)?
v4.1.0
What OS (and version) is your application on?
linux/amd64
What compiler (and version) did you use?
go v1.16rc1
What is your version of the Oracle Client (e.g. Instant Client)? How was it installed? Where it is installed?
21.1, official rpm
What is your Oracle Database version?
19.5
What problem or error(s) you are seeing?
cgo panic SIGSEGV golang/go#43977
dpiContext_getClientVersion SIGSEGVs on the second context
go test -run=NewDriver
on godror v0.23.1 (2091233c574a27f0161d6d68c511e1773dab0133 sidesteps this problem with using one global dpiContext).The text was updated successfully, but these errors were encountered: