You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually there's a segmentation fault, but sometimes I get this error:
I have no idea why the context would sometimes be wrong, this is likely just memory corruption.
The issue is with the LobSize (which would be set in ddconfig). There seems to be a huge problem with mismatching encodings that can cause the size to be wrong. Warning such as this one are in multiple place in the ODPI documentation:
After some testing I've noticed that the actual amount of characters read is equal to the LobSize given divided by 4. So it would seem that a character is stored as four bytes, at least on my machine. The crash is caused by setting the LobSize to less than 4.
I don't know how we can portably handle this problem. We could just multiply the LobSize by 4, but that would just work on my machine, and I don't know what else my influence it. The ODPI documentation implies that the encoding in the database has to do it, so things might be different in different versions of oracle.
Perhaps for now the best solution would be to just ensure that the LobSize isn't below 4 in dderl.
The text was updated successfully, but these errors were encountered:
There's a crash when fetching a CLOB in some cases, as demonstrated by following escript:
Usually there's a segmentation fault, but sometimes I get this error:
I have no idea why the context would sometimes be wrong, this is likely just memory corruption.
The issue is with the LobSize (which would be set in ddconfig). There seems to be a huge problem with mismatching encodings that can cause the size to be wrong. Warning such as this one are in multiple place in the ODPI documentation:
After some testing I've noticed that the actual amount of characters read is equal to the LobSize given divided by 4. So it would seem that a character is stored as four bytes, at least on my machine. The crash is caused by setting the LobSize to less than 4.
I don't know how we can portably handle this problem. We could just multiply the LobSize by 4, but that would just work on my machine, and I don't know what else my influence it. The ODPI documentation implies that the encoding in the database has to do it, so things might be different in different versions of oracle.
Perhaps for now the best solution would be to just ensure that the LobSize isn't below 4 in dderl.
The text was updated successfully, but these errors were encountered: