Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get an "Internar GDS consistency check" error and I can't continue without restart the firebird server [CORE1968] #2406

Closed
firebird-automations opened this issue Jun 27, 2008 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Francisco Fernández (fcofdezapei)

Duplicates CORE1958

I have an insert query that fires a trigger in my database, this trigger tries to update a table in an decimal(12,5) data collumn. This is like a resume table that keeps the sum of the collumn at first one. The trigger tries to reduce the value of the collumn of the master table so it gets a negative value. This action fires a check that validates the value must be higher or equal to zero.

The first time I do the insert I get a correct error indicating this situation an telling me that the check is violated like this:

Operation violates CHECK constraint on view or table.
Operation violates CHECK constraint INTEG_167 on view or table LOTES_X_ALMACEN.
At trigger 'CHECK_143'
At trigger 'BI_KARDEX' line: 81, col: 7.

Then without doing a commit or rollback to the transaction, I do the same insert query (only changing the primary key of the registry I tried to insert the first time) and this time I get the check error, but this one:

Operation violates CHECK constraint on view or table.
Operation violates CHECK constraint INTEG_167 on view or table LOTES_X_ALMACEN.
At trigger 'CHECK_143'
At trigger 'BI_KARDEX' line: 81, col: 7.
internal gds software consistency check (decompression overran buffer (179), file: sqz.cpp line: 222).

After this any query produces the following result:

Unsuccessful execution caused by a system error that precludes
successful execution of subsequent statements.
internal gds software consistency check (can't continue after bugcheck).

I hope this information can be usefull. I also have a little database 4mb aprox. and a script that we created to reproduce the bug, but I don't know if I can send it to you.

Thank's in advance.

P.S. Sorry if my english isn't good enougth.

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Please post the DDL for the trigger.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

This sounds very similar to CORE1958. Could you please download the latest snapshot (http://www.firebirdsql.org/downloads/snapshot_builds/win/) of v2.1 and try it with your test case or real application? If the issue still exists, then please attach your test case to this ticket.

@firebird-automations
Copy link
Collaborator Author

Commented by: Francisco Fernández (fcofdezapei)

I tried with the latest snapshot as you told me and the message I get every time is correct. The database doesn't stop responding anymore. It seems the bug has been already corrected.

Thank you for your time.

Just two questions? Is this bug corrected with Firebird V2.1.1 Release Candidate 1? or, which version can I use to correct the problem?

Thank's again

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

The bug has been fixed just a few days ago, so the bugfix is targeted for the next point release (v2.1.2). You can use the snapshot build in the meantime though.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue duplicates CORE1958 [ CORE1958 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

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

No branches or pull requests

1 participant