| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Add DB mode when it does not keep records in memory,
instead it re-reads them from disk on compaction.
On my instance this saves 466MB (14.3%) of heap,
which reduces RSS by 900MB (2x due to GC).
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
It was too radical to repair and overwrite db file unconditionally.
syz-execprog probes if a given file is a database. Usually it's a crash log
or a single program, but db.Open started to overwrite it.
And an explicit repair flag in db.Open and enable it only in
syz-manager and syz-hub.
Fixes #2997
|
| |
|
|
|
| |
Opening inaccessible file won't fail under root.
Skip the test.
|
| |
|
|
|
|
|
|
| |
corpus.db may get corrupted on an unexpected reset, etc.
Commit a254b0f5 ("pkg/db: properly handle errors when loading a DB")
made these errors fatal and manager never recovers on its own.
Restore the previous behavior when we still recovered some records from the db.
But (1) ensure that the file is at least writable and (2) add tests.
|
| |
|
|
| |
Properly return errors to caller instead of logging them.
|
| |
|
|
| |
Introduce TempFile helper and use it in several packages.
|
| |
|
|
| |
Update #538
|
| |
|