Skip to content

Instantly share code, notes, and snippets.

@vrtx
Created February 13, 2012 06:57
Show Gist options
  • Save vrtx/1814438 to your computer and use it in GitHub Desktop.
Save vrtx/1814438 to your computer and use it in GitHub Desktop.
(gdb) thread 20
[Switching to thread 20 (process 19295)]
0x00007fff80609be5 in std::ostream::sentry::sentry ()
(gdb) bt full
#0 0x00007fff80609be5 in std::ostream::sentry::sentry ()
No symbol table info available.
#1 0x00007fff8060b457 in std::ostream::_M_insert<long> ()
No symbol table info available.
#2 0x000000010000e77c in mongo::errnoWithDescription (x=32) at log.h:396
s = {
<std::basic_iostream<char,std::char_traits<char> >> = {
<std::basic_istream<char,std::char_traits<char> >> = {
<std::basic_ios<char,std::char_traits<char> >> = {
<std::ios_base> = {
_vptr$ios_base = 0x7fff705d89a8,
_M_precision = 6,
_M_width = 0,
_M_flags = 4098,
_M_exception = std::_S_goodbit,
_M_streambuf_state = std::_S_goodbit,
_M_callbacks = 0x0,
_M_word_zero = {
_M_pword = 0x0,
_M_iword = 0
},
_M_local_word = {{
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}, {
_M_pword = 0x0,
_M_iword = 0
}},
_M_word_size = 8,
_M_word = 0x103d1ad00,
_M_ios_locale = {
_M_impl = 0x7fff705dca90
}
},
members of std::basic_ios<char,std::char_traits<char> >:
_M_tie = 0x0,
_M_fill = 0 '\0',
_M_fill_init = false,
_M_streambuf = 0x103d1ac70,
_M_ctype = 0x7fff705dccc0,
_M_num_put = 0x7fff705dcfe0,
_M_num_get = 0x7fff705dcfd0
},
members of std::basic_istream<char,std::char_traits<char> >:
_vptr$basic_istream = 0x7fff705d8958,
_M_gcount = 0
},
<std::basic_ostream<char,std::char_traits<char> >> = {
members of std::basic_ostream<char,std::char_traits<char> >:
_vptr$basic_ostream = 0x7fff705d8980
}, <No data fields>},
members of std::basic_stringstream<char,std::char_traits<char>,std::allocator<char> >:
_M_stringbuf = {
<std::basic_streambuf<char,std::char_traits<char> >> = {
_vptr$basic_streambuf = 0x7fff705d88d0,
_M_in_beg = 0x10130a0f8 "errno:ost:270217017,localhost:27018,localhost:27019,localhost:27020,localhost:27021",
_M_in_cur = 0x10130a0f8 "errno:ost:270217017,localhost:27018,localhost:27019,localhost:27020,localhost:27021",
_M_in_end = 0x10130a0f9 "rrno:ost:270217017,localhost:27018,localhost:27019,localhost:27020,localhost:27021",
_M_out_beg = 0x10130a0f8 "errno:ost:270217017,localhost:27018,localhost:27019,localhost:27020,localhost:27021",
_M_out_cur = 0x10130a0fe "ost:270217017,localhost:27018,localhost:27019,localhost:27020,localhost:27021",
_M_out_end = 0x10130a2f8 "",
_M_buf_locale = {
_M_impl = 0x7fff705dca90
}
},
members of std::basic_stringbuf<char,std::char_traits<char>,std::allocator<char> >:
_M_mode = 24,
_M_string = {
_M_dataplus = {
<std::allocator<char>> = {
<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
members of std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_hider:
_M_p = 0x10130a0f8 "errno:ost:270217017,localhost:27018,localhost:27019,localhost:27020,localhost:27021"
}
}
}
}
#3 0x00000001000f1276 in mongo::Socket::send (this=0x101401e60, data=0x1081f3000 "??!", len=2216385, context=0x10057fd2b "say") at sock.cpp:613
t = mongo::SocketException::SEND_ERROR
ret = -1
#4 0x00000001000f6d66 in mongo::Message::send (this=0x103d1b140, p=@0x101401e50, context=0x10057fd2b "say") at message.cpp:38
No locals.
#5 0x00000001000f7239 in mongo::MessagingPort::say (this=0x101401e50, toSend=@0x103d1b140, responseTo=63) at message_port.cpp:271
No locals.
#6 0x00000001000f73d3 in mongo::MessagingPort::reply (this=0x101401e50, received=@0x103d1bbc0, response=@0x103d1b140, responseTo={x = 63}) at message_port.cpp:221
No locals.
#7 0x000000010023bd6c in mongo::replyToQuery (queryResultFlags=0, p=0x101401e50, requestMsg=@0x103d1bbc0, data=0x1053ff000, size=2216349, nReturned=17181, startingFrom=101, cursorId=0) at dbmessage.cpp:76
b = {
al = {<No data fields>},
data = 0x0,
l = 2216385,
size = 2232769
}
qr = ('mongo::QueryResult' *) 0x1081f3000
resp = {
_from = {
addressSize = 128,
sa = {
ss_len = 0 '\0',
ss_family = 0 '\0',
__ss_pad1 = "\000\000\000\000\000",
__ss_align = 0,
__ss_pad2 = '\0' <repeats 111 times>
}
},
_buf = 0x1081f3000,
_data = {
<std::_Vector_base<std::pair<char*, int>,std::allocator<std::pair<char*, int> > >> = {
_M_impl = {
<std::allocator<std::pair<char*, int> >> = {
<__gnu_cxx::new_allocator<std::pair<char*, int> >> = {<No data fields>}, <No data fields>},
members of std::_Vector_base<std::pair<char*, int>,std::allocator<std::pair<char*, int> > >::_Vector_impl:
_M_start = 0x0,
_M_finish = 0x0,
_M_end_of_storage = 0x0
}
}, <No data fields>},
_freeIt = true
}
#8 0x0000000100483ff2 in mongo::ShardedClientCursor::sendNextBatch (this=0x10120b560, r=@0x103d1b7d0, ntoreturn=0) at cursors.cpp:117
maxSize = 3145728
hasMore = false
b = {
al = {<No data fields>},
data = 0x1053ff000 "?",
l = 2216349,
size = 4194304
}
num = 17181
sendMore = true
#9 0x0000000100423aee in mongo::ShardStrategy::getMore (this=0x101106440, r=@0x103d1b7d0) at strategy_shard.cpp:114
ntoreturn = 0
id = 476493804599477065
cursor = {
px = 0x10120b560,
pn = {
pi_ = 0x10120b4d0
}
}
#10 0x0000000100476401 in mongo::Request::process (this=0x103d1b7d0, attempt=0) at request.cpp:147
op = 2005
s = ('mongo::Strategy' *) 0x101106440
iscmd = false
#11 0x000000010048e619 in mongo::ShardedMessageHandler::process (this=0x7fff5fbfef10, m=@0x103d1bbc0, p=0x101401e50, le=0x101207be0) at server.cpp:95
r = {
<boost::noncopyable_::noncopyable> = {<No data fields>},
members of mongo::Request:
_m = @0x103d1bbc0,
_d = {
m = @0x103d1bbc0,
reserved = 0x10181d810,
data = 0x10181d814 "shardtest.shardcol",
nextjsobj = 0x10181d833 "\003pid",
theEnd = 0x10181d833 "\003pid",
mark = 0x10181d814 "shardtest.shardcol"
},
_p = 0x101401e50,
_id = {
x = 63
},
_config = {
px = 0x101400350,
pn = {
pi_ = 0x101400530
}
},
_chunkManager = {
px = 0x101400740,
pn = {
pi_ = 0x101401bb0
}
},
_clientInfo = 0x101206d80,
_counter = 0x1006df6e0,
_didInit = true
}
#12 0x00000001001e1147 in mongo::pms::threadRun (inPort=0x101401e50) at message_server_port.cpp:74
le = ('mongo::LastError' *) 0x101207be0
connTicketReleaser = {
_holder = 0x1006de270
}
p = {
px = 0x101401e50
}
otherSide = {
_M_dataplus = {
<std::allocator<char>> = {
<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
members of std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_hider:
_M_p = 0x101206698 "127.0.0.1:52864"
}
}
m = {
_from = {
addressSize = 128,
sa = {
ss_len = 0 '\0',
ss_family = 0 '\0',
__ss_pad1 = "\000\000\000\000\000",
__ss_align = 0,
__ss_pad2 = '\0' <repeats 111 times>
}
},
_buf = 0x10181d800,
_data = {
<std::_Vector_base<std::pair<char*, int>,std::allocator<std::pair<char*, int> > >> = {
_M_impl = {
<std::allocator<std::pair<char*, int> >> = {
<__gnu_cxx::new_allocator<std::pair<char*, int> >> = {<No data fields>}, <No data fields>},
members of std::_Vector_base<std::pair<char*, int>,std::allocator<std::pair<char*, int> > >::_Vector_impl:
_M_start = 0x0,
_M_finish = 0x0,
_M_end_of_storage = 0x0
}
}, <No data fields>},
_freeIt = true
}
#13 0x00000001001e2940 in boost::_bi::list1<boost::_bi::value<mongo::MessagingPort*> >::operator()<void (*)(mongo::MessagingPort*), boost::_bi::list0> (this=0x101402980, f=@0x101402978, a=@0x103d1be90, unnamed_arg=0) at bind.hpp:253
No locals.
#14 0x00000001001e29a2 in boost::_bi::bind_t<void, void (*)(mongo::MessagingPort*), boost::_bi::list1<boost::_bi::value<mongo::MessagingPort*> > >::operator() (this=0x101402978) at bind_template.hpp:20
a = {<No data fields>}
#15 0x00000001001e29cd in boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(mongo::MessagingPort*), boost::_bi::list1<boost::_bi::value<mongo::MessagingPort*> > > >::run (this=0x101402790) at thread.hpp:61
No locals.
#16 0x0000000100f44460 in thread_proxy ()
No symbol table info available.
#17 0x00007fff83d9d8bf in _pthread_start ()
No symbol table info available.
#18 0x00007fff83da0b75 in thread_start ()
No symbol table info available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment