-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
SqlVar.cpp: invalid read of size 2 #158
Comments
This seems like a possible show-stopper :-/ |
I am investigating this, but I cannot reproduce it: the test cases have no "Invalid read" when running under Valgrind. Could you send me the cursor definition you are using, COBOL definition of the fields it references in the FETCH statement and, if possibile the DB definitions of the columns? Obviously change the names of the columns or fields if needed for privacy. Thanks |
I'd try that on Wednesday, but would prefer to do that on a current version - can you possibly release a "dev" or "preview" pre-release until then? |
I will try but I cannot make promises: unfortunately my day-job has been taking a heavy toll for the last few months. |
(Pre)-released autoconf-enabled tarball for v1.0.21dev. Thanks |
Rechecked:
I'll possibly try to compile libgixsql with sanitizers to see if those find more. |
Installation of libasan and libusan and configuring with
It happens at the second time when the cursor is opened (closed in the meantime). The declaration of the cursor is: GIXSQL* EXEC SQL AT :DB
GIXSQL* DECLARE CSKEY01NG CURSOR FOR
GIXSQL* SELECT PRIMID, MODTIME FROM TAB
GIXSQL* WHERE
GIXSQL* KEY01 > (
GIXSQL* RPAD(:TABART , 008, Chr(1))
GIXSQL* || RPAD(:TABSCHL , 020, Chr(1))
GIXSQL* )
GIXSQL* ORDER BY KEY01 ASC
GIXSQL* END-EXEC. Those two bind variables are plain All of the DECLARE, OPEN and FETCH statements are in the same section. |
Because of not finding why the application doesn't work any more after updating to the current version, I've run the application through valgrind.
Result:
gixsql/runtime/libgixsql/SqlVar.cpp
Lines 115 to 121 in 79f6247
"Of course" nearly all CursorOpen work without an error in valgrind, there's only one...
Not sure if/how I can help to debug that...
The text was updated successfully, but these errors were encountered: