-
Notifications
You must be signed in to change notification settings - Fork 36
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
segfault in drvgettable() #10
Comments
I can actually reproduce it with the unixODBC command line tool,
And to further narrow it down: |
Is it something to do with a particular row in the data itself, like if you ran |
Thanks for the suggestion @EionRobb that's a very good point!
And to test this further:
So it does seem to be related to the amount of data returned. |
Moreover, it looks like the LIMIT threshold varies depending on the columns requested. For instance, requesting just one column with short data (years) allow the query to complete without any LIMIT. ( So the issue seems to be with the amount of data returned, not the number of records. |
Also, are you using 32bit or 64bit? If 32bit, might be hitting a 2gb memory barrier? |
This is on Linux, 64bits. |
Hi,
I'm getting a segmentation fault in
drvgettable()
atsqlite3odbc.c:1642
when running large SQL queries:sqliteodbc/sqlite3odbc.c
Line 1642 in 9049782
The setup is Stata 17 -> unixODBC 2.3.9 -> sqliteodbc 0.9998 -> SQLite 3.18.0
and the relevant part of the backtrace is as follows:
The particular SQL query that generates this is a
SELECT
that returns about 8GB of data. The same query works fine when executed in thesqlite3
shell directly. And limiting the number of records returned withLIMIT
seems to be working too.Any idea what may be the reason for that segfault?
The text was updated successfully, but these errors were encountered: