Hi,
ok Jacobo, re-compiling amule 2.2.1 without optimization ...
The forum say me which my msg exceed 20000 char. I must cut gdb output.
The message exceeds the maximum allowed length (20000 characters).
I have expended more of one hour of my time and now cannot post the output of gdb, according to your message
in this forum

Now, recompile it without --disable-debug, --enable-debug, and re-run it:
./configure --prefix=/usr --with-language=it,en --disable-optimize --enable-debug --disable-upnp --enable-alc --enable-wxcas --libdir=/usr/lib64
at the end get the same:
Linking amule
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libbfd.a when searching for -lbfd
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libiberty.a when searching for -liberty
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libstdc++.so when searching for -lstdc++
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libstdc++.a when searching for -lstdc++
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-linux/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
Compiling ED2KLinkParser.cpp
Compiling MagnetURI.cpp
Compiling MuleCollection.cpp
Linking ed2k
Now run it with gdb:
[tinux@athos:/1]$ gdb /usr/bin/amule
This GDB was configured as "x86_64-slamd64-linux"...
(gdb) run
Starting program: /usr/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread 0x7fb652624700 (LWP 28267)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ListenSocket: Ok.
[New Thread 0x40fb6950 (LWP 28274)]
Loading temp files from /mnt/sda1/AmuleInc.
Loading PartFile 2 of 2
All PartFiles Loaded.
No shareable files found in directory: /mnt/hdd1/LoDown2/
No shareable files found in directory: /mnt/hdd1/LoDown2/Film/
No shareable files found in directory: /mnt/hdd1/LoDown2/Film/4400/
No shareable files found in directory: /mnt/hdd1/LoDown2/Film/Battle Star Galactica/
No shareable files found in directory: /mnt/sdb1/LoDown/
No shareable files found in directory: /mnt/sdc1/DivX/Serie televisive/
No shareable files found in directory: /mnt/sdc1/DivX/Serie televisive/Farscape/
No shareable files found in directory: /mnt/sdc1/DivX/Serie televisive/Farscape/Stagione 1/
No shareable files found in directory: /mnt/sdc1/DivX/Serie televisive/Farscape/Stagione 2/
No shareable files found in directory: /mnt/sdc1/DivX/Serie televisive/Farscape/Stagione 3/
No shareable files found in directory: /mnt/sdc1/DivX/Serie televisive/Farscape/Stagione 4/
[New Thread 0x426d1950 (LWP 28277)]
[New Thread 0x417b7950 (LWP 28278)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fb652624700 (LWP 28267)]
0x0000000000cf7f70 in vtable for __cxxabiv1::__si_class_type_info ()
(gdb) bt
#0 0x0000000000cf7f70 in vtable for __cxxabiv1::__si_class_type_info ()
#1 0x0000000000483bf7 in BlockCipherFinal (this=0x7fb644002060,
key=0x7fb644000b18 "úv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030", length=24)
at /usr/include/cryptopp/seckey.h:158
#2 0x0000000000483c5a in CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::Reseed (
this=0x7fff5a6611a0, key=0x7fb644000b18 "úv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030",
keylength=24,
seed=0x7fb644000b10 "X/{ªP4\210múv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030",
timeVector=0x0) at /usr/include/cryptopp/osrng.h:116
#3 0x0000000000483e86 in CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::Reseed (
this=0x7fff5a6611a0, blocking=false, input=0x0, length=0)
at /usr/include/cryptopp/osrng.h:138
#4 0x0000000000483f1e in AutoSeededX917RNG (this=0x7fff5a6611a0, blocking=false)
at /usr/include/cryptopp/osrng.h:100
#5 0x0000000000473baf in CClientCreditsList::CreateSignature (this=0x1a83ba0,
pTarget=0x2697220, pachOutput=0x7fff5a661280 "p1\222\001", nMaxSize=250 'ú',
ChallengeIP=0, byChaIPKind=0 '\0', sigkey=0x0) at ClientCreditsList.cpp:357
#6 0x00000000004456e2 in CUpDownClient::SendSignaturePacket (this=0x4ae94b0)
at BaseClient.cpp:2052
#7 0x0000000000489a8e in CClientTCPSocket::ProcessExtPacket (this=0x4ae8a70,
buffer=0x7fb644000db0 "\001\030\b", size=5, opcode=135 '\207')
at ClientTCPSocket.cpp:1354
#8 0x000000000049583e in CClientTCPSocket::PacketReceived (this=0x4ae8a70,
packet=0x7fb644001750) at ClientTCPSocket.cpp:2030
#9 0x00000000004eea51 in CEMSocket::OnReceive (this=0x4ae8a70, nErrorCode=0)
at EMSocket.cpp:328
#10 0x000000000048de0e in CClientTCPSocket::OnReceive (this=0x4ae8a70, nErrorCode=0)
at ClientTCPSocket.cpp:1932
#11 0x0000000000496e43 in CClientTCPSocketHandler::ClientTCPSocketHandler (this=0xcfa320,
event=@0x7fb644001600) at ClientTCPSocket.cpp:95
#12 0x00007fb650fad5dd in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib64/libwx_baseu-2.8.so.0
#13 0x00007fb650fad79c in wxEventHashTable::HandleEvent ()
from /usr/lib64/libwx_baseu-2.8.so.0
#14 0x00007fb650fad8dd in wxEvtHandler::ProcessEvent () from /usr/lib64/libwx_baseu-2.8.so.0
#15 0x00007fb650faddac in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib64/libwx_baseu-2.8.so.0
#16 0x00007fb650f15d6e in wxAppConsole::ProcessPendingEvents ()
from /usr/lib64/libwx_baseu-2.8.so.0
#17 0x00007fb6516ad9f6 in wxAppBase::ProcessIdle () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
#18 0x00007fb651613de2 in wxapp_idle_callback () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
#19 0x00007fb64e81f8d4 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#20 0x00007fb64e822bbd in ?? () from /usr/lib64/libglib-2.0.so.0
#21 0x00007fb64e822eb7 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#22 0x00007fb64fd5a853 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#23 0x00007fb65162ad7d in wxEventLoop::Run () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
#24 0x00007fb6516ad99b in wxAppBase::MainLoop () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
#25 0x00007fb650f4c40c in wxEntry () from /usr/lib64/libwx_baseu-2.8.so.0
#26 0x00000000005facea in main (argc=1, argv=0x7fff5a6628a8) at amule-gui.cpp:95
(gdb) bt full
#0 0x0000000000cf7f70 in vtable for __cxxabiv1::__si_class_type_info ()
No symbol table info available.
#1 0x0000000000483bf7 in BlockCipherFinal (this=0x7fb644002060,
key=0x7fb644000b18 "úv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030", length=24)
at /usr/include/cryptopp/seckey.h:158
No locals.
#2 0x0000000000483c5a in CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::Reseed (
this=0x7fff5a6611a0, key=0x7fb644000b18 "úv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030",
keylength=24,
seed=0x7fb644000b10 "X/{ªP4\210múv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030",
timeVector=0x0) at /usr/include/cryptopp/osrng.h:116
No locals.
#3 0x0000000000483e86 in CryptoPP::AutoSeededX917RNG<CryptoPP::DES_EDE3>::Reseed (
this=0x7fff5a6611a0, blocking=false, input=0x0, length=0)
at /usr/include/cryptopp/osrng.h:138
seed = {
m_alloc = {<CryptoPP::AllocatorBase<unsigned char>> = {<No data fields>}, <No data fields>}, m_size = 32, m_ptr = 0x7fb644000b10 "X/{ªP4\210múv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030"}
key = (
const unsigned char *) 0x7fb644000b18 "úv{x\232JÝßÚÍ!`ú¥xâa1.x\214V]\207\020\030"
#4 0x0000000000483f1e in AutoSeededX917RNG (this=0x7fff5a6611a0, blocking=false)
at /usr/include/cryptopp/osrng.h:100
No locals.
#5 0x0000000000473baf in CClientCreditsList::CreateSignature (this=0x1a83ba0,
pTarget=0x2697220, pachOutput=0x7fff5a661280 "p1\222\001", nMaxSize=250 'ú',
ChallengeIP=0, byChaIPKind=0 '\0', sigkey=0x0) at ClientCreditsList.cpp:357
rng = {<CryptoPP::RandomNumberGenerator> = {<CryptoPP::Algorithm> = {<CryptoPP::Clonable> = {
_vptr.Clonable = 0x897d70}, <No data fields>}, <No data fields>}, <CryptoPP::NotCopyable> = {<No data fields>}, m_rng = {m_p = 0x0}}
keylen = 0
challenge = 1516638784
ChIpLen = 0
sbbSignature = {
m_alloc = {<CryptoPP::AllocatorBase<unsigned char>> = {<No data fields>}, <No data fields>}, m_size = 48, m_ptr = 0x7fb644001780 "À\n"}
abyBuffer = "à\027fZÿ\177\000\000\020\022fZÿ\177\000\000@\023fZÿ\177\000\000\000\000\000\000\000\000\000\000p1\222\001\000\000\000\000p1\222\001\000\000\000\000@\026\235\002", '\0' <repeats 12 times>, "P\030\224\002", '\0' <repeats 16 times>, "\017\000\000\000q"
asink = {<CryptoPP::Bufferless<CryptoPP::Sink>> = {<CryptoPP::Sink> = {<CryptoPP::BufferedTransformation> = {<CryptoPP::Algorithm> = {<CryptoPP::Clonable> = {
_vptr.Clonable = 0x100000000}, <No data fields>}, <CryptoPP::Waitable> = {
_vptr.Waitable = 0x29410c0}, static NULL_CHANNEL = {
static npos = 18446744073709551615,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xcfa158 ""}},
m_buf = "p1\222\001"}, <No data fields>}, <No data fields>},
m_buf = 0x7fff5a661240 "0\024fZÿ\177", m_size = 26358128, m_total = 140420987056073}
signer = (RSASSA_PKCS1v15_SHA_Signer *) 0x28f2110
#6 0x00000000004456e2 in CUpDownClient::SendSignaturePacket (this=0x4ae94b0)
at BaseClient.cpp:2052
bUseV2 = false
byChaIPKind = 0 '\0'
ChallengeIP = 0
achBuffer = "p1\222\001\000\000\000\000@Íp\000\000\000\000\000p1\222\001\000\000\000\000Éo\rO¶\177\000\000\004\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\234\023fZÿ\177\000\000à\023fZÿ\177\000\000p\023fZÿ\177\000\000âš\016O¶\177\000\000\000\025fZÿ\177\000\000\207\000\000\000\000\000\000\000p\023fZÿ\177\000\000o\036q", '\0' <repeats 13 times>, "\004\000\000\000\000\000\000\000X\023fZÿ\177\000\000\000\000\000\000\001\000\000\000pkK\003\000\000\000\000\004\000\000\000\000\000\000\000\234\023fZÿ\177\000\000à\023fZÿ\177\000\000\000ä\n\000\000\000\000\000à\023fZÿ\177\000\000 \023fZÿ\177\000\000ŽÔp"...
siglen = 0 '\0'
data = {<CFileDataIO> = {_vptr.CFileDataIO = 0x7fff5a6613a0},
m_growthRate = 7394356, m_position = 140421002049672, m_BufferSize = 140734710027232,
m_fileSize = 140734710027312, m_delete = 176, m_readonly = 148,
m_buffer = 0x7fb64eab9460 "\001"}
packet = (CPacket *) 0x400000000
#7 0x0000000000489a8e in CClientTCPSocket::ProcessExtPacket (this=0x4ae8a70,
buffer=0x7fb644000db0 "\001\030\b", size=5, opcode=135 '\207')
at ClientTCPSocket.cpp:1354
SecureIdentState = 1
#8 0x000000000049583e in CClientTCPSocket::PacketReceived (this=0x4ae8a70,
packet=0x7fb644001750) at ClientTCPSocket.cpp:2030
process = true
bResult = false
uRawSize = 5
exception = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0x7fb650fdc3f8}, <No data fields>}
#9 0x00000000004eea51 in CEMSocket::OnReceive (this=0x4ae8a70, nErrorCode=0)
at EMSocket.cpp:328
bPacketResult = false
toCopy = 5
readMax = 2000000
ret = 11
rptr = (uint8_t *) 0xcfa3eb "ä\016\230î\tüp\237ePo&\001"
rend = (const uint8_t *) 0xcfa3eb "ä\016\230î\tüp\237ePo&\001"
GlobalReadBuffer = "Å\006\000\000\000\207\001\030\b\000\000ä\016\230î\tüp\237ePo&\001\000\000\000\036¯\006\000\000\000\002\001\000\001\030\000http://emule-project.net\003\001\000\0
21<\000\000\000\003\001\000ù>Å>Å\003\001\000ú\036B\0234\003\001\000þ·\f\000\000\003\001\000û\000Ä\000\000\000\000\000\000\000\000ùºmºm\003\001\000ú\036B\0234\003\001\000þµ\004\000\000\003\001\000û\000À\000\000\002\001\000U\020\000Applejuice 2.2.1Á*Õ\036&%", '\0' <repeats 1999833 times>
#10 0x000000000048de0e in CClientTCPSocket::OnReceive (this=0x4ae8a70, nErrorCode=0)
at ClientTCPSocket.cpp:1932
No locals.
#11 0x0000000000496e43 in CClientTCPSocketHandler::ClientTCPSocketHandler (this=0xcfa320,
event=@0x7fb644001600) at ClientTCPSocket.cpp:95
socket = (CClientTCPSocket *) 0x4ae8a70
#12 0x00007fb650fad5dd in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib64/libwx_baseu-2.8.so.0
No locals.
#13 0x00007fb650fad79c in wxEventHashTable::HandleEvent ()
from /usr/lib64/libwx_baseu-2.8.so.0
No locals.
#14 0x00007fb650fad8dd in wxEvtHandler::ProcessEvent () from /usr/lib64/libwx_baseu-2.8.so.0
No locals.
#15 0x00007fb650faddac in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib64/libwx_baseu-2.8.so.0
No locals.
#16 0x00007fb650f15d6e in wxAppConsole::ProcessPendingEvents ()
from /usr/lib64/libwx_baseu-2.8.so.0
No locals.
#17 0x00007fb6516ad9f6 in wxAppBase::ProcessIdle () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
No locals.
#18 0x00007fb651613de2 in wxapp_idle_callback () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
No locals.
#19 0x00007fb64e81f8d4 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#20 0x00007fb64e822bbd in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#21 0x00007fb64e822eb7 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#22 0x00007fb64fd5a853 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
No symbol table info available.
#23 0x00007fb65162ad7d in wxEventLoop::Run () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
No locals.
#24 0x00007fb6516ad99b in wxAppBase::MainLoop () from /usr/lib64/libwx_gtk2u_core-2.8.so.0
No locals.
#25 0x00007fb650f4c40c in wxEntry () from /usr/lib64/libwx_baseu-2.8.so.0
No locals.
#26 0x00000000005facea in main (argc=1, argv=0x7fff5a6628a8) at amule-gui.cpp:95
No locals.
(gdb) thread apply all bt
Thread 4 (Thread 0x417b7950 (LWP 28278)):
#0 0x00007fb652237e1d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007fb650faafa9 in wxConditionInternal::WaitTimeout ()
from /usr/lib64/libwx_baseu-2.8.so.0
#2 0x00007fb650fab87e in wxSemaphoreInternal::WaitTimeout ()
from /usr/lib64/libwx_baseu-2.8.so.0
#3 0x0000000000717b1e in CTimerThread::Entry (this=0x1935bf0) at Timer.cpp:64
#4 0x00007fb650fac10a in wxThreadInternal::PthreadStart ()
from /usr/lib64/libwx_baseu-2.8.so.0
#5 0x00007fb6522333f7 in start_thread () from /lib64/libpthread.so.0
#6 0x00007fb6504a043d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x426d1950 (LWP 28277)):
#0 0x00007fb65223a56b in read () from /lib64/libpthread.so.0
#1 0x0000000000703215 in CFile::doRead (this=0x426d0aa0, buffer=0x3fdfbb0, count=9728000)
at CFile.cpp:304
#2 0x0000000000711e6f in CFileDataIO::Read (this=0x426d0aa0, buffer=0x3fdfbb0,
count=9728000) at SafeFile.cpp:72
#3 0x0000000000680196 in CKnownFile::CreateHashFromFile (file=0x426d0aa0, Length=9728000,
Output=0x426d0950, pShaHashOut=0x0) at KnownFile.cpp:776
==============================cut==================================
That's all!
I hope this is useful!
Many thanks for your hard work

Best Rgards
p.s. excusme for my bad bad English!