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

server crashes when creating database on OSX 10.9 Mavericks [CORE4536] #4854

Closed
firebird-issue-importer opened this issue Sep 1, 2014 · 9 comments

Comments

@firebird-issue-importer
Copy link

@firebird-issue-importer firebird-issue-importer commented Sep 1, 2014

Submitted by: Hamish Moffatt (hmoffatt)

Attachments:
fb_inet_server_2014-09-01-142921_hamish-vm-mavericks.crash

When I attempt to create a database with "CREATE DATABASE" in the isql utility, the Firebird 2.1.6 server crashes. This does not happen on 2.1.5.

I used the 2.1.6 classic lipo build FirebirdCS-2.1.6-18547-lipo-x86_64.pkg.zip from the http://firebirdsql.org site.

I have a fresh install of Mavericks. I created a directory /Users/hamish/tmp and changed the ownership to firebird:firebird. When I create the database I see

2:29pm] hamish@hamish-vm-mavericks:~ $ isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database "localhost:/Users/hamish/tmp/foo.fdb";
Statement failed, SQLCODE = -902
Error reading data from the connection.

and the /var/log/system.log says

Sep 1 14:29:21 hamish-vm-mavericks fb_inet_server[624]: fb_inet_server(624,0x7fff732d3310) malloc: *** error for object 0x1006d0420: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Sep 1 14:29:21 hamish-vm-mavericks.local ReportCrash[625]: Metadata.framework [Error]: couldn't get the client port
Sep 1 14:29:21 hamish-vm-mavericks.local ReportCrash[625]: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.
Sep 1 14:29:21 hamish-vm-mavericks.local ReportCrash[625]: Saved crash report for fb_inet_server[624] version ??? to /Library/Logs/DiagnosticReports/fb_inet_server_2014-09-01-142921_hamish-vm-mavericks.crash

Nonetheless a file has been created. But if I try to connect to it, I get

[ 2:38pm] hamish@hamish-vm-mavericks:~ $ isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect "localhost:/Users/hamish/tmp/foo.fdb";
Statement failed, SQLCODE = -204
Implementation of text subtype 3 not located.

I can connect to other firebird 2.1.x fdb files copied over from another machine though (2.1.5).

The crash log says

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8f01b866 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8659a35c pthread_kill + 92
2 libsystem_c.dylib 0x00007fff8b06ab1a abort + 125
3 libsystem_malloc.dylib 0x00007fff8c35107f free + 411
4 fbintl 0x0000000101389daa LD_setup_attributes + 186
5 com.firebirdsql.Firebird 0x00000001000cf8a3 Jrd::IntlManager::setupCollationAttributes(Firebird::StringBaseFirebird::StringComparator\ const&, Firebird::StringBaseFirebird::StringComparator\ const&, Firebird::StringBaseFirebird::StringComparator\ const&, Firebird::StringBaseFirebird::StringComparator\&) + 703
6 com.firebirdsql.Firebird 0x00000001000a40c1 create_collation(Jrd::thread_db*, short, Jrd::DeferredWork*, Jrd::jrd_tra*) + 1025
7 com.firebirdsql.Firebird 0x00000001000a9958 DFW_perform_work(Jrd::jrd_tra*) + 328
8 com.firebirdsql.Firebird 0x00000001000aacff DFW_perform_system_work(Jrd::thread_db*) + 63
9 com.firebirdsql.Firebird 0x0000000100051abf INI_format(char const*, char const*) + 1535
10 com.firebirdsql.Firebird 0x00000001000de23c jrd8_create_database + 1852
11 com.firebirdsql.Firebird 0x000000010001ee48 isc_create_database + 680
12 com.firebirdsql.Firebird 0x000000010019cac9 attach_database2(rem_port*, P_OP, char const*, int, unsigned char const*, int, packet*) + 409
13 com.firebirdsql.Firebird 0x000000010019cc35 attach_database(rem_port*, P_OP, p_atch*, packet*) + 181
14 com.firebirdsql.Firebird 0x00000001001a0306 process_packet2(rem_port*, packet*, packet*, rem_port**) + 230
15 com.firebirdsql.Firebird 0x00000001001a09a9 process_packet + 25
16 com.firebirdsql.Firebird 0x000000010019a96c SRVR_main + 124
17 com.firebirdsql.Firebird 0x000000010019a861 server_main + 1009
18 fb_inet_server 0x0000000100000f04 start + 52

Commits: 2d98474 FirebirdSQL/fbt-repository@57b5da5

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 1, 2014

Commented by: Hamish Moffatt (hmoffatt)

Full crash log

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 1, 2014

Modified by: Hamish Moffatt (hmoffatt)

Attachment: fb_inet_server_2014-09-01-142921_hamish-vm-mavericks.crash [ 12584 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 2, 2014

Modified by: @paulbeach

assignee: Paul Beach [ pbeach ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 2, 2014

Commented by: @paulbeach

2.1.6 needs the gcc/g++ compile flag -fno-weak

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 2, 2014

Modified by: @paulbeach

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

resolution: Fixed [ 1 ]

Fix Version: 2.1.6 [ 10460 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 9, 2014

Modified by: @dyemanov

Fix Version: 2.1.7 [ 10651 ]

Fix Version: 2.1.6 [ 10460 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 23, 2015

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 18, 2016

Modified by: @pavel-zotov

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

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 25, 2016

Modified by: @pavel-zotov

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

QA Status: No test => 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