Bug 68746 - CRASH - Base wizard crashes on embedded firebird db creation - LibreOffice 64bit OSX
Summary: CRASH - Base wizard crashes on embedded firebird db creation - LibreOffice 64...
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.2.0.0.alpha0+ Master
Hardware: x86-64 (AMD64) macOS (All)
: highest blocker
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 08:46 UTC by Alex Thurgood
Modified: 2013-09-06 14:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
bt wizard embedded firebird db creation (37.88 KB, text/plain)
2013-08-30 08:46 UTC, Alex Thurgood
Details
2nd full bt (40.11 KB, text/plain)
2013-08-30 09:03 UTC, Alex Thurgood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Thurgood 2013-08-30 08:46:35 UTC
Created attachment 84900 [details]
bt wizard embedded firebird db creation

Using build Version: 4.2.0.0.alpha0+
Build ID: d9b62a48d75e596888fcf10f5f73fed93e7b88a3

This is a 64bit debug build.

The Base wizard crashes on firebirddb creation, at the last step, i.e. where it is supposed to save the ODB file.

Enclosed backtrace.
Comment 1 Andrzej Hunt 2013-08-30 08:57:21 UTC
Commit a1d2668c193e99044ac77d171eac651c0ad4c263 or later are needed for firebird to work on OSX (that's one commit after the one you are on) -- hopefully that should fix the issue.

(Additionally commit 295759c05395099e564e263b98e5e4a38a9a9bc4 is needed if you are running libreoffice in sandboxed mode.)
Comment 2 Alex Thurgood 2013-08-30 09:03:36 UTC
Created attachment 84902 [details]
2nd full bt

This bt seems to be different to the first one I posted and yet it is with the same build.
Comment 3 Alex Thurgood 2013-08-30 09:37:28 UTC
(In reply to comment #1)
> Commit a1d2668c193e99044ac77d171eac651c0ad4c263 or later are needed for
> firebird to work on OSX (that's one commit after the one you are on) --
> hopefully that should fix the issue.
> 
> (Additionally commit 295759c05395099e564e263b98e5e4a38a9a9bc4 is needed if
> you are running libreoffice in sandboxed mode.)

OK, thanks, will rebuild after pull and report back.

Alex
Comment 4 Alex Thurgood 2013-08-30 14:13:32 UTC
Ok, after a fresh pull and rebuild, I don't get a crash any more. LO tries to open the recently created file and then displays the following error :

The connection to the data source "New Database9" could not be established.

Error code :1
firebird_sdbc error
"Can't access lock files' directory"
file:///var/folders/47/7s51p5_d5tq7yvfs0r8t_g0h0000gn/T/firebird

caused by 
'isc_create_database'


But at least it doesn't crash any more ;-)


Alex
Comment 5 Alex Thurgood 2013-08-30 14:16:00 UTC
gdb points to the following :

warn:connectivity.firebird:25772:1:connectivity/source/drivers/firbird/Util.cxx:51
Comment 6 Andrzej Hunt 2013-08-30 14:37:42 UTC
(In reply to comment #4)
> Error code :1
> firebird_sdbc error
> "Can't access lock files' directory"
> file:///var/folders/47/7s51p5_d5tq7yvfs0r8t_g0h0000gn/T/firebird
> 
> caused by 
> 'isc_create_database'
> 

Yes -- I messed up the sandboxing tmp-dir fix, commit 819b72bb03b2be368790d6e603f282ec6ea72ab4 should hopefully deal with that -- thanks for reporting!

Andrzej
Comment 7 Alex Thurgood 2013-09-06 14:14:15 UTC
Andrjez,

your fix did the trick, thanks.


Closing.

Alex