Bedrock icon indicating copy to clipboard operation
Bedrock copied to clipboard

Abort after realpath issue

Open onli opened this issue 7 years ago • 3 comments

I want to help by documenting our gitter conversion in a proper issue.

I first had issues compiling bedrock that I documented in #488 and solved with the hints from #320. Btu after a seemingly successful compilation I get an abort, even when just running ./bedrock -clean. This is the log, it seems to start failing at realpath:

Aug 15 21:44:23 [bedrock] xxxxxx (SQLite.cpp:51) SQLite [sync] [eror] Couldn't resolve pathname for: node0.db_

This is the gcc used:

onli@Fallout:~$ gcc --version
gcc (Funtoo 7.3.1) 7.3.1 20180425
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

It is possible that using gcc 6 might fix this, but it would be better if bedrock could also be compiled with gcc 7.

onli avatar Aug 16 '18 10:08 onli

Hm, gcc 6 doesn't fix this either. I'm escalating internally to help get this resolved. Thanks for your patience!

quinthar avatar Sep 12 '18 18:09 quinthar

Actually this seems to deal with it not handling the case of no existing file. Running touch bedrock.db is a temporary work around, but really the -clean flag is just broken (because it can't start without an existing file). The solution is to make -clean create a file from scratch if one doesn't already exist.

quinthar avatar Sep 12 '18 18:09 quinthar

Addressed in https://github.com/Expensify/Bedrock/pull/620

jerrywardlow avatar Mar 29 '19 22:03 jerrywardlow