Operating System Call Pthread_mutex_destroy Failed. Error Code 16
Pavel Zotov Votes: 1 Watchers: 6 Operations If you were logged in you would be able to see more operations. Firebird Core Engine leaks memory and crashes when lot of autonomous transactions have been started and finished Created: 25/Aug/12 09:35 AM Updated: 18/Jan/16 03:58 PM Component/s: Engine Affects Version/s: 3.0 Initial, 2.5.2 Fix Version/s: 3.0 Alpha 1, 2.5.3 File Attachments: 1. fdb_isql_hangs_on_quit.zip (183 kB) 2. gdb_backtrace_isql_hangs_on_quit.zip (5 kB) Issue Links: Relate This issue relate to: CORE-3994 Improve the limbo transactions scan at the end of the sweep QA Status: No test Description « Hide SQL> create database 't0.fdb'; commit; SQL> set term ;^ SQL> set term ^; SQL> execute block as CON> declare v int; CON> begin CON> while (1=1) do in autonomous transaction do select 1 from rdb$database into v; CON> end^ After working about 18 hours isql has outputed this messages: Statement failed, SQLSTATE = HY000 operating system directive munmap failed -Cannot allocate memory Attempt to quit from isql leads to: -------------------------------------------- SQL> quit; CON> Expected end of statement, encountered EOF -- это потому что не дошло до set term ;^ Statement failed, SQLSTATE = HY000 operating system directive munmap failed -Cannot allocate memory terminate called after throwing an instance of 'Firebird::system_call_failed' Aborted (core dumped) Firebird's log: ------------------- bash-3.2$ cat -n firebird.log 1 2 reservdb Sat Aug 25 09:51:57 2012 3 Operating system call munmap failed. Error code 12 4 5 6 reservdb Sat Aug 25 09:51:57 2012 7 Operating system call munmap failed. Error code 12 8 9 10 reservdb Sat Aug 25 12:49:47 2012 11 Operating system call munmap failed. Error code 12 12 13 14 reservdb Sat Aug 25 12:49:47 2012 15 Operating system call munmap failed. Error code 12 16 17 18 reservdb Sat Aug 25 12:49:47 2012 19 Operating system call munmap failed. Error code 12 20 21 22 reservdb Sat Aug 25 12:49:47 2012 23 Operating system call pthread_mutex_destroy failed. Error code 16 24 25 26 reservdb Sat Aug 25 12:49:47 2012 27 Error in isc_detach_database() API call when working with security database 28 operating system directive pthread_mutex_destroy failed 29 Device or resource busy 30 31 32 reservdb Sat Aug 25 12:49:47 2012 33 Operating system call pthread_mutex_destroy failed. Error code 16 Backtrace of core brings error messages: [root@reservdb .debug]# gdb -q -x ./gdb_backtrace_batch.txt /opt/firebird/bin/.debug/isql.debug /tmp/core-isql-354 1>isql-354.txt warning: core file may not match specifie
Watchers: 1 Operations If you were logged in you would be able to see more operations. Firebird Core Operating system call pthread_mutex_destroy failed. Error code 16 in Firebird.log Created: 26/Feb/10 11:52 AM Updated: 20/Aug/15 01:31 PM Component/s: Engine Affects Version/s: 2.5 RC2 Fix Version/s: None Environment: « Hide 64b linux redhat /2.6.18-164.el5 Show » 64b linux redhat /2.6.18-164.el5 Description « Hide Hi all, First , congrats on 2.5 getting ready for http://tracker.firebirdsql.org/browse/CORE-3908 Release. 1) I must always ask a root user to install/deinstall in this case: "FirebirdCS-2.5.0.25920-ReleaseCandidate2.amd64.rpm" then all in "/opt/firebird/" was owned by root. (prev. version all was automatically owned by "firebird" accept SYSDBA.password file may some other stuff) so i had it changed to be used by user "firebird" then i could run as http://tracker.firebirdsql.org/browse/CORE-2891 "firebird" user. 2) So far the database is working oke in terms of DSQL/PSQL. 3) Here is the problem: firebird.log shows strange errors eusdlsdbb024.logistics.corp Fri Feb 26 11:46:52 2010 Operating system call pthread_mutex_destroy failed. Error code 16 eusdlsdbb024.logistics.corp Fri Feb 26 11:46:52 2010 Fatal lock manager error: semop failed (release_shmem), errno: 11 eusdlsdbb024.logistics.corp Fri Feb 26 11:46:52 2010 Shutting down the server with 1 active connection(s) to 1 database(s), 0 active service(s) eusdlsdbb024.logistics.corp Fri Feb 26 11:46:57 2010 Firebird shutdown is still in progress after the specified timeout clearly someting is gooing wrong.. cheers, Derryck Description Hi all, First , congrats on 2.5 getting ready for Release. 1) I must always ask a root user to install/deinstall in this case: "FirebirdCS-2.5.0.25920-ReleaseCandidate2.amd64.rpm" then all in "/opt/firebird/" was owned by root. (prev. version all was automatically owned by "firebird" accept SYSDBA.password file may some other stuff) so i had it changed to be used by user "firebird" then i could run as "f
the interface may not be implemented on Linux. Name pthread_mutex_destroy, pthread_mutex_init - destroy and initialize a mutex Synopsis https://linux.die.net/man/3/pthread_mutex_destroy #include
for firebird2.5-classic is src:firebird2.5. Reported by: Robert Vojta