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

Crash on "Operating system call pthread_mutex_destroy failed. Error code 16" in log #7762

Closed
gerdus opened this issue Sep 26, 2023 · 10 comments

Comments

@gerdus
Copy link

gerdus commented Sep 26, 2023

A production firebird server crashed twice over the weekend.
There is about 40 databases in use.

Error in firebird.log:
Operating system call pthread_mutex_destroy failed. Error code 16

Core dump available at https://infireal.com/github-issues/firebird-crash-2023-09-23/

Firebird version: LI-V4.0.3.2975 (binaries + debug symbols from firebird website)
OS: Ubuntu 22.04.3 LTS

@gerdus
Copy link
Author

gerdus commented Sep 27, 2023

Crashed again today.
New core dumps available at https://infireal.com/github-issues/firebird-crash-2023-09-27/

Log:

     Wed Sep 27 12:49:49 2023
        Fatal lock manager error: Process disappeared in LockManager::acquire_shmem, errno: 0


     Wed Sep 27 12:50:25 2023
        /opt/firebird/bin/fbguard: /opt/firebird/bin/firebird terminated abnormally (-1)

     Wed Sep 27 13:45:44 2023
        Operating system call pthread_mutex_destroy failed. Error code 16


     Wed Sep 27 13:45:50 2023
        /opt/firebird/bin/fbguard: /opt/firebird/bin/firebird terminated abnormally (-1)

@AlexPeshkoff
Copy link
Member

To inspect your core dump I need this files from your host:

ld-linux-x86-64.so.2
libc.so.6
libdl.so.2
libgcc_s.so.1
libm.so.6
libnss_files.so.2
libpthread.so.0
libthread_db.so.1
libstdc++.so.6

Most of them are symbolic links - certainly I need what they point too.

@AlexPeshkoff AlexPeshkoff self-assigned this Sep 27, 2023
@gerdus
Copy link
Author

gerdus commented Sep 27, 2023

Ok have uploaded them here: https://infireal.com/github-issues/firebird-crash-2023-09-27/lib.tar.gz

Thank you.

@AlexPeshkoff
Copy link
Member

AlexPeshkoff commented Sep 28, 2023 via email

@AlexPeshkoff AlexPeshkoff changed the title Crash on V4.0.3.2975 Operating system call pthread_mutex_destroy failed. Error code 16 Crash on "Operating system call pthread_mutex_destroy failed. Error code 16" in log Sep 29, 2023
AlexPeshkoff added a commit that referenced this issue Sep 29, 2023
@AlexPeshkoff
Copy link
Member

Try next snapshot (build >= 4.0.4-2997). Please reply the result (well understand it will be not earlier than a week or two).

@gerdus
Copy link
Author

gerdus commented Sep 29, 2023

Thank you for looking into it so quickly. I will install the snapshot build this weekend and report back.

@gerdus
Copy link
Author

gerdus commented Oct 9, 2023

It has been 7 days since I deployed the change and so far so good.

@gerdus
Copy link
Author

gerdus commented Oct 18, 2023

There was a new crash today. Message in log is different but seems related.

Wed Oct 18 07:54:39 2023 Fatal lock manager error: Process disappeared in LockManager::acquire_shmem, errno: 22 --Invalid argument

Core dump: https://infireal.com/github-issues/firebird-crash-2023-10-18/

@AlexPeshkoff
Copy link
Member

Please create new ticket - that's another bug

@AlexPeshkoff
Copy link
Member

Also please send me snapshot you are using - w/o it core dump is useless

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