Skip to content
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

Segmentation fault when selecting large amounts of data #10

Open
AlexSartori opened this issue Sep 18, 2024 · 2 comments
Open

Segmentation fault when selecting large amounts of data #10

AlexSartori opened this issue Sep 18, 2024 · 2 comments

Comments

@AlexSartori
Copy link

I'm experiencing an inconsistent segmentation fault error when selecting large amounts of data from virtual tables created with pivot_vtab.

In particular, sometimes I can solve the error by appending a limit to the query equal to the number of rows, e.g.,

SELECT
    *
FROM
    x
LIMIT (
    SELECT COUNT(*) FROM x
);

as if the error occured because of a cursor overrunning a counter. However, this solution doesn't always work.

I'm failrly experienced with the C language, so I'm hoping I can help solve the issue. What's the best way to debug a SQLite extension? Do you have any suggestion on how to proceed?

Thank you,
Alex

@AlexSartori
Copy link
Author

Forgot to add: platform is SQLite 3.37.2 running on WSL2.

@AlexSartori
Copy link
Author

This issue is solved in @dmagyari's PR: #8

Recompile the extension with the source code from his frork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant