Author

Topic: help with core dump? (Read 1201 times)

legendary
Activity: 1540
Merit: 1002
April 18, 2011, 10:26:29 AM
#1
Hey,

I have a private git version that is based on the public git with a few personal patches that should be fairly innocuous and everything was just fine. I have a few remote miners working with this daemon, and the big change I did is that I don't need the miner login to match the rpcuser (but still need to correct password), so I can log which miner is doing the getworks. I've also got everyone working over ssl.

But since yesterday, for some reason, bitcoind keeps dying out of the blue. I grabbed a core dump and I wonder if anyone can help me here.

I've since updated to the latest git (bf3a0902ef98365d803e4a03853dbf0f83511026) compiled locally, but same thing happens

Code:
$ gdb bitcoind core.dump.2
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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:
...
Reading symbols from /home/cn/src/bitcoin-official/bitcoind...done.
[New Thread 16830]
[New Thread 17125]
[New Thread 16662]
[New Thread 16663]
[New Thread 16670]
[New Thread 16665]
[New Thread 16667]
[New Thread 16668]
[New Thread 16669]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libgthread-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgthread-2.0.so.0
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.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/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libglib-2.0.so.0
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
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 /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Core was generated by `./bitcoind'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000656bd8 in BIO_write ()
(gdb) where
#0  0x0000000000656bd8 in BIO_write ()
#1  0x00000000004b8b02 in boost::asio::ssl::detail::openssl_operation > >::do_sync_read() ()
#2  0x00000000004b3fc7 in boost::asio::ssl::detail::openssl_operation > >::start() ()
#3  0x00000000004b4659 in unsigned long boost::asio::ssl::detail::openssl_stream_service::read_some >, boost::asio::mutable_buffers_1>(boost::asio::ssl::detail::openssl_stream_service::impl_struct*&, boost::asio::basic_stream_socket >&, boost::asio::mutable_buffers_1 const&, boost::system::error_code&) ()
#4  0x00000000004b8955 in boost::iostreams::detail::indirect_streambuf, std::allocator, boost::iostreams::bidirectional>::underflow() ()
#5  0x00007fcbf8d8683e in std::basic_istream >& std::getline, std::allocator >(std::basic_istream >&, std::basic_string, std::allocator >&, char) () from /usr/lib/libstdc++.so.6
#6  0x000000000048e937 in getline, std::allocator > (stream=...)
    at /usr/include/c++/4.4/bits/basic_string.h:2543
#7  ReadHTTPStatus (stream=...) at rpc.cpp:1645
#8  0x000000000049815a in ReadHTTP (stream=..., mapHeadersRet=..., strMessageRet=...) at rpc.cpp:1683
#9  0x00000000004ed0de in thread_proxy ()
#10 0x00007fcbf82cd9ca in start_thread () from /lib/libpthread.so.0
#11 0x00007fcbf85ca6fd in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()
(gdb)
Jump to: