How do I check the LANG environment variable? I mean, what is it and where do I found it?
About the launch of aMule, it is launched from the terminal: first I launch gdb and then I launch aMule.
I report down here another example of crash; what I can see is the window that become completely white with the except of the title bar. This time I post all the code, from the launch.
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-unknown-linux-gnu"...
(gdb) run
Starting program: /usr/bin/amule
[Thread debugging using libthread_db enabled]
(process:2589): Gdk-WARNING **: locale not supported by C library
(process:2589): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
[New Thread 0x7f11e5633750 (LWP 2589)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread 0x40d87950 (LWP 2593)]
HTTP download thread started
ListenSocket: Ok.
[New Thread 0x41588950 (LWP 2595)]
Loading temp files from /media/lacreatura/Mule Temp.
Loading PartFile 81 of 81
All PartFiles Loaded.
Adding file /media/lacreatura/Mule Temp/028.part.met to shares
[...]
Adding file /media/lacreatura/Mule Temp/091.part.met to shares
No shareable files found in directory: /media/lacreatura/Mule Shared/TNG S4
[New Thread 0x41d89950 (LWP 2596)]
[New Thread 0x4258a950 (LWP 2597)]
Host: amule.sourceforge.net:80
URL: http://amule.sourceforge.net/lastversion
Response: 200 (Error: 0)
Download size: 6
HTTP download thread ended
[Thread 0x40d87950 (LWP 2593) exited]
[Thread 0x41d89950 (LWP 2596) exited]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f11e5633750 (LWP 2589)]
0x000000000045f3e8 in __gnu_debug::_Safe_iterator<std::__norm::_List_const_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::base (this=0x71)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.h:312
312 base() const { return _M_current; }
(gdb) bt
#0 0x000000000045f3e8 in __gnu_debug::_Safe_iterator<std::__norm::_List_const_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::base (this=0x71)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.h:312
#1 0x0000000000461e83 in __gnu_debug::_Safe_iterator<std::__norm::_List_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::_M_invalidate_single (this=0x7fffed76d520)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.tcc:139
#2 0x00000000004bf9b5 in __gnu_debug::_Safe_iterator<std::__norm::_List_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::_M_invalidate (this=0x7fffed76d520)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.tcc:114
#3 0x00000000007066ce in std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> >::erase (this=0x2401e28, __position=
{<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x7fffed76d520, _M_version = 37756456, _M_prior = 0x5cf062c, _M_next = 0x7fffed76d290}, _M_current = {_M_node = 0x432cd8}})
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/list:348
#4 0x00000000006e2aed in CPartFile::RemoveBlockFromList (this=0x2401a90,
---Type <return> to continue, or q <return> to quit---
start=97280000, end=97464319) at PartFile.cpp:2188
#5 0x00000000004b7228 in CUpDownClient::ProcessBlockPacket (this=0x30951c0,
packet=0x33b4690 "Ym��\211:�I\017��&���G", size=10741, packed=true,
largeblocks=false) at DownloadClient.cpp:1031
#6 0x000000000049863d in CClientTCPSocket::ProcessExtPacket (this=0x352fd40,
buffer=0x33b4690 "Ym��\211:�I\017��&���G", size=10741, opcode=64 '@')
at ClientTCPSocket.cpp:1409
#7 0x00000000004a628b in CClientTCPSocket::PacketReceived (this=0x352fd40,
packet=0x349ad90) at ClientTCPSocket.cpp:2031
#8 0x0000000000507d17 in CEMSocket::OnReceive (this=0x352fd40, nErrorCode=0)
at EMSocket.cpp:328
#9 0x000000000049ceca in CClientTCPSocket::OnReceive (this=0x352fd40,
nErrorCode=0) at ClientTCPSocket.cpp:1933
#10 0x00000000004a7cc8 in CClientTCPSocketHandler::ClientTCPSocketHandler (
this=0xe24040, event=@0x352a570) at ClientTCPSocket.cpp:95
#11 0x00007f11e4364b99 in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib/libwx_baseu-2.8.so.0
#12 0x00007f11e4365d74 in wxEventHashTable::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#13 0x00007f11e4365e67 in wxEvtHandler::ProcessEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#14 0x00007f11e4365038 in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#15 0x00007f11e42d506e in wxAppConsole::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
#16 0x00007f11e4a8a47b in wxAppBase::ProcessIdle ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0x00007f11e49e9914 in wxapp_idle_callback ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0x00007f11e1b8eac2 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#19 0x00007f11e1b9223d in g_main_context_iterate ()
from /usr/lib/libglib-2.0.so.0
#20 0x00007f11e1b9276d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0x00007f11e30bf197 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x00007f11e4a00f18 in wxEventLoop::Run ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#23 0x00007f11e4a8a30b in wxAppBase::MainLoop ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#24 0x00007f11e430a0ed in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#25 0x0000000000634ae7 in main (argc=1, argv=0x7fffed76f0f8)
at amule-gui.cpp:95
(gdb) bt all
No symbol "all" in current context.
(gdb) bt full
#0 0x000000000045f3e8 in __gnu_debug::_Safe_iterator<std::__norm::_List_const_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::base (this=0x71)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.h:312
No locals.
#1 0x0000000000461e83 in __gnu_debug::_Safe_iterator<std::__norm::_List_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::_M_invalidate_single (this=0x7fffed76d520)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.tcc:139
__victim = (const_iterator *) 0x71
__iter2 = (__gnu_debug::_Safe_iterator_base *) 0x71
#2 0x00000000004bf9b5 in __gnu_debug::_Safe_iterator<std::__norm::_List_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::_M_invalidate (this=0x7fffed76d520)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.tcc:114
sentry = {_M_device = @0x7f11e42598e0}
#3 0x00000000007066ce in std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> >::erase (this=0x2401e28, __position=
{<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x7fffed76d520, _M_version = 37756456, _M_prior = 0x5cf062c, _M_next = 0x7fffed76d290}, _M_current ---Type <return> to continue, or q <return> to quit---
= {_M_node = 0x432cd8}})
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/list:348
No locals.
#4 0x00000000006e2aed in CPartFile::RemoveBlockFromList (this=0x2401a90,
start=97280000, end=97464319) at PartFile.cpp:2188
it2 = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x2401e38,
_M_version = 0, _M_prior = 0x7fffed76d520, _M_next = 0x7fffed76d490},
_M_current = {_M_node = 0x34a2cc0}}
it = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x2401e38,
_M_version = 1, _M_prior = 0x7fffed76d460, _M_next = 0x0}, _M_current = {
_M_node = 0x2d4ce90}}
#5 0x00000000004b7228 in CUpDownClient::ProcessBlockPacket (this=0x30951c0,
packet=0x33b4690 "Ym��\211:�I\017��&���G", size=10741, packed=true,
largeblocks=false) at DownloadClient.cpp:1031
average_time = 1
lenWritten = 10708
cur_block = (Pending_Block_Struct *) 0x31475b0
data = {<CFileDataIO> = {_vptr.CFileDataIO = 0xa09bf0},
m_growthRate = 0, m_position = 24, m_BufferSize = 10741, m_fileSize = 10741,
m_delete = false, m_readonly = true,
m_buffer = 0x33b4690 "Ym��\211:�I\017��&���G"}
it = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x3095430,
---Type <return> to continue, or q <return> to quit---
_M_version = 1, _M_prior = 0x0, _M_next = 0x0}, _M_current = {
_M_node = 0x3091cc0}}
header_size = 24
nStartPos = 97453612
nEndPos = 97464319
nBlockSize = 181997
lenUnzipped = 10708
#6 0x000000000049863d in CClientTCPSocket::ProcessExtPacket (this=0x352fd40,
buffer=0x33b4690 "Ym��\211:�I\017��&���G", size=10741, opcode=64 '@')
at ClientTCPSocket.cpp:1409
No locals.
#7 0x00000000004a628b in CClientTCPSocket::PacketReceived (this=0x352fd40,
packet=0x349ad90) at ClientTCPSocket.cpp:2031
process = true
bResult = false
uRawSize = 10741
exception = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0x7f11e4387a38}, <No data fields>}
#8 0x0000000000507d17 in CEMSocket::OnReceive (this=0x352fd40, nErrorCode=0)
at EMSocket.cpp:328
bPacketResult = false
toCopy = 887
readMax = 2000000
---Type <return> to continue, or q <return> to quit---
ret = 887
rptr = (
uint8_t *) 0xe24477 "�d\203\225\025G2n�R\fpf��j_�\233����\b\036\210`w������\212\t!�I\037����2ZiE��Rf��\021\203\220G"
rend = (
const uint8_t *) 0xe24477 "�d\203\225\025G2n�R\fpf��j_�\233����\b\036\210`w������\212\t!�I\037����2ZiE��Rf��\021\203\220G"
GlobalReadBuffer = "^�\213\217��\v\022h\031r�\2010P\030\000�\227��\203\234DFi���|\017(\177\225\206�&�\f}���\203c��)\2010\n���\224?\212ri8B\a�\2004\003\004\202�c\n��\030�4��l\034[�\204o�\020\017����\a\212�}\212�xLxg7�`a\215\003\220 \003|I\004\006�����\017SZUb\036u\023�\0321�r0?@��`�\020R5z�\213��3Dt[�\004p\021\003\224K\000�\003h4\036�Wl�0\212��X����\026��\200\017\005�[\tU(\r'�;\224�\235\203�t��"...
#9 0x000000000049ceca in CClientTCPSocket::OnReceive (this=0x352fd40,
nErrorCode=0) at ClientTCPSocket.cpp:1933
No locals.
#10 0x00000000004a7cc8 in CClientTCPSocketHandler::ClientTCPSocketHandler (
this=0xe24040, event=@0x352a570) at ClientTCPSocket.cpp:95
socket = (CClientTCPSocket *) 0x352fd40
#11 0x00007f11e4364b99 in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#12 0x00007f11e4365d74 in wxEventHashTable::HandleEvent ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#13 0x00007f11e4365e67 in wxEvtHandler::ProcessEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#14 0x00007f11e4365038 in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#15 0x00007f11e42d506e in wxAppConsole::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#16 0x00007f11e4a8a47b in wxAppBase::ProcessIdle ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#17 0x00007f11e49e9914 in wxapp_idle_callback ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#18 0x00007f11e1b8eac2 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#19 0x00007f11e1b9223d in g_main_context_iterate ()
from /usr/lib/libglib-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#20 0x00007f11e1b9276d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0x00007f11e30bf197 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0x00007f11e4a00f18 in wxEventLoop::Run ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#23 0x00007f11e4a8a30b in wxAppBase::MainLoop ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#24 0x00007f11e430a0ed in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#25 0x0000000000634ae7 in main (argc=1, argv=0x7fffed76f0f8)
at amule-gui.cpp:95
No locals.
(gdb) thread apply all bt
Thread 5 (Thread 0x4258a950 (LWP 2597)):
#0 0x00007f11e5342fcd in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib/libpthread.so.0
#1 0x00007f11e43625b9 in wxConditionInternal::WaitTimeout ()
from /usr/lib/libwx_baseu-2.8.so.0
#2 0x00007f11e4363942 in wxSemaphoreInternal::WaitTimeout ()
from /usr/lib/libwx_baseu-2.8.so.0
#3 0x0000000000774229 in CTimerThread::Entry (this=0x1eb5aa0) at Timer.cpp:64
#4 0x00007f11e4363b2a in wxThreadInternal::PthreadStart ()
from /usr/lib/libwx_baseu-2.8.so.0
#5 0x00007f11e533efe7 in start_thread () from /lib/libpthread.so.0
#6 0x00007f11e384223d in clone () from /lib/libc.so.6
#7 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x41588950 (LWP 2595)):
#0 0x00007f11e5346091 in nanosleep () from /lib/libpthread.so.0
#1 0x00007f11e436991c in wxMicroSleep () from /usr/lib/libwx_baseu-2.8.so.0
#2 0x00000000005ad205 in UploadBandwidthThrottler::Entry (this=0x2321c70)
at UploadBandwidthThrottler.cpp:324
#3 0x00007f11e4363b2a in wxThreadInternal::PthreadStart ()
from /usr/lib/libwx_baseu-2.8.so.0
#4 0x00007f11e533efe7 in start_thread () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#5 0x00007f11e384223d in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f11e5633750 (LWP 2589)):
#0 0x000000000045f3e8 in __gnu_debug::_Safe_iterator<std::__norm::_List_const_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::base (this=0x71)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.h:312
#1 0x0000000000461e83 in __gnu_debug::_Safe_iterator<std::__norm::_List_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::_M_invalidate_single (this=0x7fffed76d520)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.tcc:139
#2 0x00000000004bf9b5 in __gnu_debug::_Safe_iterator<std::__norm::_List_iterator<Requested_Block_Struct*>, std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> > >::_M_invalidate (this=0x7fffed76d520)
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/safe_iterator.tcc:114
#3 0x00000000007066ce in std::__debug::list<Requested_Block_Struct*, std::allocator<Requested_Block_Struct*> >::erase (this=0x2401e28, __position=
{<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x7fffed76d520, _M_version = 37756456, _M_prior = 0x5cf062c, _M_next = 0x7fffed76d290}, _M_current ---Type <return> to continue, or q <return> to quit---
= {_M_node = 0x432cd8}})
at /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/debug/list:348
#4 0x00000000006e2aed in CPartFile::RemoveBlockFromList (this=0x2401a90,
start=97280000, end=97464319) at PartFile.cpp:2188
#5 0x00000000004b7228 in CUpDownClient::ProcessBlockPacket (this=0x30951c0,
packet=0x33b4690 "Ym��\211:�I\017��&���G", size=10741, packed=true,
largeblocks=false) at DownloadClient.cpp:1031
#6 0x000000000049863d in CClientTCPSocket::ProcessExtPacket (this=0x352fd40,
buffer=0x33b4690 "Ym��\211:�I\017��&���G", size=10741, opcode=64 '@')
at ClientTCPSocket.cpp:1409
#7 0x00000000004a628b in CClientTCPSocket::PacketReceived (this=0x352fd40,
packet=0x349ad90) at ClientTCPSocket.cpp:2031
#8 0x0000000000507d17 in CEMSocket::OnReceive (this=0x352fd40, nErrorCode=0)
at EMSocket.cpp:328
#9 0x000000000049ceca in CClientTCPSocket::OnReceive (this=0x352fd40,
nErrorCode=0) at ClientTCPSocket.cpp:1933
#10 0x00000000004a7cc8 in CClientTCPSocketHandler::ClientTCPSocketHandler (
this=0xe24040, event=@0x352a570) at ClientTCPSocket.cpp:95
#11 0x00007f11e4364b99 in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib/libwx_baseu-2.8.so.0
#12 0x00007f11e4365d74 in wxEventHashTable::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#13 0x00007f11e4365e67 in wxEvtHandler::ProcessEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#14 0x00007f11e4365038 in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
#15 0x00007f11e42d506e in wxAppConsole::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
#16 0x00007f11e4a8a47b in wxAppBase::ProcessIdle ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#17 0x00007f11e49e9914 in wxapp_idle_callback ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0x00007f11e1b8eac2 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#19 0x00007f11e1b9223d in g_main_context_iterate ()
from /usr/lib/libglib-2.0.so.0
#20 0x00007f11e1b9276d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0x00007f11e30bf197 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x00007f11e4a00f18 in wxEventLoop::Run ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#23 0x00007f11e4a8a30b in wxAppBase::MainLoop ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#24 0x00007f11e430a0ed in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#25 0x0000000000634ae7 in main (argc=1, argv=0x7fffed76f0f8)
at amule-gui.cpp:95
(gdb)
Again, thank you very much!