-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Connection.cpp:31 invalid read of size 8 (in destructor) #159
Comments
Any insights where that pointer comes from and what it should point to (where it gets trashed/freed)? |
@mridoni Can you reproduce this? Checked with GDB and found the issue to be the As my testing environment moved to a new virtual machine which has all perf counters enabled I now could use
(... ok, that's nearly just what valgrind said, but this time I can check any details...) |
After version update:
|
I likely should recheck if this also happens, when I just do:
In this case the connection part may directly reference memory from the calling PROG, which is dlclose'd before the gixsql shared objects are unloaded; that wouldn't work. |
In this case there was a connection along with working access to the DB and on unloading (
cob_stop_run()
callingexit(0)
) valgrind reports the following on the destructorNote: libgixsql is not static linked in this case but loaded with
COB_PRE_LOAD
(so dlopen'd by libcob). This may or may not make a difference.As a follow up (because some stack data is trashed) libcob then aborts during teardown
attempt to reference invalid memory address (signal)
.The text was updated successfully, but these errors were encountered: