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

32-bit Locks on Big-Endian Systems Lead To Deadlock [CORE5232] #5511

Closed
firebird-issue-importer opened this issue May 8, 2016 · 4 comments
Closed

Comments

@firebird-issue-importer
Copy link

firebird-issue-importer commented May 8, 2016

Submitted by: James Clarke (jrtc27)

Votes: 1

4e4d800 extended locks to have 64-bit keys in most cases, but some were left as 32-bit. However, code using these 32-bit locks assumed that the significant bytes of the key's long value started from lck_string[0], which is false on big-endian architectures. This leads to deadlocks during building:

cp ../../examples/udr/*.* ../../gen/Release/firebird/examples/udr/
can't format message 17:10 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
Server version:
Firebird/Linux/PowerPC (access method), version "LI-V3.0.0.32483 Firebird 3.0"
on disk structure version 12.0
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "ADD_EMP_PROJ" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "SUB_TOT_BUDGET" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "DELETE_EMPLOYEE" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "DEPT_BUDGET" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "ORG_CHART" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "MAIL_LABEL" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "SHIP_ORDER" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
deadlock
-unsuccessful metadata update
-object PROCEDURE "SHOW_LANGS" is in use
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-CREATE PROCEDURE ALL_LANGS failed
-Dynamic SQL Error
-SQL error code = -204
-Procedure unknown
-SHOW_LANGS
-At line 11, column 34
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
can't format message 17:0 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
unsuccessful metadata update
-GRANT failed
-action cancelled by trigger (0) to preserve data integrity
-could not find object for GRANT
can't format message 17:120 -- message file /usr/lib/powerpc-linux-gnu/firebird/3.0/firebird.msg not found
+ res=1
+ rm -f ../../gen/Release/firebird/bin/build-db.lock
+ exit 1
Makefile.examples:142: recipe for target '../../gen/examples/empbuild.fdb' failed

Commits: f2d0b64

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 10, 2016

Modified by: @dyemanov

Version: 4.0 Initial [ 10621 ]

Fix Version: 3.0.1 [ 10730 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 10, 2016

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 23, 2016

Modified by: @pavel-zotov

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

QA Status: No test => Cannot be tested

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 23, 2016

Modified by: @pavel-zotov

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

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