Hi!
I'm trying to run the official tests with the debug build and memory
corruptions was happening. Previously I already fixed a assert problem
found in this way.
It seems important to (also) run the tests with the debug build.
With master, there is this error:
0x0000000000499272 in Firebird::LinkedList::getElement (from=0x74b7a0
<Firebird::MemPool::init()::mpBuffer+32>) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:1488
1488 *from = rc->next;
(gdb) bt
#0 0x0000000000499272 in Firebird::LinkedList::getElement
(from=0x74b7a0 <Firebird::MemPool::init()::mpBuffer+32>) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:1488
#1 0x0000000000497ea7 in Firebird::FreeObjects<Firebird::LinkedList,
Firebird::LowLimits>::allocateBlock (this=0x74b788
<Firebird::MemPool::init()::mpBuffer+8>, pool=0x74b780
<Firebird::MemPool::init()::mpBuffer>, from=0,
size=@0x7fffc7ffe3e0: 48) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:1581
#2 0x00000000004961c2 in Firebird::MemPool::alloc (this=0x74b780
<Firebird::MemPool::init()::mpBuffer>, from=0, length=@0x7fffc7ffe3e0:
48, flagRedirect=true)
at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2147
#3 0x000000000049676c in Firebird::MemPool::allocate2 (this=0x74b780
<Firebird::MemPool::init()::mpBuffer>, from=0, size=@0x7fffc7ffe440: 32,
fileName=0x4ec135
"/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/classes/array.h",
line=475) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2202
#4 0x00000000004968a0 in Firebird::MemPool::allocate (this=0x74b780
<Firebird::MemPool::init()::mpBuffer>, size=32, file=0x4ec135
"/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/classes/array.h",
line=475)
at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2231
#5 0x0000000000496c1e in Firebird::MemoryPool::allocate (this=0x74b750
<Firebird::MemoryPool::init()::mpBuffer>, size=32, file=0x4ec135
"/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/classes/array.h",
line=475)
at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2700
#6 0x000000000042be19 in Firebird::Array<Rrq::rrq_repeat,
Firebird::EmptyStorage<Rrq::rrq_repeat> >::ensureCapacity
(this=0x7fffed3ef418, newcapacity=1, preserve=true)
at
/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/../common/classes/array.h:475
#7 0x000000000042bbc5 in Firebird::Array<Rrq::rrq_repeat,
Firebird::EmptyStorage<Rrq::rrq_repeat> >::Array (this=0x7fffed3ef418,
p=..., InitialCapacity=1)
at
/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/../common/classes/array.h:94
#8 0x000000000042b99a in Rrq::Rrq (this=0x7fffed3ef320, rpt=1) at
/home/asfernandes/fb/dev/firebird-master.git/src/remote/../remote/remote.h:393
#9 0x0000000000436a1b in rem_port::compile (this=0x7fffdc10b050,
compileL=0x7fffec4e3508, sendL=0x7fffec4e2de8) at
/home/asfernandes/fb/dev/firebird-master.git/src/remote/server/server.cpp:2721
#10 0x0000000000432d47 in process_packet (port=0x7fffdc10b050,
sendL=0x7fffec4e2de8, receive=0x7fffec4e3370, result=0x7fffc7ffed28) at
/home/asfernandes/fb/dev/firebird-master.git/src/remote/server/server.cpp:4591
#11 0x0000000000445d6e in loopThread () at
/home/asfernandes/fb/dev/firebird-master.git/src/remote/server/server.cpp:6256
#12 0x000000000046eca9 in (anonymous namespace)::ThreadArgs::run
(this=0x7fffc7ffede8) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/ThreadStart.cpp:78
#13 0x000000000046ebb8 in threadStart (arg=0x7ffff7fb97d0) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/ThreadStart.cpp:93
#14 0x00007ffff62516db in start_thread (arg=0x7fffc7fff700) at
pthread_create.c:463
#15 0x00007ffff5f7a88f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
I suspect about commit ca0c2823c3298431b9a1659844948165b50d3b5d and
revert to bdb7942a5232602fdbfe7d8b8803adf9fd8cbf58 and now the crash is
this:
#0 Firebird::MemMediumHunk::decrUsage (this=0xffffa2221a2e9434) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:488
#1 0x0000000000494d45 in Firebird::DoubleLinkedList::decrUsage
(this=0x74b9f8 <Firebird::MemPool::init()::mpBuffer+680>,
hunk=0xffffa2221a2e9434, pool=0x74b750
<Firebird::MemPool::init()::mpBuffer>)
at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:1714
#2 0x0000000000494d15 in Firebird::DoubleLinkedList::putElement
(this=0x74b9f8 <Firebird::MemPool::init()::mpBuffer+680>, to=0x74b9e0
<Firebird::MemPool::init()::mpBuffer+656>, block=0x7ffff7fb6100)
at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:1709
#3 0x0000000000498394 in
Firebird::FreeObjects<Firebird::DoubleLinkedList,
Firebird::MediumLimits>::deallocateBlock (this=0x74b8d8
<Firebird::MemPool::init()::mpBuffer+392>, blk=0x7ffff7fb6100)
at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:1507
#4 0x0000000000495ae0 in Firebird::MemPool::releaseBlock (this=0x74b750
<Firebird::MemPool::init()::mpBuffer>, block=0x7ffff7fb6100) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2228
#5 0x0000000000496729 in Firebird::MemPool::release
(object=0x7ffff7fb6120, flagDecr=true) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2184
#6 0x000000000049698a in Firebird::MemPool::deallocate
(block=0x7ffff7fb6120) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2456
#7 0x0000000000496965 in Firebird::MemPool::globalFree
(block=0x7ffff7fb6120) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2444
#8 0x0000000000494c85 in Firebird::MemoryPool::globalFree
(block=0x7ffff7fb6120) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/classes/alloc.cpp:2585
#9 0x0000000000412855 in operator delete[] (mem=0x7ffff7fb6120) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/classes/alloc.h:351
#10 0x0000000000412d0a in Firebird::DynamicVector<11u>::save
(this=0x7fffc5851eb8, length=18, status=0x7ffff7f87cd8,
warningMode=false) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/StatusHolder.h:82
#11 0x0000000000410b14 in
Firebird::BaseStatus<Firebird::LocalStatus>::setErrors2
(this=0x7fffc5851ea0, length=18, value=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/../common/StatusHolder.h:180
#12 0x0000000000411ac6 in
Firebird::IStatusBaseImpl<Firebird::LocalStatus,
Firebird::CheckStatusWrapper,
Firebird::IDisposableImpl<Firebird::LocalStatus,
Firebird::CheckStatusWrapper,
Firebird::Inherit<Firebird::IVersionedImpl<Firebird::LocalStatus,
Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IStatus> > > >
>::cloopsetErrors2Dispatcher (self=0x7fffc5851ea8, length=18,
value=0x7ffff7f87cd8)
at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:5881
#13 0x0000000000414666 in Firebird::IStatus::setErrors2
(this=0x7fffc5851ea8, length=18, value=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:256
#14 0x000000000041359b in
Firebird::BaseStatusWrapper<Firebird::CheckStatusWrapper>::setErrors2
(this=0x7fffc5851e78, length=18, value=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/Interface.h:195
#15 0x0000000000413fd6 in
Firebird::IStatusBaseImpl<Firebird::CheckStatusWrapper,
Firebird::CheckStatusWrapper,
Firebird::IDisposableImpl<Firebird::CheckStatusWrapper,
Firebird::CheckStatusWrapper,
Firebird::Inherit<Firebird::IVersionedImpl<Firebird::CheckStatusWrapper,
Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IStatus> > > >
>::cloopsetErrors2Dispatcher (self=0x7fffc5851e80, length=18,
value=0x7ffff7f87cd8)
at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:5881
#16 0x00007ffff7710636 in Firebird::IStatus::setErrors2
(this=0x7fffc5851e80, length=18, value=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:256
#17 0x00007ffff770f4ab in
Firebird::BaseStatusWrapper<Firebird::CheckStatusWrapper>::setErrors2
(this=0x7fffc5851ae0, length=18, value=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/Interface.h:195
#18 0x00007ffff770ffa6 in
Firebird::IStatusBaseImpl<Firebird::CheckStatusWrapper,
Firebird::CheckStatusWrapper,
Firebird::IDisposableImpl<Firebird::CheckStatusWrapper,
Firebird::CheckStatusWrapper,
Firebird::Inherit<Firebird::IVersionedImpl<Firebird::CheckStatusWrapper,
Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IStatus> > > >
>::cloopsetErrors2Dispatcher (self=0x7fffc5851ae8, length=18,
value=0x7ffff7f87cd8)
at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:5881
#19 0x00007ffff37bc5c6 in Firebird::IStatus::setErrors2
(this=0x7fffc5851ae8, length=18, value=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:256
#20 0x00007ffff37bb54b in
Firebird::BaseStatusWrapper<Firebird::CheckStatusWrapper>::setErrors2
(this=0x7fffc5851870, length=18, value=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/Interface.h:195
#21 0x00007ffff3d792cc in fb_utils::setIStatus (to=0x7fffc5851870,
from=0x7ffff7f87cd8) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/utils.cpp:1199
#22 0x00007ffff3d538d8 in Firebird::Exception::stuffException
(this=0x7fffc0000d90, status_vector=0x7fffc5851870) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/fb_exception.cpp:41
#23 0x00007ffff399f9f8 in transliterateException (tdbb=0x7fffc5851680,
ex=..., vector=0x7fffc5851870, func=0x7ffff3debc0b
"JStatement::prepare") at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/jrd.cpp:1169
#24 0x00007ffff39b8898 in Jrd::JAttachment::prepare
(this=0x7fffecf45860, user_status=0x7fffc5851870, apiTra=0x7fffecf457a8,
stmtLength=239, sqlStmt=0x7ffff7fb7930 '\335' <repeats 199 times>,
<incomplete sequence \335>..., dialect=3,
flags=71) at
/home/asfernandes/fb/dev/firebird-master.git/src/jrd/jrd.cpp:5160
#25 0x00007ffff39cf44a in
Firebird::IAttachmentBaseImpl<Jrd::JAttachment,
Firebird::CheckStatusWrapper,
Firebird::IReferenceCountedImpl<Jrd::JAttachment,
Firebird::CheckStatusWrapper,
Firebird::Inherit<Firebird::IVersionedImpl<Jrd::JAttachment,
Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IAttachment> >
> > >::cloopprepareDispatcher (self=0x7fffecf45868,
status=0x7fffc5851ae8, tra=0x7fffecf457a8, stmtLength=239,
sqlStmt=0x7ffff7fb7930 '\335' <repeats 199 times>, <incomplete
sequence \335>..., dialect=3, flags=71) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:9917
#26 0x00007ffff77853cd in
Firebird::IAttachment::prepare<Firebird::CheckStatusWrapper>
(this=0x7fffecf45868, status=0x7fffc5851ae0, tra=0x7fffecf457a8,
stmtLength=239,
sqlStmt=0x7ffff7fb7930 '\335' <repeats 199 times>, <incomplete
sequence \335>..., dialect=3, flags=71) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:2228
#27 0x00007ffff7765a04 in Why::YAttachment::prepare
(this=0x7fffed38f650, status=0x7fffc5851ae0, transaction=0x7fffee284f88,
stmtLength=239, sqlStmt=0x7ffff7fb7930 '\335' <repeats 199 times>,
<incomplete sequence \335>..., dialect=3,
flags=71) at
/home/asfernandes/fb/dev/firebird-master.git/src/yvalve/why.cpp:5357
#28 0x00007ffff77b0f7a in
Firebird::IAttachmentBaseImpl<Why::YAttachment,
Firebird::CheckStatusWrapper,
Firebird::IReferenceCountedImpl<Why::YAttachment,
Firebird::CheckStatusWrapper,
Firebird::Inherit<Firebird::IVersionedImpl<Why::YAttachment,
Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IAttachment> >
> > >::cloopprepareDispatcher (self=0x7fffed38f658,
status=0x7fffc5851e80, tra=0x7fffee284f88, stmtLength=239,
sqlStmt=0x7ffff7fb7930 '\335' <repeats 199 times>, <incomplete
sequence \335>..., dialect=3, flags=71) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:9917
#29 0x000000000045551d in
Firebird::IAttachment::prepare<Firebird::CheckStatusWrapper>
(this=0x7fffed38f658, status=0x7fffc5851e78, tra=0x7fffee284f88,
stmtLength=239,
sqlStmt=0x7ffff7fb7930 '\335' <repeats 199 times>, <incomplete
sequence \335>..., dialect=3, flags=71) at
/home/asfernandes/fb/dev/firebird-master.git/src/include/firebird/IdlFbInterfaces.h:2228
#30 0x000000000043f0cc in rem_port::prepare_statement
(this=0x7fffec524550, prepareL=0x7ffff7ea5378, sendL=0x7ffff7ea4ae8) at
/home/asfernandes/fb/dev/firebird-master.git/src/remote/server/server.cpp:4468
#31 0x00000000004333e1 in process_packet (port=0x7fffec524550,
sendL=0x7ffff7ea4ae8, receive=0x7ffff7ea5070, result=0x7fffc5852d28) at
/home/asfernandes/fb/dev/firebird-master.git/src/remote/server/server.cpp:4772
#32 0x0000000000445c5e in loopThread () at
/home/asfernandes/fb/dev/firebird-master.git/src/remote/server/server.cpp:6245
#33 0x000000000046eb19 in (anonymous namespace)::ThreadArgs::run
(this=0x7fffc5852de8) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/ThreadStart.cpp:78
#34 0x000000000046ea28 in threadStart (arg=0x7ffff7fbebf8) at
/home/asfernandes/fb/dev/firebird-master.git/src/common/ThreadStart.cpp:93
#35 0x00007ffff62516db in start_thread (arg=0x7fffc5853700) at
pthread_create.c:463
#36 0x00007ffff5f7a88f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Adriano
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel