-
-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Branch v5.0-release
If definition of VIO_DEBUG is uncommented in vio_debug.h , then build fails.
Following error message is issued during make_boot.bat DEBUG
11>..\..\..\src\jrd\vio.cpp(4999,67): error C2065: tail_length: unknown identifier [c:\firebird-build\builds\win32\msvc15\engine_static.vcxproj]
If this error is fixed, then make_boot.bat DEBUG is completed without errors. However, there will be lots of "missing symbol" linkage error during make_all.bat DEBUG. These errors are caused by several generated files, for example gen/alice/alice_meta.cpp , having length of 0.
I've tried to reproduce code generation step manually by running GPRE, to see it failing with access violation. Running it with debugger attached caused it to catch error with following stack trace:
engine13.dll!VIO_record(Jrd::thread_db * tdbb, Jrd::record_param * rpb, const Jrd::Format * format, Firebird::MemoryPool * pool) Line 3863 (c:\firebird-build\src\jrd\vio.cpp:3863) engine13.dll!Jrd::RecursiveStream::internalOpen(Jrd::thread_db * tdbb) Line 73 (c:\firebird-build\src\jrd\recsrc\RecursiveStream.cpp:73) engine13.dll!Jrd::RecordSource::open(Jrd::thread_db * tdbb) Line 71 (c:\firebird-build\src\jrd\recsrc\RecordSource.cpp:71) engine13.dll!Jrd::NestedLoopJoin::internalGetRecord(Jrd::thread_db * tdbb) Line 119 (c:\firebird-build\src\jrd\recsrc\NestedLoopJoin.cpp:119) engine13.dll!Jrd::RecordSource::getRecord(Jrd::thread_db * tdbb) Line 79 (c:\firebird-build\src\jrd\recsrc\RecordSource.cpp:79) engine13.dll!Jrd::Cursor::fetchNext(Jrd::thread_db * tdbb) Line 255 (c:\firebird-build\src\jrd\recsrc\Cursor.cpp:255) engine13.dll!Jrd::ForNode::execute(Jrd::thread_db * tdbb, Jrd::Request * request, Jrd::StmtNode::ExeState * __formal) Line 5231 (c:\firebird-build\src\dsql\StmtNodes.cpp:5231) engine13.dll!EXE_looper(Jrd::thread_db * tdbb, Jrd::Request * request, const Jrd::StmtNode * node) Line 1456 (c:\firebird-build\src\jrd\exe.cpp:1456) engine13.dll!looper_seh(Jrd::thread_db * tdbb, Jrd::Request * request, const Jrd::StmtNode * node) Line 1588 (c:\firebird-build\src\jrd\exe.cpp:1588) engine13.dll!execute_looper(Jrd::thread_db * tdbb, Jrd::Request * request, Jrd::jrd_tra * transaction, const Jrd::StmtNode * node, Jrd::Request::req_s next_state) Line 1057 (c:\firebird-build\src\jrd\exe.cpp:1057) engine13.dll!EXE_receive(Jrd::thread_db * tdbb, Jrd::Request * request, unsigned short msg, unsigned long length, void * buffer, bool top_level) Line 633 (c:\firebird-build\src\jrd\exe.cpp:633) engine13.dll!JRD_receive(Jrd::thread_db * tdbb, Jrd::Request * request, unsigned short msg_type, unsigned long msg_length, void * msg) Line 9376 (c:\firebird-build\src\jrd\jrd.cpp:9376) engine13.dll!Jrd::DsqlDmlRequest::fetch(Jrd::thread_db * tdbb, unsigned char * msgBuffer) Line 417 (c:\firebird-build\src\dsql\DsqlRequests.cpp:417) engine13.dll!Jrd::ResultSet::fetch(Jrd::thread_db * tdbb) Line 72 (c:\firebird-build\src\jrd\ResultSet.cpp:72) engine13.dll!Jrd::UserId::findGrantedRoles(Jrd::thread_db * tdbb) Line 2276 (c:\firebird-build\gen\jrd\scl.cpp:2276) engine13.dll!Jrd::UserId::locksmith(Jrd::thread_db * tdbb, unsigned long sp) Line 310 (c:\firebird-build\src\jrd\scl.h:310) engine13.dll!Jrd::Attachment::locksmith(Jrd::thread_db * tdbb, Jrd::SystemPrivilege sp) Line 876 (c:\firebird-build\src\jrd\Attachment.h:876) engine13.dll!get_sys_privileges(Jrd::thread_db * tdbb) Line 2730 (c:\firebird-build\gen\jrd\scl.cpp:2730) engine13.dll!compute_access(Jrd::thread_db * tdbb, const Jrd::SecurityClass * s_class, long obj_type, const Jrd::MetaName & obj_name) Line 2772 (c:\firebird-build\gen\jrd\scl.cpp:2772) engine13.dll!SCL_get_class(Jrd::thread_db * tdbb, const char * par_string) Line 2103 (c:\firebird-build\gen\jrd\scl.cpp:2103) engine13.dll!Jrd::UserId::sclInit(Jrd::thread_db * tdbb, bool create) Line 2411 (c:\firebird-build\gen\jrd\scl.cpp:2411) engine13.dll!Jrd::JProvider::internalAttach(Firebird::CheckStatusWrapper * user_status, const char * const filename, unsigned int dpb_length, const unsigned char * dpb, const Jrd::UserId * existingId) Line 1983 (c:\firebird-build\src\jrd\jrd.cpp:1983) engine13.dll!Jrd::JProvider::attachDatabase(Firebird::CheckStatusWrapper * user_status, const char * filename, unsigned int dpb_length, const unsigned char * dpb) Line 1624 (c:\firebird-build\src\jrd\jrd.cpp:1624) engine13.dll!Firebird::IProviderBaseImpl<Jrd::JProvider,Firebird::CheckStatusWrapper,Firebird::IPluginBaseImpl<Jrd::JProvider,Firebird::CheckStatusWrapper,Firebird::Inherit<Firebird::IReferenceCountedImpl<Jrd::JProvider,Firebird::CheckStatusWrapper,Firebird::Inherit<Firebird::IVersionedImpl<Jrd::JProvider,Firebird::CheckStatusWrapper,Firebird::Inherit<Firebird::IProvider>>>>>>>::cloopattachDatabaseDispatcher(Firebird::IProvider * self, Firebird::IStatus * status, const char * fileName, unsigned int dpbLength, const unsigned char * dpb) Line 12284 (c:\firebird-build\src\include\firebird\IdlFbInterfaces.h:12284) fbclient.dll!Firebird::IProvider::attachDatabase<Firebird::CheckStatusWrapper>(Firebird::CheckStatusWrapper * status, const char * fileName, unsigned int dpbLength, const unsigned char * dpb) Line 2914 (c:\firebird-build\src\include\firebird\IdlFbInterfaces.h:2914) fbclient.dll!Why::Dispatcher::attachOrCreateDatabase(Firebird::CheckStatusWrapper * status, bool createFlag, const char * filename, unsigned int dpbLength, const unsigned char * dpb) Line 6463 (c:\firebird-build\src\yvalve\why.cpp:6463) fbclient.dll!Why::Dispatcher::attachDatabase(Firebird::CheckStatusWrapper * status, const char * filename, unsigned int dpbLength, const unsigned char * dpb) Line 6377 (c:\firebird-build\src\yvalve\why.cpp:6377) fbclient.dll!isc_attach_database(__int64 * userStatus, short fileLength, const char * filename, unsigned int * publicHandle, short dpbLength, const char * dpb) Line 1654 (c:\firebird-build\src\yvalve\why.cpp:1654) gpre.exe!MET_database(gpre_dbb * database, bool print_version) Line 1829 (c:\firebird-build\gen\gpre\std\gpre_meta.cpp:1829) gpre.exe!PAR_database(bool sql, const char * base_directory) Line 638 (c:\firebird-build\src\gpre\par.cpp:638) gpre.exe!PAR_action(const char * base_dir) Line 203 (c:\firebird-build\src\gpre\par.cpp:203) gpre.exe!pass1(const char * base_directory) Line 2353 (c:\firebird-build\src\gpre\gpre.cpp:2353) gpre.exe!compile_module(long start_position, const char * base_directory) Line 1337 (c:\firebird-build\src\gpre\gpre.cpp:1337) gpre.exe!main(int argc, char * * argv) Line 847 (c:\firebird-build\src\gpre\gpre.cpp:847) gpre.exe!invoke_main() Line 79 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79) gpre.exe!__scrt_common_main_seh() Line 288 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288) gpre.exe!__scrt_common_main() Line 331 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331) gpre.exe!mainCRTStartup(void * __formal) Line 17 (d:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17) kernel32.dll!00007ff9edca7374() (Unknown Source:0) ntdll.dll!00007ff9efcbcc91() (Unknown Source:0)