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

Error compile 2.5 for FreeBSD [CORE3212] #3586

Closed
firebird-issue-importer opened this issue Nov 2, 2010 · 11 comments
Closed

Error compile 2.5 for FreeBSD [CORE3212] #3586

firebird-issue-importer opened this issue Nov 2, 2010 · 11 comments

Comments

@firebird-issue-importer
Copy link

@firebird-issue-importer firebird-issue-importer commented Nov 2, 2010

Submitted by: Efremov Aleksandr Valer'evich (mrefrem)

Attachments:
3212.patch

If we compile fresh 2.5, we get

gmake -f ../gen/Makefile.embed.util ../gen/firebird/bin/create_db
gmake[3]: Entering directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake[3]: `../gen/firebird/bin/create_db' is up to date.
gmake[3]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
rm -f empty.fdb
../gen/firebird/bin/create_db empty.fdb
Fatal lock manager error: mutex init failed, errno: 2
--No such file or directory
gmake[2]: *** [empty.fdb] Segmentation fault: 11 (core dumped)
gmake[2]: *** Deleting file `empty.fdb'
gmake[2]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake[1]: *** [empty_db] Error 2
gmake[1]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake: *** [firebird] Error 2

Commits: 1b259c7 9c81026

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 2, 2010

Modified by: @dyemanov

assignee: Alexander Peshkov [ alexpeshkoff ]

security: Developers [ 10012 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 2, 2010

Commented by: @AlexPeshkoff

What happens if we compile as root and later try to run as non-root - does it start or not?

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 3, 2010

Commented by: Efremov Aleksandr Valer'evich (mrefrem)

This error occurs in the course of compilation and doesn't depend under whom to compile

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 3, 2010

Modified by: Efremov Aleksandr Valer'evich (mrefrem)

description: If we compile fresh 2.5 not as root, we get

gmake -f ../gen/Makefile.embed.util ../gen/firebird/bin/create_db
gmake[3]: Entering directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake[3]: `../gen/firebird/bin/create_db' is up to date.
gmake[3]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
rm -f empty.fdb
../gen/firebird/bin/create_db empty.fdb
Fatal lock manager error: mutex init failed, errno: 2
--No such file or directory
gmake[2]: *** [empty.fdb] Segmentation fault: 11 (core dumped)
gmake[2]: *** Deleting file `empty.fdb'
gmake[2]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake[1]: *** [empty_db] Error 2
gmake[1]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake: *** [firebird] Error 2

=>

If we compile fresh 2.5, we get

gmake -f ../gen/Makefile.embed.util ../gen/firebird/bin/create_db
gmake[3]: Entering directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake[3]: `../gen/firebird/bin/create_db' is up to date.
gmake[3]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
rm -f empty.fdb
../gen/firebird/bin/create_db empty.fdb
Fatal lock manager error: mutex init failed, errno: 2
--No such file or directory
gmake[2]: *** [empty.fdb] Segmentation fault: 11 (core dumped)
gmake[2]: *** Deleting file `empty.fdb'
gmake[2]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake[1]: *** [empty_db] Error 2
gmake[1]: Leaving directory `/home/user/firebird/firebird2.5/firebird2/gen'
gmake: *** [firebird] Error 2

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 11, 2010

Commented by: @AlexPeshkoff

The problem is very low default limit of SYSV semaphores on freebsd. You should better increase that value (existing 60 may be anyway not enough for firebird to run under high load). But to let us compile and run on out-of-the-box OS you may apply 3212.patch (very simple one).

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 11, 2010

Modified by: @AlexPeshkoff

Attachment: 3212.patch [ 11819 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 11, 2010

Commented by: @AlexPeshkoff

FreeBSD 8.1 has abnormally (for year 2010) small limit of available SysV semaphores == 60. This may be enough to work under small load, therefore learn firebird to work with so small limit allocating semaphores in smaller sets.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 11, 2010

Modified by: @AlexPeshkoff

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.1 [ 10333 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 12, 2010

Commented by: Efremov Aleksandr Valer'evich (mrefrem)

Thanks, all work. Firebird the best!!!

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 4, 2011

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 16, 2015

Modified by: @pavel-zotov

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

QA Status: Cannot be tested

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

Successfully merging a pull request may close this issue.

None yet
2 participants