Pavel Moravec created QPID-5651:
-----------------------------------

             Summary: [C++ broker] segfault in 
qpid::linearstore::journal::jdir::clear_dir when declaring durable queue
                 Key: QPID-5651
                 URL: https://issues.apache.org/jira/browse/QPID-5651
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: 0.28
            Reporter: Pavel Moravec
            Priority: Critical


Creating a durable queue / linear store journal for it, I get segfault.

Trivial reproducer:
1) rm -rf ~/.qpidd
2) qpidd --load-module=src/linearstore.so
3) qpid-receive -a "myQueue; {create:always, node:{durable:true}}"

backtrace is:

#0  0x00000032c44a8a79 in readdir64 () from /lib64/libc.so.6
#1  0x00007ffff6d138fa in 
qpid::linearstore::journal::jdir::clear_dir(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, bool) () from 
/data_xfs/qpid/cpp/BLD/src/linearstore.so
#2  0x00007ffff6d13125 in qpid::linearstore::journal::jdir::clear_dir(bool) () 
from /data_xfs/qpid/cpp/BLD/src/linearstore.so
#3  0x00007ffff6d10baf in 
qpid::linearstore::journal::jcntl::initialize(qpid::linearstore::journal::EmptyFilePool*,
 unsigned short, unsigned int, qpid::linearstore::journal::aio_callback*) () 
from /data_xfs/qpid/cpp/BLD/src/linearstore.so
#4  0x00007ffff6d44a41 in 
qpid::linearstore::JournalImpl::initialize(qpid::linearstore::journal::EmptyFilePool*,
 unsigned short, unsigned int, qpid::linearstore::journal::aio_callback*) () 
from /data_xfs/qpid/cpp/BLD/src/linearstore.so
#5  0x00007ffff6d692fe in 
qpid::linearstore::JournalImpl::initialize(qpid::linearstore::journal::EmptyFilePool*,
 unsigned short, unsigned int) () from /data_xfs/qpid/cpp/BLD/src/linearstore.so
#6  0x00007ffff6d5a986 in 
qpid::linearstore::MessageStoreImpl::create(qpid::broker::PersistableQueue&, 
qpid::framing::FieldTable const&) () from 
/data_xfs/qpid/cpp/BLD/src/linearstore.so
#7  0x00007ffff7bdb413 in 
qpid::broker::MessageStoreModule::create(qpid::broker::PersistableQueue&, 
qpid::framing::FieldTable const&)
    () from /data_xfs/qpid/cpp/BLD/src/libqpidbroker.so.2
#8  0x00007ffff7b529e1 in qpid::broker::Queue::create() () from 
/data_xfs/qpid/cpp/BLD/src/libqpidbroker.so.2
#9  0x00007ffff7beb81d in 
qpid::broker::QueueRegistry::declare(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
qpid::broker::QueueSettings const&, boost::shared_ptr<qpid::broker::Exchange>, 
bool, qpid::broker::OwnershipToken const*, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >) () from 
/data_xfs/qpid/cpp/BLD/src/libqpidbroker.so.2





--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to