Title: Fuzztest fails to build after 4.7.0 · Issue #555 · sqlcipher/sqlcipher · GitHub
Open Graph Title: Fuzztest fails to build after 4.7.0 · Issue #555 · sqlcipher/sqlcipher
X Title: Fuzztest fails to build after 4.7.0 · Issue #555 · sqlcipher/sqlcipher
Description: In v4.7.0, we have new instruction to configure sqlcipher. To run SQLCipher specific tests, configure as described in README and run the following to execute the tests $ ./configure --with-tempstore=yes --enable-fts5 CFLAGS="-DSQLITE_HAS...
Open Graph Description: In v4.7.0, we have new instruction to configure sqlcipher. To run SQLCipher specific tests, configure as described in README and run the following to execute the tests $ ./configure --with-tempstor...
X Description: In v4.7.0, we have new instruction to configure sqlcipher. To run SQLCipher specific tests, configure as described in README and run the following to execute the tests $ ./configure --with-tempstor...
Opengraph URL: https://github.com/sqlcipher/sqlcipher/issues/555
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fuzztest fails to build after 4.7.0","articleBody":"In v4.7.0, we have new instruction to configure sqlcipher. To run SQLCipher specific tests, configure as described in README and run the following to execute the tests\n\n```\n$ ./configure --with-tempstore=yes --enable-fts5 CFLAGS=\"-DSQLITE_HAS_CODEC -DSQLITE_EXTRA_INIT=sqlcipher_extra_init -DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown -DSQLCIPHER_TEST\" \\\n\tLDFLAGS=\"-lcrypto\"\n$ make fuzztest\n```\nThis shows an following error:\n\n```\n#error \"SQLCipher must be compiled with -DSQLITE_THREADSAFE=\u003c1 or 2\u003e\"\n```\n\nLet's fix this by adding -DSQLITE_THREADSAFE:\n```\n$ ./configure --with-tempstore=yes --enable-fts5 CFLAGS=\"-DSQLITE_THREADSAFE=1 -DSQLITE_HAS_CODEC -DSQLITE_EXTRA_INIT=sqlcipher_extra_init -DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown -DSQLCIPHER_TEST\" \\\n\tLDFLAGS=\"-lcrypto\"\n$ make fuzztest\n```\nWe still have error:\n```\n#error \"SQLCipher must be compiled with -DSQLITE_THREADSAFE=\u003c1 or 2\u003e\"\n```\n\nThis is because sessionfuzz.c has following define hardcoded in the code\n```\n#define SQLITE_THREADSAFE 0\n```\n\nNow let's remove this define so that the configured flag takes effect, and running the configure produces following error: \n```\n./fuzzcheck fuzzdata1.db: SQLite has memory in use before the start of testing\n```","author":{"url":"https://github.com/IrfanMusa","@type":"Person","name":"IrfanMusa"},"datePublished":"2025-06-03T14:17:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/555/sqlcipher/issues/555"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc71e786-96f5-044d-e37f-716d2d2c932c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF9A:E4115:F3B235:1463FAF:69702540 |
| html-safe-nonce | 257f9080a7e29157e5a89e3b4c77cb36e9159650b3f3a01eecd62fb1e0ca20a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjlBOkU0MTE1OkYzQjIzNToxNDYzRkFGOjY5NzAyNTQwIiwidmlzaXRvcl9pZCI6IjE1MjE0NzIwOTU5OTQ3ODMwNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3b23ae92844feef092c80470859df47ef5b4edbcd7781aae62ea4adeecbde7b4 |
| hovercard-subject-tag | issue:3114182954 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlcipher/sqlcipher/555/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7a4e27baa56c23252df7a3cca41e4398258769322ae364363d96bcbe95349b1/sqlcipher/sqlcipher/issues/555 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7a4e27baa56c23252df7a3cca41e4398258769322ae364363d96bcbe95349b1/sqlcipher/sqlcipher/issues/555 |
| og:image:alt | In v4.7.0, we have new instruction to configure sqlcipher. To run SQLCipher specific tests, configure as described in README and run the following to execute the tests $ ./configure --with-tempstor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IrfanMusa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26d344b5c41e8171f05f1b33de4ed89a222e01250099adfcd988bb0e02fd1cbb |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlcipher/sqlcipher git https://github.com/sqlcipher/sqlcipher.git |
| octolytics-dimension-user_id | 649049 |
| octolytics-dimension-user_login | sqlcipher |
| octolytics-dimension-repository_id | 38617 |
| octolytics-dimension-repository_nwo | sqlcipher/sqlcipher |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38617 |
| octolytics-dimension-repository_network_root_nwo | sqlcipher/sqlcipher |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9f0c240136b4f91bdb92e57a88ba5dc425cbdb12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width