Either I have an issue somewhere or there are several bugs around, the daemon doesn't last a lot longer then 8 hours currently:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1098427312 (LWP 19246)]
0x40803f0e in posix_memalign () from /lib/tls/libc.so.6
Current language: auto; currently c
(gdb) bt
#0 0x40803f0e in posix_memalign () from /lib/tls/libc.so.6
#1 0x40801777 in mallopt () from /lib/tls/libc.so.6
#2 0x407ff4bf in malloc () from /lib/tls/libc.so.6
#3 0x4073648e in operator new(unsigned) () from /usr/lib/libstdc++.so.5
#4 0x407215e5 in std::__default_alloc_template::allocate(unsigned) () from /usr/lib/libstdc++.so.5
#5 0x08114d00 in std::__simple_alloc >::allocate(unsigned) (__n=128) at stl_alloc.h:232
#6 0x08113121 in std::_Deque_alloc_base, true>::_M_allocate_node() (this=0x8be5a20) at stl_deque.h:409
#7 0x08114ea1 in std::deque >::_M_new_elements_at_back(unsigned) (this=0x8be5a20, __new_elems=1) at deque.tcc:729ements_at_back(unsigned) (this=0x8be5a20, __n=1) at stl_deque.h:1488
#9 0x08112fb3 in void std::deque >::_M_range_insert_aux >(std::_Deque_iterator, std::_Deque_iterator, std::_Deque_iterator, std::forward_iterator_tag) (
this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=
{_M_cur = 0x8be60dc, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}) at deque.tcc:462
#10 0x08112e9d in _M_insert_dispatch > (this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=Cannot access memory at address 0x1e097d1c
)
at stl_deque.h:1426
#11 0x081117af in insert > (this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=Cannot access memory at address 0x1e097d1c
)
at stl_deque.h:1195
#12 0x081105fc in UploadBandwidthThrottler::Entry() (this=0x8be5a08) at UploadBandwidthThrottler.cpp:404
#13 0x402bd8f4 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_gtk2-2.6.so.0
#14 0x402bd7dc in wxPthreadStart () from /usr/lib/libwx_gtk2-2.6.so.0
#15 0x4002b7d3 in start_thread () from /lib/tls/libpthread.so.0
#16 0x40875b4a in clone () from /lib/tls/libc.so.6
(gdb) bt full
#0 0x40803f0e in posix_memalign () from /lib/tls/libc.so.6
No symbol table info available.
#1 0x40801777 in mallopt () from /lib/tls/libc.so.6
No symbol table info available.
#2 0x407ff4bf in malloc () from /lib/tls/libc.so.6
No symbol table info available.
#3 0x4073648e in operator new(unsigned) () from /usr/lib/libstdc++.so.5
No symbol table info available.
#4 0x407215e5 in std::__default_alloc_template::allocate(unsigned) () from /usr/lib/libstdc++.so.5
No symbol table info available.
#5 0x08114d00 in std::__simple_alloc >::allocate(unsigned) (__n=128) at stl_alloc.h:232
__ret = (class ThrottledControlSocket **) 0x0
#6 0x08113121 in std::_Deque_alloc_base, true>::_M_allocate_node() (this=0x8be5a20) at stl_deque.h:409
No locals.
#7 0x08114ea1 in std::deque >::_M_new_elements_at_back(unsigned) (this=0x8be5a20, __new_elems=1) at deque.tcc:729
__new_nodes = 1
__i = 1
#8 0x081133b3 in std::deque >::_M_reserve_elements_at_back(unsigned) (this=0x8be5a20, __n=1) at stl_deque.h:1488
__vacancies = 0
#9 0x08112fb3 in void std::deque >::_M_range_insert_aux >(std::_Deque_iterator, std::_Deque_iterator, std::_Deque_iterator, std::forward_iterator_tag) (
this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=
{_M_cur = 0x8be60dc, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}) at deque.tcc:462
__new_finish = {_M_cur = 0x8be60dc, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}
__n = 1
#10 0x08112e9d in _M_insert_dispatchhrottledControlSocket**> > (this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=Cannot access memory at address 0x1e097d1c
)
at stl_deque.h:1426
No locals.
#11 0x081117af in insert > (this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=Cannot access memory at address 0x1e097d1c
)
at stl_deque.h:1195
No locals.
#12 0x081105fc in UploadBandwidthThrottler::Entry() (this=0x8be5a08) at UploadBandwidthThrottler.cpp:404
queueLock =
spentBytes = 0
spentOverhead = 0
sendLock =
maxSlot = 5
timeSinceLastLoop = 8
minFragSize = 1300
doubleSendSize = 2600
bytesToSpend = 38
sleepTime = 6
thisLoopTick = 663022696
TIME_BETWEEN_UPLOAD_LOOPS = 1
lastLoopTick = 663022696
realBytesToSpend = 38079
allowedDataRate = 16384
rememberedSlotCounter = 5
lastTickReachedBandwidth = 663022688
extraSleepTime = 1
sendLock =
#13 0x402bd8f4 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#14 0x402bd7dc in wxPthreadStart () from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#15 0x4002b7d3 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#16 0x40875b4a in clone () from /lib/tls/libc.so.6
No symbol table info available.
(gdb) thread apply all bt
Thread 5 (Thread 1141902256 (LWP 19250)):
#0 0xffffe410 in ?? ()
#1 0x441008d8 in ?? ()
#2 0x00010d38 in ?? ()
Thread 2 (Thread 1098427312 (LWP 19246)):
#0 0x40803f0e in posix_memalign () from /lib/tls/libc.so.6
#1 0x40801777 in mallopt () from /lib/tls/libc.so.6
#2 0x407ff4bf in malloc () from /lib/tls/libc.so.6
#3 0x4073648e in operator new(unsigned) () from /usr/lib/libstdc++.so.5
#4 0x407215e5 in std::__default_alloc_template::allocate(unsigned) () from /usr/lib/libstdc++.so.5
#5 0x08114d00 in std::__simple_alloc >::allocate(unsigned) (__n=128) at stl_alloc.h:232
#6 0x08113121 in std::_Deque_alloc_base, true>::_M_allocate_node() (this=0x8be5a20) at stl_deque.h:409
#7 0x08114ea1 in std::deque >::_M_new_elements_at_back(unsigned) (this=0x8be5a20, __new_elems=1) at deque.tcc:729
#8 0x081133b3 in std::deque >::_M_reserve_elements_at_back(unsigned) (this=0x8be5a20, __n=1) at stl_deque.h:1488
#9 0x08112fb3 in void std::deque >::_M_range_insert_aux >(std::_Deque_iterator, std::_Deque_iterator, std::_Deque_iterator, std::forward_iterator_tag) (
this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=
{_M_cur = 0x8be60dc, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}) at deque.tcc:462
#10 0x08112e9d in _M_insert_dispatch > (this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=Cannot access memory at address 0x1e097d1c
)
at stl_deque.h:1426
#11 0x081117af in insert > (this=0x8be5a20, __pos=
{_M_cur = 0x9afa77c, _M_first = 0x9afa580, _M_last = 0x9afa780, _M_node = 0x89e9268}, __first=
{_M_cur = 0x8be60d8, _M_first = 0x8be60a8, _M_last = 0x8be62a8, _M_node = 0x89e92a4}, __last=Cannot access memory at address 0x1e097d1c
)
at stl_deque.h:1195
#12 0x081105fc in UploadBandwidthThrottler::Entry() (this=0x8be5a08) at UploadBandwidthThrottler.cpp:404
#13 0x402bd8f4 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/libwx_gtk2-2.6.so.0
#14 0x402bd7dc in wxPthreadStart () from /usr/lib/libwx_gtk2-2.6.so.0
#15 0x4002b7d3 in start_thread () from /lib/tls/libpthread.so.0
#16 0x40875b4a in clone () from /lib/tls/libc.so.6
Thread 1 (Thread 1089728032 (LWP 19241)):
#0 0xffffe410 in ?? ()
#1 0xbffff5a8 in ?? ()
#2 0x0849c534 in ?? ()
#3 0x084994ac in ?? ()
#4 0x4086e551 in select () from /lib/tls/libc.so.6
#5 0x08053ea5 in CAmuledGSocketFuncTable::RunSelect() (this=0x8496470) at amuled.cpp:269
#6 0x080549e9 in CamuleDaemonApp::OnRun() (this=0x8496328) at amuled.cpp:421
#7 0x4025f436 in wxEntry(int&, char**) () from /usr/lib/libwx_gtk2-2.6.so.0
#8 0x080538a9 in main (argc=1, argv=0xbffff704) at amuled.cpp:125
#0 0x40803f0e in posix_memalign () from /lib/tls/libc.so.6
#8 0x081133b3 in std::deque >::_M_reserve_el