Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Unable to create a table #6

Open
mbrdg opened this issue May 10, 2023 · 0 comments
Open

Unable to create a table #6

mbrdg opened this issue May 10, 2023 · 0 comments

Comments

@mbrdg
Copy link

mbrdg commented May 10, 2023

I was following this guide in order to build SQLite using unikraft.

Even though I succeeded in building the application,
when I tried to read inside SQLite the script provided, shown below, I got the error
Runtime error near line 1: disk I/O error (10).
Therefore, was not able to create the table tab.

CREATE TABLE tab (d1 int, d2 text);
INSERT INTO tab VALUES (random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text)),
(random(), cast(random() as text));

The command used to spin up the VM was the one provided:

./qemu-guest -k ./build/app-sqlite_qemu-x86_64 \
               -e ./sqlite_files \
               -m 500

Furthermore, I tried to increase the memory given (1G) to the VM but the problem persisted.

Another note is that when changing the filesystem from 9PFS to InitRD this problem no longer occurred.

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

No branches or pull requests

1 participant