Skip to content

ERROR: database file appears corrupt - page x is of wrong type (expected 8, found 0) [CORE3287] #3655

@firebird-automations

Description

@firebird-automations

Submitted by: Yiannis Bourkelis (yiannis)

Attachments:
CorruptionTest.rar
screenshot-1.jpg
ErrorMsg.JPG

When I continuously insert new rows to the database, and the rows contain at least one blob field, the database gets corrupted after some time.

I am sending you a project and the database to reproduce this issue.

The corruption happens usually after many days when the project runs in the hard disk, but if you run the attached project from a flash disk drive you will be able to corrupt the database in less than 30 minutes.

The error that I got when I try to back up the database using gbak is:
gbak: ERROR:database file appears corrupt (E:\DATABASE.FDB)
gbak: ERROR: wrong page type
gbak: ERROR: page 56268 is of wrong type (expected 8, found 0)
gbak: ERROR:gds_$get_segment failed
gbak:Exiting before completion due to errors

The error that I got when I try to validate the database using gfix is:
database file appears corrupt ()
-bad checksum
-checksum error on database page 56268

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions