32-bit Locks on Big-Endian Systems Lead To Deadlock
---------------------------------------------------
Key: CORE-5232
URL: http://tracker.firebirdsql.org/browse/CORE-5232
Project: Firebird Core
Issue Type: Bug
Components: Build Issues / Porting
Affects Versions: 3.0.0
Environment: Any big-endian system (I was using Debian sid on PowerPC)
Reporter: James Clarke
https://github.com/FirebirdSQL/firebird/commit/4e4d8002e5fe9968b4d5a493fdb567ed773ccbab
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel