-=| Alex Peshkoff, Fri, Apr 29, 2011 at 01:26:28PM +0400 |=-
>  On 04/29/11 12:11, Damyan Ivanov wrote:
> > Sorry if I am impatient :) I wanted to try the new synchronization 
> > code on the Debian build daemons (3.0 so far supported only 
> > x86/amd64).
> 
> Should build now - revision 52840.

Thanks! I went a but further, to revision 52857, and the build stops 
at the invocation of build_file. There it sits waiting for a futex. 
Backtrace attached.


GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/bin/build_file...done.
Attaching to program: 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/bin/build_file,
 process 3031
Reading symbols from 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/lib/libfbclient.so.2...done.
Loaded symbols for 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/lib/libfbclient.so.2
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 0x2b7dc1784700 (LWP 3033)]
[New Thread 0x2b7dc1573700 (LWP 3032)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/plugins/libEngine12.so...done.
Loaded symbols for 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/plugins/libEngine12.so
Reading symbols from /usr/lib/libicuuc.so.44...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libicuuc.so.44
Reading symbols from /usr/lib/libicudata.so.44...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libicudata.so.44
Reading symbols from 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/intl/libfbintl.so...done.
Loaded symbols for 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/intl/libfbintl.so
Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/plugins/libfbtrace.so...done.
Loaded symbols for 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/plugins/libfbtrace.so
0x00002b7dc0be3be5 in pthread_join () from /lib/libpthread.so.0

Thread 3 (Thread 0x2b7dc1573700 (LWP 3032)):
#0  0x00002b7dc0be9330 in sem_wait () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002b7dc01e74d8 in Firebird::SignalSafeSemaphore::enter 
(this=0x2b7dc1365948) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/classes/semaphore.cpp:95
No locals.
#2  0x00002b7dc01a5ba5 in (anonymous namespace)::shutdownThread () at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/yvalve/why.cpp:472
No locals.
#3  0x00002b7dc01cd03b in run (arg=0x2b7dc1365988) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/ThreadStart.cpp:101
No locals.
#4  (anonymous namespace)::threadStart (arg=0x2b7dc1365988) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/ThreadStart.cpp:116
        thread = {<Firebird::Synchronize> = {_vptr.Synchronize = 
0x2b7dc042e230, shutdownInProgress = false, sleeping = false, wakeup = false}, 
threadId = 47819114624768, nextWaiting = 0x0, prevWaiting = 0x0, lockType = 
Firebird::SYNC_NONE, lockGranted = false, lockPending = 0x0, locks = 0x0, 
description = 0x2b7dc0201101 "threadStart"}
        localArgs = {routine = 0x2b7dc01a5b90 <(anonymous 
namespace)::shutdownThread(void*)>, arg = 0x0}
#5  0x00002b7dc0be28ba in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x00002b7dc0ec83cd in clone () from /lib/libc.so.6
No symbol table info available.
#7  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 0x2b7dc1784700 (LWP 3033)):
#0  0x00002b7dc0be9be4 in __lll_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002b7dc0be5104 in _L_lock_1024 () from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002b7dc0be4f67 in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#3  0x00002b7dc017afad in enter () at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/include/../common/classes/locks.h:240
        rc = <value optimized out>
#4  MutexLockGuard () at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/include/../common/classes/locks.h:359
No locals.
#5  Why::(anonymous namespace)::TimerEntry::timeThread () at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/yvalve/MasterImplementation.cpp:437
        guard = {lock = 0x2b7dc13631e8}
        microSeconds = 0
#6  0x00002b7dc01cd03b in run (arg=0x2b7dc1365988) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/ThreadStart.cpp:101
No locals.
#7  (anonymous namespace)::threadStart (arg=0x2b7dc1365988) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/ThreadStart.cpp:116
        thread = {<Firebird::Synchronize> = {_vptr.Synchronize = 
0x2b7dc042e230, shutdownInProgress = false, sleeping = false, wakeup = false}, 
threadId = 47819116791552, nextWaiting = 0x0, prevWaiting = 0x0, lockType = 
Firebird::SYNC_NONE, lockGranted = false, lockPending = 0x0, locks = 0x0, 
description = 0x2b7dc0201101 "threadStart"}
        localArgs = {routine = 0x2b7dc017af70 <Why::(anonymous 
namespace)::TimerEntry::timeThread(void*)>, arg = 0x0}
#8  0x00002b7dc0be28ba in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x00002b7dc0ec83cd in clone () from /lib/libc.so.6
No symbol table info available.
#10 0x0000000000000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 0x2b7dc13604e0 (LWP 3031)):
#0  0x00002b7dc0be3be5 in pthread_join () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002b7dc01cd13e in Thread::waitForCompletion (thread=<value optimized 
out>) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/ThreadStart.cpp:208
        state = <value optimized out>
#2  0x00002b7dc017b174 in cleanup () at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/yvalve/MasterImplementation.cpp:399
        guard = {lock = 0x2b7dc13631e8}
#3  cleanup () at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/include/../common/classes/init.h:178
        guard = {lock = 0x2b7dc0434880}
#4  Why::shutdownTimers () at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/yvalve/MasterImplementation.cpp:532
No locals.
#5  0x00002b7dc01a00ea in (anonymous namespace)::Dispatcher::shutdown 
(this=<value optimized out>, userStatus=0x7fff31e4bb20, timeout=5000, 
reason=-7) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/yvalve/why.cpp:5485
        singleShutdown = {<Firebird::InstanceControl> = {<No data fields>}, 
instance = 0x2b7dc13691d0}
        guard = {lock = 0x2b7dc13691d0}
        status = {<Firebird::StackIface<Firebird::IStatus, 
Firebird::GlobalStorage>> = {<Firebird::DisposeIface<Firebird::IStatus, 
Firebird::GlobalStorage>> = {<Firebird::IStatus> = {<Firebird::IDisposable> = 
{_vptr.IDisposable = 0x2b7dc042bd90}, <No data fields>}, 
<Firebird::GlobalStorage> = {<No data fields>}, <No data fields>}, <No data 
fields>}, localStatus = {1, 0, 0, 64, 47819112464273, 140734030461760, 
140734030461248, 32071696, 140734030461312, 47819106782080, 9, 1428567848, 
47819091338480, 0, 140733193388072, 22321372, 47819093534284, 140734030461664, 
47819093534344, 47819093544808}, localVector = 0x7fff31e4b8c8}
        entry = {<Firebird::FpeControl> = {savedMask = {__control_word = 895, 
__unused1 = 65535, __status_word = 0, __unused2 = 65535, __tags = 65535, 
__unused3 = 65535, __eip = 2164294819, __cs_selector = 16, __opcode = 772, 
__unused4 = 0, __data_offset = 2171077568, __data_selector = 0, __unused5 = 
65535, __mxcsr = 8064}}, ref = {ptr = 0x0}, counter = 0x0}
        rc = 0
        error = {<Firebird::Arg::StatusVector> = {<Firebird::Arg::Base> = 
{implementation = 0x2b7dc1366fe8}, <No data fields>}, <No data fields>}
        hasThreads = <value optimized out>
#6  0x00002b7dc01a5b61 in fb_shutdown (timeout=<value optimized out>, 
reason=<value optimized out>) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/yvalve/why.cpp:3707
        status = {<Firebird::StackIface<Firebird::IStatus, 
Firebird::GlobalStorage>> = {<Firebird::DisposeIface<Firebird::IStatus, 
Firebird::GlobalStorage>> = {<Firebird::IStatus> = {<Firebird::IDisposable> = 
{_vptr.IDisposable = 0x2b7dc042bd90}, <No data fields>}, 
<Firebird::GlobalStorage> = {<No data fields>}, <No data fields>}, <No data 
fields>}, localStatus = {1, 0, 0, 5, 0, 0, 47819093544808, 47819157303296, 
47819159744560, 140734030461952, 47819159735000, 47819159744600, 
47819091378933, 0, 1, 47819112468512, 4294967289, 5000, 47819112468512, 3031}, 
localVector = 0x7fff31e4bb28}
#7  0x00002b7dc01800b8 in Firebird::PluginManager::unregisterModule 
(this=<value optimized out>, cleanup=0x2b7dc407b030) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/yvalve/PluginManager.cpp:905
No locals.
#8  0x00002b7dc3e4917d in ~UnloadDetectorHelper (this=0x2b7dc407b058) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/utilities/ntrace/../../jrd/../jrd/../jrd/../jrd/../jrd/../common/classes/ImplementHelper.h:213
No locals.
#9  dtor (this=0x2b7dc407b058) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/include/../common/classes/init.h:121
No locals.
#10 
Firebird::InstanceControl::InstanceLink<Firebird::GlobalPtr<Firebird::UnloadDetectorHelper,
 (Firebird::InstanceControl::DtorPriority)1>, 
(Firebird::InstanceControl::DtorPriority)1>::dtor (this=0x2b7dc407b058) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/include/../common/classes/init.h:97
No locals.
#11 0x00002b7dc3e62a33 in Firebird::InstanceControl::InstanceList::destructors 
() at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/classes/init.cpp:197
        i = 0x2b7dc407b058
        currentPriority = Firebird::InstanceControl::PRIORITY_DETECT_UNLOAD
        nextPriority = Firebird::InstanceControl::PRIORITY_REGULAR
#12 0x00002b7dc3e62be9 in allClean (this=<value optimized out>, 
__in_chrg=<value optimized out>) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/classes/init.cpp:61
No locals.
#13 (anonymous namespace)::Cleanup::~Cleanup (this=<value optimized out>, 
__in_chrg=<value optimized out>) at 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/src/common/classes/init.cpp:89
No locals.
#14 0x00002b7dc0e2f5c2 in ?? () from /lib/libc.so.6
No symbol table info available.
#15 0x00002b7dc0e2f615 in exit () from /lib/libc.so.6
No symbol table info available.
#16 0x00002b7dc0e17c54 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#17 0x0000000000401495 in _start ()
No symbol table info available.
(gdb) q
A debugging session is active.

        Inferior 1 [process 3031] will be detached.

Quit anyway? (y or n) Detaching from program: 
/tmp/buildd/firebird3.0-3.0.0~svn+52857.ds3/gen/Release/firebird/bin/build_file,
 process 3031
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to