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
Poco::Data::SQLite::SQLiteStatementImpl::next() error #1461
Comments
With a standard debian PC there's no problem...I'll investigate more, anyway to test the error the very first query to do on the db created, before all other command or table created is: |
The system I found problem is a Raspberry pi 3. I'll try with another Raspberry with a different system and let you know |
Indeed I found the reason why "PRAGMA incremental_vacuum" throw a segmentation fault under Linux. |
Cannot reproduce this, unfortunately. When executing above PRAGMA, SQLiteStatementImpl::next() isn't even called. |
On Windows you are right, but on linux After the fix of (*extracts.begin()) i solved.
I don't know if for some reason on windows or in linux the next() behavior is different...it's strange because it should not...there's no reason why windows lib do not call next() with PRAGMA statement and linux does...what do you think?
|
Do you have a small code snippet to reproduce this? I'd like to better understand what's happening. And, btw., which POCO version are you using? |
I'm using the latest version 1.7.6 + some change to FTPSClient but nevermind for this. Unfortunatly I do not have the original lib, I should recompile but today I do not have enough time Session tmp (Poco::Data::SQLite::Connector::KEY, "dummy.db"); and you should get in the problem if you do not check extract.begin()!=end() |
Still haven't been able to reproduce, but added check, which is good practice anyway. Also, this check is in develop branch already. |
I probably found a problem using SQLite Poco class and the "PRAGMA incremental_vacuum" command. On a debian jessy armv7l (kernel Linux 4.4.13-v7+) ditribution I always get a SEGMENTATION FAULT when I run the PRAGMA comment. With other PRAGMA (for example auto_vacuum or cache_size) I have no problem.
I tried on a Windows system and I can't get the error
Using directly sqlite3_exec(handle,"PRAGMA incremental_vacuum"...) works with handle taken from PocoSQLite session
the function that seems to SEGMENT is SQLiteStatementImpl::next()
I'll try on a debian not arm too, just to double check this behavior
The text was updated successfully, but these errors were encountered: