SQLite Forum

SIGBUS errors in HHVM
Login
Hi all. I work on HHVM, Facebook's PHP JIT compiler. We're currently on SQLite 3.30, and we've been noticing rare SIGBUS errors blaming within SQLite code. The stack trace tends to look like this:

```
sqlite3WalFindFrame.constprop.0
readDbPage
getPageNormal
moveToLeftmost
sqlite3VdbeExec
sqlite3_step
sqlite3_exec
HPHP::Facts::(anonymous namespace)::AutoloadDBImpl::analyze()
```

I'm simply executing a prepared `ANALYZE` query statement. The DB is stored on a disk that has plenty of free space left.

I don't have a reproducible repro, but I'm mostly asking exploratory questions at this stage.

How can we prevent these SIGBUS errors in our application? I saw that, in 2012, [this ticket](https://www.sqlite.org/src/tktview/5eaa61ea1881040b1744) in 2012 led to [this bugfix](https://www.sqlite.org/src/info/356259617cfad044) in SQLite's code. Could this potentially be a bug in SQLite that we can help triage?

Thank you!

Jeff