[Xapian-tickets] [Xapian] #546: xapian-replicate reads from a socket without using timeouts
Xapian
nobody at xapian.org
Thu May 19 21:31:16 BST 2011
#546: xapian-replicate reads from a socket without using timeouts
--------------------+-------------------------------------------------------
Reporter: nkvoll | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
--------------------+-------------------------------------------------------
Comment(by olly):
Paste of external content (please just include such information in the
ticket unless it's really enormous, otherwise if the external content goes
away context is lost):
{{{
# ps aux | grep xapian
user 1074 0.1 0.3 26532 2112 ? S May16 4:54 xapian-
replicate -v -h [...]
# strace -p 1074
Process 1074 attached - interrupt to quit
read(3,
...
# gdb --pid 1074
GNU gdb (GDB) 7.2-ubuntu
Attaching to process 1074
Reading symbols from /usr/local/bin/xapian-replicate...done.
Reading symbols from /usr/local/lib/libxapian.so.22...done.
Loaded symbols for /usr/local/lib/libxapian.so.22
0x00007f04914db710 in read () from /lib/libc.so.6
(gdb) bt
#0 0x00007f04914db710 in read () from /lib/libc.so.6
#1 0x00007f04924b8135 in read (this=0x15472f0, min_len=61,
end_time=<value optimized out>) at /usr/include/bits/unistd.h:45
#2 RemoteConnection::read_at_least (this=0x15472f0, min_len=61,
end_time=<value optimized out>) at net/remoteconnection.cc:130
#3 0x00007f04924b9b7c in RemoteConnection::get_message_chunk (this=0x3,
result=..., at_least=140735456284160, end_time=0) at
net/remoteconnection.cc:572
#4 0x00007f0492419c4e in
ChertDatabaseReplicator::process_changeset_chunk_blocks (this=<value
optimized out>, tablename=<value optimized out>, buf=..., conn=...,
end_time=<value optimized out>, changes_fd=-1) at
backends/chert/chert_databasereplicator.cc:205
#5 0x00007f049241af60 in
ChertDatabaseReplicator::apply_changeset_from_conn (this=<value optimized
out>, conn=..., end_time=<value optimized out>, valid=<value optimized
out>) at backends/chert/chert_databasereplicator.cc:353
#6 0x00007f04923b6596 in
Xapian::DatabaseReplica::Internal::apply_next_changeset (this=0x1543f50,
info=0x7fff86e12790, reader_close_time=30) at api/replication.cc:583
#7 0x00007f04923b6d7b in Xapian::DatabaseReplica::apply_next_changeset
(this=<value optimized out>, info=0x7fff86e10e00, reader_close_time=4096)
at api/replication.cc:280
#8 0x00007f04924c2e43 in ReplicateTcpClient::update_from_master
(this=<value optimized out>, path=<value optimized out>, masterdb=...,
info=..., reader_close_time=<value optimized out>) at
net/replicatetcpclient.cc:60
#9 0x0000000000401a93 in main (argc=<value optimized out>,
argv=0x7fff86e12b08) at bin/xapian-replicate.cc:146
(gdb)
}}}
--
Ticket URL: <http://trac.xapian.org/ticket/546#comment:3>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list