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

libfbclient crashes apache under FreeBSD [CORE2961] #3343

Closed
firebird-automations opened this issue Apr 9, 2010 · 6 comments
Closed

libfbclient crashes apache under FreeBSD [CORE2961] #3343

firebird-automations opened this issue Apr 9, 2010 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: lifelost (lifelost)

Votes: 1

apache stack trace:

(gdb) bt full
#⁠0 0x29109e0f in ThreadData::restoreSpecific () from /usr/local/lib/libfbclient.so.2
No symbol table info available.
#⁠1 0x2911ed2f in error () from /usr/local/lib/libfbclient.so.2
No symbol table info available.
#⁠2 0x2912634a in REM_attach_database () from /usr/local/lib/libfbclient.so.2
No symbol table info available.
#⁠3 0x29113b2b in isc_attach_database () from /usr/local/lib/libfbclient.so.2
No symbol table info available.
#⁠4 0x290def41 in _php_ibase_attach_db () from /usr/local/lib/php/20060613/interbase.so
No symbol table info available.
#⁠5 0x290df383 in _php_ibase_connect () from /usr/local/lib/php/20060613/interbase.so
No symbol table info available.
#⁠6 0x2893859c in zend_do_fcall_common_helper_SPEC () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠7 0x2892d7d9 in execute () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠8 0x2893800b in zend_do_fcall_common_helper_SPEC () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠9 0x2892d7d9 in execute () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠10 0x2893800b in zend_do_fcall_common_helper_SPEC () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠11 0x2892d7d9 in execute () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠12 0x2893276f in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠13 0x2892d7d9 in execute () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠14 0x2890fcf2 in zend_execute_scripts () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠15 0x288ce1c0 in php_execute_script () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠16 0x2898c8c1 in php_handler () from /usr/local/libexec/apache22/libphp5.so
No symbol table info available.
#⁠17 0x08076529 in ap_run_handler ()
No symbol table info available.
#⁠18 0x080797f7 in ap_invoke_handler ()
No symbol table info available.
#⁠19 0x08084800 in ap_process_request ()
No symbol table info available.
#⁠20 0x080819eb in ap_process_http_connection ()
No symbol table info available.
#⁠21 0x0807d809 in ap_run_process_connection ()

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

At the first glance looks like changed rules of MT programming in FreeBSD 8. This code runs on a lot posix platforms without mentioned problem. Can you provide src/include/gen/autoconfig.h (it's generated at configure stage) to let me have a look at MT settings, detected on this OS?

@firebird-automations
Copy link
Collaborator Author

Commented by: lifelost (lifelost)

After replacing this
#⁠define HAVE___THREAD 1
for this
/* #⁠define HAVE___THREAD 1 */

in /usr/ports/databases/firebird20-client/work/Firebird-2.0.3.12981-1/src/include/gen/autoconfig.h
and recompiling firebird - apache+php+fb started working.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

According to the last comment of reporter, this is not firebird, but freebsd bug - use of __thread variables in gcc is broken.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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

No branches or pull requests

2 participants