linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #04745
[Bug 735512] Re: (0.782)high single threaded cpu usage and no traffic after a period of time
The second thread began to consume more CPU.
(gdb) thread apply 5 bt
Thread 5 (Thread 13200.0x20bc):
#0 0x009553a9 in __atomic_flag_wait_explicit ()
#1 0x009147c6 in std::__atomic0::__atomic_base<long>::fetch_add (
this=0xcb23dc, __i=1, __m=std::memory_order_seq_cst)
at e:/dcdev/compiler/mingw/bin/../lib/gcc/mingw32/4.6.1/include/c++/bits/atomic_0.h:394
#2 0x009148a1 in std::__atomic0::__atomic_base<long>::operator++ (
this=0xcb23dc)
at e:/dcdev/compiler/mingw/bin/../lib/gcc/mingw32/4.6.1/include/c++/bits/atomic_0.h:216
#3 0x005ac38a in dcpp::BufferedSocket::BufferedSocket (this=0xd3cab60,
aSeparator=0 '\000', v4only=false) at dcpp\BufferedSocket.cpp:49
#4 0x00786116 in dcpp::BufferedSocket::getSocket (sep=0 '\000', v4only=false)
at dcpp//BufferedSocket.h:61
#5 0x005aa1c8 in dcpp::UserConnection::accept (this=0x8fa79e8, aServer=...)
at dcpp\UserConnection.cpp:147
#6 0x0058e97a in dcpp::ConnectionManager::accept (this=0xd87430, sock=...,
secure=false) at dcpp\ConnectionManager.cpp:302
#7 0x0058e5c5 in dcpp::ConnectionManager::Server::run (this=0x40ad250)
at dcpp\ConnectionManager.cpp:238
#8 0x00790842 in dcpp::Thread::starter (p=0x40ad250) at dcpp//Thread.h:105
#9 0x763c339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
#10 0x040ad250 in operator new ()
#11 0x77859ed2 in wcscat () from C:\Windows\SysWOW64\ntdll.dll
#12 0x040ad250 in operator new ()
#13 0x77859ea5 in wcscat () from C:\Windows\SysWOW64\ntdll.dll
#14 0x00790824 in dcpp::Thread::yield() ()
#15 0x00000000 in ?? ()
(gdb)
(gdb) thread apply 5 bt full
Thread 5 (Thread 13200.0x20bc):
#0 0x009553a9 in __atomic_flag_wait_explicit ()
No symbol table info available.
#1 0x009147c6 in std::__atomic0::__atomic_base<long>::fetch_add (
this=0xcb23dc, __i=1, __m=std::memory_order_seq_cst)
at e:/dcdev/compiler/mingw/bin/../lib/gcc/mingw32/4.6.1/include/c++/bits/atomic_0.h:394
__w = 1
__g = 0x9c1c64
__p = 0xcb23dc
__r = 0
#2 0x009148a1 in std::__atomic0::__atomic_base<long>::operator++ (
this=0xcb23dc)
at e:/dcdev/compiler/mingw/bin/../lib/gcc/mingw32/4.6.1/include/c++/bits/atomic_0.h:216
No locals.
#3 0x005ac38a in dcpp::BufferedSocket::BufferedSocket (this=0xd3cab60,
aSeparator=0 '\000', v4only=false) at dcpp\BufferedSocket.cpp:49
No locals.
#4 0x00786116 in dcpp::BufferedSocket::getSocket (sep=0 '\000', v4only=false)
at dcpp//BufferedSocket.h:61
No locals.
#5 0x005aa1c8 in dcpp::UserConnection::accept (this=0x8fa79e8, aServer=...)
at dcpp\UserConnection.cpp:147
No locals.
#6 0x0058e97a in dcpp::ConnectionManager::accept (this=0xd87430, sock=...,
secure=false) at dcpp\ConnectionManager.cpp:302
now = 16381635
uc = 0x8fa79e8
#7 0x0058e5c5 in dcpp::ConnectionManager::Server::run (this=0x40ad250)
at dcpp\ConnectionManager.cpp:238
ret = {first = true, second = false}
failed = false
#8 0x00790842 in dcpp::Thread::starter (p=0x40ad250) at dcpp//Thread.h:105
t = 0x40ad250
#9 0x763c339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
No symbol table info available.
#10 0x040ad250 in operator new ()
No symbol table info available.
#11 0x77859ed2 in wcscat () from C:\Windows\SysWOW64\ntdll.dll
No symbol table info available.
#12 0x040ad250 in operator new ()
No symbol table info available.
#13 0x77859ea5 in wcscat () from C:\Windows\SysWOW64\ntdll.dll
No symbol table info available.
#14 0x00790824 in dcpp::Thread::yield() ()
No symbol table info available.
#15 0x00000000 in ?? ()
No symbol table info available.
(gdb)
bt full for the first thread:
(gdb) thread apply 8 bt full
Thread 8 (Thread 13200.0x41c0):
#0 0x009553a9 in __atomic_flag_wait_explicit ()
No symbol table info available.
#1 0x009147c6 in std::__atomic0::__atomic_base<long>::fetch_add (
this=0xcb23dc, __i=1, __m=std::memory_order_seq_cst)
at e:/dcdev/compiler/mingw/bin/../lib/gcc/mingw32/4.6.1/include/c++/bits/atomic_0.h:394
__w = 1
__g = 0x9c1c64
__p = 0xcb23dc
__r = 0
#2 0x009148a1 in std::__atomic0::__atomic_base<long>::operator++ (
this=0xcb23dc)
at e:/dcdev/compiler/mingw/bin/../lib/gcc/mingw32/4.6.1/include/c++/bits/atomic_0.h:216
No locals.
#3 0x005ac38a in dcpp::BufferedSocket::BufferedSocket (this=0x40b8f78,
aSeparator=0 '\000', v4only=false) at dcpp\BufferedSocket.cpp:49
No locals.
#4 0x00786116 in dcpp::BufferedSocket::getSocket (sep=0 '\000', v4only=false)
at dcpp//BufferedSocket.h:61
No locals.
#5 0x005aa102 in dcpp::UserConnection::connect (this=0x8f5bd98, aServer=...,
aPort=..., localPort=..., natRole=dcpp::BufferedSocket::NAT_NONE)
at dcpp\UserConnection.cpp:140
No locals.
#6 0x0058ea82 in dcpp::ConnectionManager::nmdcConnect (this=0xd87430,
aServer=..., aPort=..., aNick=..., hubUrl=..., encoding=...)
at dcpp\ConnectionManager.cpp:320
uc = 0x8f5bd98
#7 0x005a2dd3 in dcpp::NmdcHub::onLine (this=0x44d31d8, aLine=...)
at dcpp\NmdcHub.cpp:438
i = 24
j = 39
server = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xec8f154 "217.162.111.126"}}
port = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xe4bbcec "63000"}}
cmd = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xec8f0b4 "$ConnectToMe"}}
param = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x8fdac64 "#[-CRAZY-CLAX-]-nonme81 217.162.111.126:63000"}}
x = 12
#8 0x005a786e in dcpp::NmdcHub::on (this=0x44d31d8, aLine=...)
at dcpp\NmdcHub.cpp:963
No locals.
#9 0x007963c1 in dcpp::Speaker<dcpp::BufferedSocketListener>::fire<dcpp::BufferedSocketListener::X<2>, std::basic_string<char> > (this=0x40b8230, type=...,
p1=...) at dcpp//Speaker.h:60
i = {_M_current = 0x44d38c8}
l = {m = 0x40b824c, is_locked = true}
#10 0x005ad641 in dcpp::BufferedSocket::threadRead (this=0x40b8230)
at dcpp\BufferedSocket.cpp:249
left = 3524
pos = 58
l = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x4ad870c "$ConnectToMe #[-CRAZY-CLAX-]-nonme81 217.162.111.126:63000|$MyINFO $ALL newworld11 $ $0.5\021$ $11055529984$|$Quit [RO][VL][RDS]aaa|$MyINFO $ALL [RO][VL][RDS]aaa $ $28.8Kbps\001$ $25249716343$|$RevConnectTo"...}}
bufpos = 0
total = 4198
#11 0x005ae0e8 in dcpp::BufferedSocket::threadSendData (this=0x40b8230)
at dcpp\BufferedSocket.cpp:419
w = {first = true, second = true}
left = 270
done = 0
#12 0x005ae34e in dcpp::BufferedSocket::checkEvents (this=0x40b8230)
at dcpp\BufferedSocket.cpp:461
p = {first = dcpp::BufferedSocket::SEND_DATA, second = {
_M_t = {<std::_Tuple_impl<0u, dcpp::BufferedSocket::TaskData*, std::default_delete<dcpp::BufferedSocket::TaskData> >> = {<std::_Tuple_impl<1u, std::default_delete<dcpp::BufferedSocket::TaskData> >> = {<std::_Tuple_impl<2u>> = {<No data fields>}, <std::_Head_base<1u, std::default_delete<dcpp::BufferedSocket::TaskData>, true>> = {<std::default_delete<dcpp::BufferedSocket::TaskData>> = {<
No data fields>}, <No data fields>}, <No data fields>}, <std::_Head_base<0u, dcpp::BufferedSocket::TaskData*, false>> = {
_M_head_impl = 0x0}, <No data fields>}, <No data fields>}}}
#13 0x005ae540 in dcpp::BufferedSocket::run (this=0x40b8230)
at dcpp\BufferedSocket.cpp:490
No locals.
#14 0x00790842 in dcpp::Thread::starter (p=0x40b825c) at dcpp//Thread.h:105
t = 0x40b825c
#15 0x763c339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
No symbol table info available.
#16 0x040b825c in operator new ()
No symbol table info available.
#17 0x77859ed2 in wcscat () from C:\Windows\SysWOW64\ntdll.dll
No symbol table info available.
#18 0x040b825c in operator new ()
No symbol table info available.
#19 0x77859ea5 in wcscat () from C:\Windows\SysWOW64\ntdll.dll
No symbol table info available.
#20 0x00790824 in dcpp::Thread::yield() ()
No symbol table info available.
#21 0x00000000 in ?? ()
No symbol table info available.
(gdb)
--
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to DC++.
https://bugs.launchpad.net/bugs/735512
Title:
(0.782)high single threaded cpu usage and no traffic after a period of
time
Status in DC++:
Confirmed
Bug description:
the release 0.782 version of dc++ seems to stop all traffic, as well
as take up ~15% cpu constantly on my core i7 after a few hours of
running it, the UI still works and it is reporting my upload traffic
at 0kb/sec, the upload progress bars are there and they just sit at
the same percentage when the traffic stop happened... by this point
my downloads have either completed or have entered the 'connection
timed out' status, so there is also no download traffic
this problem does not occur on the r2445 0.785 build
To manage notifications about this bug go to:
https://bugs.launchpad.net/dcplusplus/+bug/735512/+subscriptions
References