Abort after realpath issue
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.
Hm, gcc 6 doesn't fix this either. I'm escalating internally to help get this resolved. Thanks for your patience!
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.
Addressed in https://github.com/Expensify/Bedrock/pull/620