[Libtorrent-devel] rTorrent crashing after 10 seconds or so.
Kalle Alm
kalle at enrogue.com
Sun May 28 20:16:31 UTC 2006
I realized that I actually didn't compile with the right compiler.
I exported CC to gcc-3.4 instead of exporting CXX to g++-3.4.
It's been running now for about 30 minutes and no crash yet. Sorry 'bout
that. :)
-Kalle.
Kalle Alm wrote:
> Hi there,
>
> rTorrent seems dead set on crashing on my machine.
>
> I've tried:
> libsigc++-2.0.0
> libsigc++-2.0.17
>
> SVN version of rTorrent / libtorrent
> rTorrent 0.5.3 / libtorrent 0.9.3
> rTorrent 0.5.2 / libtorrent 0.9.2
> packaged (debian sarge unstable) rTorrent 0.5.1 / libtorrent 0.9.1
>
> I've compiled with:
> gcc-4.0 (yeah, saw the ml archives after and switched)
> gcc-3.4
>
> Next I'm going to compile with gcc-3.3 and see if that does it,
> however I saw someone else mention that 3.4 worked for them. I get the
> exact same error they got. A bt from gdb shows:
> #0 torrent::RequestList::has_index (this=0x817c470, index=871) at
> stl_deque.h:131
> #1 0x400d9883 in torrent::PeerConnectionLeech::receive_finished_chunk
> (this=0x817c470, index=871)
> at peer_connection_leech.cc:91
> #2 0x400b938e in
> std::for_each<__gnu_cxx::__normal_iterator<torrent::PeerConnectionBase**,
> std::vector<torrent::PeerConnectionBase*,
> std::allocator<torrent::PeerConnectionBase*> > >,
> std::binder2nd<std::mem_fun1_t<void, torrent::PeerConnectionBase, int>
> > > (__first={_M_current = 0x816f808}, __last={_M_current =
> 0x816f818}, __f=
> {<std::unary_function<torrent::PeerConnectionBase*,void>> = {<No
> data fields>}, op =
> {<std::binary_function<torrent::PeerConnectionBase*,int,void>> = {<No
> data fields>}, _M_f = {__pfn = 0x1d, __delta = 0}}, value = 871}) at
> stl_function.h:792
> #3 0x400b89ea in torrent::ConnectionList::send_finished_chunk
> (this=0x98, index=135775344) at connection_list.cc:167
> #4 0x400cc1f1 in torrent::DownloadWrapper::receive_hash_done
> (this=0x80f9e18, handle=
> {m_chunk = 0x811fefc, m_writable = false, m_errorNumber =
> {static e_access = 13, static e_again = 11, static e_connreset = 104,
> static e_connaborted = 103, static e_deadlk = 35, static e_noent = 2,
> static e_notdir = 20, static e_intr = 4, m_errno = 0}}, h=@0xbffff7f4)
> at download_wrapper.cc:400
> #5 0x400adc61 in torrent::HashQueue::check (this=0x80d2668,
> force=false) at functional.h:451
> #6 0x400ade41 in torrent::HashQueue::work (this=0x80d2668) at
> hash_queue.cc:148
> #7 0x400adf6e in rak::mem_fn0_t<torrent::HashQueue, void>::operator()
> (this=0x80d2690) at functional_fun.h:144
> #8 0x4009fe1d in torrent::perform () at functional_fun.h:85
> #9 0x0808f36e in core::PollManagerEPoll::poll (this=0x80d20f0,
> timeout={m_time = 36709}) at poll_manager_epoll.cc:67
> #10 0x08058dea in main (argc=1, argv=0xbffffb04) at main.cc:254
>
>
> The actual crash looks like this:
> Caught Segmentation fault, dumping stack:
> 0 rtorrent [0x8057094]
> 1 rtorrent [0x8064f3f]
> 2 [0xffffe420]
> 3
> /usr/local/lib/libtorrent.so.7(_ZN7torrent11RequestList9has_indexEj+0x1e)
> [0x400df5ae]
> 4
> /usr/local/lib/libtorrent.so.7(_ZN7torrent19PeerConnectionLeech22receive_finished_chunkEi+0x53)
> [0x400d9883]
> 5
> /usr/local/lib/libtorrent.so.7(_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPPN7torrent18PeerConnectionBaseESt6vectorIS4_SaIS4_EEEESt9binder2ndISt10mem_fun1_tIvS3_iEEET0_T_SF_SE_+0x6e)
> [0x400b938e]
> 6
> /usr/local/lib/libtorrent.so.7(_ZN7torrent14ConnectionList19send_finished_chunkEj+0x5a)
> [0x400b89ea]
> 7
> /usr/local/lib/libtorrent.so.7(_ZN7torrent15DownloadWrapper17receive_hash_doneENS_11ChunkHandleESs+0x371)
> [0x400cc1f1]
> 8 /usr/local/lib/libtorrent.so.7(_ZN7torrent9HashQueue5checkEb+0x161)
> [0x400adc61]
> 9 /usr/local/lib/libtorrent.so.7(_ZN7torrent9HashQueue4workEv+0x41)
> [0x400ade41]
> 10
> /usr/local/lib/libtorrent.so.7(_ZN3rak9mem_fn0_tIN7torrent9HashQueueEvEclEv+0x3e)
> [0x400adf6e]
> 11 /usr/local/lib/libtorrent.so.7(_ZN7torrent7performEv+0xfd)
> [0x4009fe1d]
> 12 rtorrent [0x808f5f5]
> 13 rtorrent [0x8058dea]
> 14 /lib/tls/libc.so.6(__libc_start_main+0xd0) [0x404b3eb0]
> 15 rtorrent(_ZN7torrent18set_max_open_filesEj+0x95) [0x80510a1]
>
> Any thoughts on what I might be doing wrong?
>
> -Kalle.
>
> _______________________________________________
> Libtorrent-devel mailing list
> Libtorrent-devel at rakshasa.no
> http://rakshasa.no/mailman/listinfo/libtorrent-devel
>
More information about the Libtorrent-devel
mailing list