On 06/24/2015 07:59 PM, Adriano dos Santos Fernandes wrote:
> Crashs with clang ang gcc. I.e. it's not compiler issue. That's good. > A sleep before the "system" call does not help, but manually calling the > command does not produce problem. Sooner of all environment affects results of the run. Did you try to export same vars that are set by make (like FIREBIRD)? > Here is core analysis: > warning: Could not load shared library symbols for 2 libraries, e.g. > ../../gen/Debug/firebird/intl/libfbintl.so. > Use the "info sharedlibrary" command to see the complete listing. And why does gdb not read symbols from intl library? What else library is problematic? > (gdb) t 3 > [Switching to thread 3 (Thread 0x2ba58222be00 (LWP 25739))] > #0 0x00002ba583325cf7 in sched_yield () from > /lib/x86_64-linux-gnu/libc.so.6 > (gdb) bt > #0 0x00002ba583325cf7 in sched_yield () from > /lib/x86_64-linux-gnu/libc.so.6 > #1 0x00002ba582784a23 in Thread::yield () at > /home/asfernandes/fb/dev/trunk.git/src/common/ThreadStart.cpp:243 > #2 0x00002ba5826e8564 in Why::Dispatcher::shutdown > (this=0x2ba582211598, userStatus=0x7fff0af489a0, timeout=36000000, > reason=-7) at /home/asfernandes/fb/dev/trunk.git/src/yvalve/why.cpp:5810 > #3 0x00002ba5826dff12 in fb_shutdown (timeout=5000, reason=-7) at > /home/asfernandes/fb/dev/trunk.git/src/yvalve/why.cpp:3716 > #4 0x00002ba5826b95d8 in Firebird::PluginManager::unregisterModule > (this=0x2ba582b1aa60 > <Why::MasterImplementation::getPluginManager()::manager>, > cleanup=0x2ba582318928) > at /home/asfernandes/fb/dev/trunk.git/src/yvalve/PluginManager.cpp:1053 > #5 0x00002ba5826c4fb4 in > Firebird::IPluginManagerBaseImpl<Firebird::PluginManager, > Firebird::CheckStatusWrapper, > Firebird::IVersionedImpl<Firebird::PluginManager, > Firebird::CheckStatusWrapper, > Firebird::Inherit<Firebird::IPluginManager> > >> ::cloopunregisterModuleDispatcher (self=0x2ba582b1aa68 > <Why::MasterImplementation::getPluginManager()::manager+8>, > cleanup=0x2ba582318928) > at > /home/asfernandes/fb/dev/trunk.git/src/include/firebird/IdlFbInterfaces.h:6168 > #6 0x00002ba585fe9c06 in ?? () > #7 0x00002ba582318928 in ?? () > #8 0x00002ba582b1aa68 in > Why::MasterImplementation::getPluginManager()::manager () from > /home/asfernandes/fb/dev/trunk.git/gen/Debug/firebird/bin/../lib/libfbclient.so.2 Strange that we see no file/line info here and in frame 13. From generic POV looks like what is called here is a ctor for static variable manager in getPluginManager() function. But why is ctor of PluginManager (PluginManager.cpp, 989) is called recursively? And why do we not see symbols here - ctor is located in libfbclient which seems to be loaded. > #9 0x00007fff0af48c10 in ?? () > #10 0x00002ba585fe9d0a in ?? () > #11 0x00007fff0af48c00 in ?? () > #12 0x00002ba582318920 in ?? () > #13 0x00002ba582b1aa68 in > Why::MasterImplementation::getPluginManager()::manager () from > /home/asfernandes/fb/dev/trunk.git/gen/Debug/firebird/bin/../lib/libfbclient.so.2 > #14 0x00002ba58222f328 in ?? () > #15 0x00007fff0af48c20 in ?? () > #16 0x0000000000000000 in ?? () > ---------------- Sorry, no idea how to reproduce this... Alex. ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
