Hello!

I'm trying to build from scratch the current master of firebird. It's
crashed on gpre_current with stacktrace:

(gdb) bt
#0  0x00007ff3db8b2418 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ff3db8b401a in __GI_abort () at abort.c:89
#2  0x000000000040c200 in fb_assert_impl (msg=0x4cfa1f "false",
    file=0x4cf9b0
"/home/roman/prj/fb/firebird/src/gpre/boot/gpre_meta_boot.cpp",
line=763, do_abort=true)
    at /home/roman/prj/fb/firebird/src/include/../common/gdsassert.h:48
#3  0x00000000004530b9 in DummyMasterImpl::getConfigManager
(this=0x772ff0 <fb_get_master_interface::dummyMaster>)
    at /home/roman/prj/fb/firebird/src/gpre/boot/gpre_meta_boot.cpp:763
#4  0x0000000000454020 in Firebird::IMasterBaseImpl<DummyMasterImpl,
Firebird::CheckStatusWrapper,
Firebird::IVersionedImpl<DummyMasterImpl,
Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IMaster> >
>::cloopgetConfigManagerDispatcher (
    self=0x772ff8 <fb_get_master_interface::dummyMaster+8>)
    at /home/roman/prj/fb/firebird/src/include/firebird/IdlFbInterfaces.h:5591
#5  0x000000000047cba9 in Firebird::IMaster::getConfigManager
(this=0x772ff8 <fb_get_master_interface::dummyMaster+8>)
    at /home/roman/prj/fb/firebird/src/include/firebird/IdlFbInterfaces.h:384
#6  0x000000000047b8b6 in Config::getRootDirectory () at
/home/roman/prj/fb/firebird/src/common/config/config.cpp:378
#7  0x000000000045b91a in InitPrefix::init () at
/home/roman/prj/fb/firebird/src/yvalve/gds.cpp:3735
#8  0x000000000045c09c in Firebird::InitMutex<InitPrefix>::init
(this=0x777310 <initPrefix>)
    at /home/roman/prj/fb/firebird/src/include/../common/classes/init.h:179
#9  0x000000000045aa6c in GDS_init_prefix () at
/home/roman/prj/fb/firebird/src/yvalve/gds.cpp:3855
#10 0x0000000000457369 in gds (resultString=0x7ffc7ff6df30 "",
file=0x7ffc7ff6ddec "memdebug.log")
    at /home/roman/prj/fb/firebird/src/yvalve/gds.cpp:1736
#11 0x00000000004657fa in fb_utils::getPrefix (prefType=14,
name=0x51d294 "memdebug.log")
    at /home/roman/prj/fb/firebird/src/common/utils.cpp:1107
#12 0x0000000000479b32 in (anonymous namespace)::allClean () at
/home/roman/prj/fb/firebird/src/common/classes/init.cpp:99
#13 0x0000000000479d2d in (anonymous namespace)::Cleanup::~Cleanup
(this=0x777b30 <(anonymous namespace)::global>,
    __in_chrg=<optimized out>) at
/home/roman/prj/fb/firebird/src/common/classes/init.cpp:173
#14 0x00007ff3db8b6fe8 in __run_exit_handlers (status=0,
listp=0x7ff3dbc405f8 <__exit_funcs>,
    run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#15 0x00007ff3db8b7035 in __GI_exit (status=<optimized out>) at exit.c:104
#16 0x00000000004329ac in CPR_exit (stat=0) at
/home/roman/prj/fb/firebird/src/gpre/gpre.cpp:978
#17 0x000000000043276f in main (argc=6, argv=0x7ffc7ff712c8) at
/home/roman/prj/fb/firebird/src/gpre/gpre.cpp:881

The reason is an attempt to get config manager of DummyMasterImpl. The
root of call is here

#ifdef DEBUG_GDS_ALLOC
    Firebird::AutoPtr<FILE, Firebird::FileClose> file;
   {
           Firebird::PathName name = fb_utils::getPrefix(
           Firebird::IConfigManager::DIR_LOG, "memdebug.log");
#ifdef HAVE_DLADDR

Release build is OK.

-- 
Roman Simakov

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to