I tried optware's amule on my My Book World Edition. But got crashed when starting. Cause it's a stripped binary. So I tried to rebuild with debug enabled. I used all the dependency from optware, only compiled cryptopp v560 myself, and compiled amuled. When I try to run it, I got the same crash from the same location. The backtrace is attached, I hope it helps to fix the problem. Thanks.
(gdb) bt
#0 0x40259de4 in std::ostream::flush () from /lib/libstdc++.so.6
#1 0x40259f68 in std::ostream::sentry::sentry () from /lib/libstdc++.so.6
#2 0x4025a8a8 in std::ostream::write () from /lib/libstdc++.so.6
#3 0x0038b2fc in CryptoPP::FileSink::Put2 (this=0x72efc8,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true)
at files.cpp:196
#4 0x0031cd90 in CryptoPP::BufferedTransformation::ChannelPut2 (this=0x72efc8,
channel=@0x6a96dc, begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0,
blocking=true) at cryptlib.cpp:350
#5 0x00396454 in CryptoPP::OutputProxy::ChannelPut2 (this=0x72f128, channel=@0x6a96dc,
begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=1076560588, blocking=true)
at filters.h:523
#6 0x0038d54c in CryptoPP::Filter::Output (this=0x72ef88, outputSite=2,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true,
channel=@0x6a96dc) at filters.cpp:115
#7 0x003198fc in CryptoPP::Grouper::Put2 (this=0x72ef88, begin=0x72ee40 "MIIB\020ñr",
length=4, messageEnd=0, blocking=true) at basecode.cpp:219
#8 0x0031cd90 in CryptoPP::BufferedTransformation::ChannelPut2 (this=0x72ef88,
channel=@0x6a96dc, begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0,
blocking=true) at cryptlib.cpp:350
#9 0x0038d54c in CryptoPP::Filter::Output (this=0x72f140, outputSite=1,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true,
channel=@0x6a96dc) at filters.cpp:115
#10 0x0031936c in CryptoPP::BaseN_Encoder::Put2 (this=0x72f140,
begin=0xbe977a3d "\001\202\0010{\227¾\001", length=1, messageEnd=0, blocking=true)
at secblock.h:311
#11 0x0038e090 in CryptoPP::ProxyFilter::NextPutMultiple (this=0x0,
s=0xbe977544 "Ìu\227¾@h1", len=1076360404) at cryptlib.h:802
#12 0x00391b50 in CryptoPP::FilterWithBufferedInput::PutMaybeModifiable (this=0x72f298,
inString=0xbe977a3d "\001\202\0010{\227¾\001", length=1, messageEnd=0,
blocking=true, modifiable=false) at filters.h:198
#13 0x0007a564 in CryptoPP::FilterWithBufferedInput::Put2 ()
#14 0x00312a00 in CryptoPP::DERLengthEncode (bt=@0x72f298, length=266) at cryptlib.h:802
#15 0x00312bb0 in CryptoPP::DERGeneralEncoder::MessageEnd (this=0xbe977b30)
at asn.cpp:507
#16 0x0031511c in CryptoPP::PKCS8PrivateKey::DEREncode (this=0xbe977cc0, bt=@0x72f298)
at asn.cpp:580
#17 0x0006bea0 in CryptoPP::InvertibleRSAFunction::DEREncode ()
#18 0x00068198 in CClientCreditsList::CreateKeyPair ()
#19 0x00068bbc in CClientCreditsList::InitalizeCrypting ()
#20 0x00065db0 in CClientCreditsList::CClientCreditsList ()
#21 0x00024820 in CamuleApp::OnInit ()
#22 0x000173e0 in CamuleDaemonApp::OnInit ()
#23 0x0001c154 in wxAppConsole::CallOnInit ()
#24 0x40110c28 in wxEntry () from /opt/lib/libwx_baseu-2.8.so.0
#25 0x000143a4 in main ()
(gdb) bt full
#0 0x40259de4 in std::ostream::flush () from /lib/libstdc++.so.6
No symbol table info available.
#1 0x40259f68 in std::ostream::sentry::sentry () from /lib/libstdc++.so.6
No symbol table info available.
#2 0x4025a8a8 in std::ostream::write () from /lib/libstdc++.so.6
No symbol table info available.
#3 0x0038b2fc in CryptoPP::FileSink::Put2 (this=0x72efc8,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true)
at files.cpp:196
size = 4
#4 0x0031cd90 in CryptoPP::BufferedTransformation::ChannelPut2 (this=0x72efc8,
channel=@0x6a96dc, begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0,
blocking=true) at cryptlib.cpp:350
No locals.
#5 0x00396454 in CryptoPP::OutputProxy::ChannelPut2 (this=0x72f128, channel=@0x6a96dc,
begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=1076560588, blocking=true)
at filters.h:523
No locals.
#6 0x0038d54c in CryptoPP::Filter::Output (this=0x72ef88, outputSite=2,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true,
channel=@0x6a96dc) at filters.cpp:115
No locals.
#7 0x003198fc in CryptoPP::Grouper::Put2 (this=0x72ef88, begin=0x72ee40 "MIIB\020ñr",
length=4, messageEnd=0, blocking=true) at basecode.cpp:219
len = 4
#8 0x0031cd90 in CryptoPP::BufferedTransformation::ChannelPut2 (this=0x72ef88,
channel=@0x6a96dc, begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0,
blocking=true) at cryptlib.cpp:350
No locals.
#9 0x0038d54c in CryptoPP::Filter::Output (this=0x72f140, outputSite=1,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true,
channel=@0x6a96dc) at filters.cpp:115
No locals.
#10 0x0031936c in CryptoPP::BaseN_Encoder::Put2 (this=0x72f140,
begin=0xbe977a3d "\001\202\0010{\227¾\001", length=1, messageEnd=0, blocking=true)
at secblock.h:311
i = 1076560588
#11 0x0038e090 in CryptoPP::ProxyFilter::NextPutMultiple (this=0x0,
s=0xbe977544 "Ìu\227¾@h1", len=1076360404) at cryptlib.h:802
No locals.
#12 0x00391b50 in CryptoPP::FilterWithBufferedInput::PutMaybeModifiable (this=0x72f298,
inString=0xbe977a3d "\001\202\0010{\227¾\001", length=1, messageEnd=0,
blocking=true, modifiable=false) at filters.h:198
newLength = 1
#13 0x0007a564 in CryptoPP::FilterWithBufferedInput::Put2 ()
No symbol table info available.
#14 0x00312a00 in CryptoPP::DERLengthEncode (bt=@0x72f298, length=266) at cryptlib.h:802
i = 1
#15 0x00312bb0 in CryptoPP::DERGeneralEncoder::MessageEnd (this=0xbe977b30)
at asn.cpp:507
length = 266
#16 0x0031511c in CryptoPP::PKCS8PrivateKey::DEREncode (this=0xbe977cc0, bt=@0x72f298)
at asn.cpp:580
privateKeyInfo = {<CryptoPP::DERGeneralEncoder> = {<CryptoPP::ByteQueue> = {<CryptoPP::Bufferless<CryptoPP::BufferedTransformation>> = {<CryptoPP::BufferedTransformation> = {<CryptoPP::Algorithm> = {<CryptoPP::Clonable> = {
_vptr.Clonable = 0x479a04}, <No data fields>}, <CryptoPP::Waitable> = {
_vptr.Waitable = 0x479ac8}, static NULL_CHANNEL = @0x6a96dc,
m_buf = "p\235&@"}, <No data fields>}, m_autoNodeSize = true,
m_nodeSize = 512, m_head = 0x730f10, m_tail = 0x72e9d8,
m_lazyString = 0x6c084 "(°\213ât0\033å¤0\våp \033å\210 \vå¤0\033å\001",
m_lazyLength = 0, m_lazyStringModifiable = 20}, m_outQueue = @0x72f298,
m_finished = true, m_asnTag = 48 '0'}, <No data fields>}
algorithm = {<CryptoPP::DERGeneralEncoder> = {<CryptoPP::ByteQueue> = {<CryptoPP::Bufferless<CryptoPP::BufferedTransformation>> = {<CryptoPP::BufferedTransformation> = {<CryptoPP::Algorithm> = {<CryptoPP::Clonable> = {
_vptr.Clonable = 0x479a04}, <No data fields>}, <CryptoPP::Waitable> = {
_vptr.Waitable = 0x479ac8}, static NULL_CHANNEL = @0x6a96dc,
m_buf = "\\{\227¾"}, <No data fields>}, m_autoNodeSize = true,
m_nodeSize = 256, m_head = 0x72efe0, m_tail = 0x72efe0, m_lazyString = 0x0,
m_lazyLength = 0, m_lazyStringModifiable = 136}, m_outQueue = @0xbe977b30,
m_finished = true, m_asnTag = 48 '0'}, <No data fields>}
octetString = {<CryptoPP::ByteQueue> = {<CryptoPP::Bufferless<CryptoPP::BufferedTransformation>> = {<CryptoPP::BufferedTransformation> = {<CryptoPP::Algorithm> = {<CryptoPP::Clonable> = {_vptr.Clonable = 0x478f20}, <No data fields>}, <CryptoPP::Waitable> = {
_vptr.Waitable = 0x478fe4}, static NULL_CHANNEL = @0x6a96dc,
m_buf = "\\{\227¾"}, <No data fields>}, m_autoNodeSize = true, m_nodeSize = 256,
m_head = 0x730ee0, m_tail = 0x730ee0, m_lazyString = 0x0, m_lazyLength = 0,
m_lazyStringModifiable = 116}, m_outQueue = @0xbe977b30, m_finished = true,
m_asnTag = 4 '\004'}
#17 0x0006bea0 in CryptoPP::InvertibleRSAFunction::DEREncode ()
No symbol table info available.
#18 0x00068198 in CClientCreditsList::CreateKeyPair ()
No symbol table info available.
#19 0x00068bbc in CClientCreditsList::InitalizeCrypting ()
No symbol table info available.
#20 0x00065db0 in CClientCreditsList::CClientCreditsList ()
No symbol table info available.
#21 0x00024820 in CamuleApp::OnInit ()
No symbol table info available.
#22 0x000173e0 in CamuleDaemonApp::OnInit ()
No symbol table info available.
#23 0x0001c154 in wxAppConsole::CallOnInit ()
No symbol table info available.
#24 0x40110c28 in wxEntry () from /opt/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#25 0x000143a4 in main ()
No symbol table info available.
(gdb) thread apply all bt
Thread 1 (Thread 0x400 (LWP 2834)):
#0 0x40259de4 in std::ostream::flush () from /lib/libstdc++.so.6
#1 0x40259f68 in std::ostream::sentry::sentry () from /lib/libstdc++.so.6
#2 0x4025a8a8 in std::ostream::write () from /lib/libstdc++.so.6
#3 0x0038b2fc in CryptoPP::FileSink::Put2 (this=0x72efc8,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true)
at files.cpp:196
#4 0x0031cd90 in CryptoPP::BufferedTransformation::ChannelPut2 (this=0x72efc8,
channel=@0x6a96dc, begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0,
blocking=true) at cryptlib.cpp:350
#5 0x00396454 in CryptoPP::OutputProxy::ChannelPut2 (this=0x72f128, channel=@0x6a96dc,
begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=1076560588, blocking=true)
at filters.h:523
#6 0x0038d54c in CryptoPP::Filter::Output (this=0x72ef88, outputSite=2,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true,
channel=@0x6a96dc) at filters.cpp:115
#7 0x003198fc in CryptoPP::Grouper::Put2 (this=0x72ef88, begin=0x72ee40 "MIIB\020ñr",
length=4, messageEnd=0, blocking=true) at basecode.cpp:219
#8 0x0031cd90 in CryptoPP::BufferedTransformation::ChannelPut2 (this=0x72ef88,
channel=@0x6a96dc, begin=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0,
blocking=true) at cryptlib.cpp:350
#9 0x0038d54c in CryptoPP::Filter::Output (this=0x72f140, outputSite=1,
inString=0x72ee40 "MIIB\020ñr", length=4, messageEnd=0, blocking=true,
channel=@0x6a96dc) at filters.cpp:115
#10 0x0031936c in CryptoPP::BaseN_Encoder::Put2 (this=0x72f140,
begin=0xbe977a3d "\001\202\0010{\227¾\001", length=1, messageEnd=0, blocking=true)
at secblock.h:311
#11 0x0038e090 in CryptoPP::ProxyFilter::NextPutMultiple (this=0x0,
s=0xbe977544 "Ìu\227¾@h1", len=1076360404) at cryptlib.h:802
#12 0x00391b50 in CryptoPP::FilterWithBufferedInput::PutMaybeModifiable (this=0x72f298,
inString=0xbe977a3d "\001\202\0010{\227¾\001", length=1, messageEnd=0,
blocking=true, modifiable=false) at filters.h:198
#13 0x0007a564 in CryptoPP::FilterWithBufferedInput::Put2 ()
#14 0x00312a00 in CryptoPP::DERLengthEncode (bt=@0x72f298, length=266) at cryptlib.h:802
#15 0x00312bb0 in CryptoPP::DERGeneralEncoder::MessageEnd (this=0xbe977b30)
at asn.cpp:507
#16 0x0031511c in CryptoPP::PKCS8PrivateKey::DEREncode (this=0xbe977cc0, bt=@0x72f298)
at asn.cpp:580
#17 0x0006bea0 in CryptoPP::InvertibleRSAFunction::DEREncode ()
#18 0x00068198 in CClientCreditsList::CreateKeyPair ()
#19 0x00068bbc in CClientCreditsList::InitalizeCrypting ()
#20 0x00065db0 in CClientCreditsList::CClientCreditsList ()
#21 0x00024820 in CamuleApp::OnInit ()
#22 0x000173e0 in CamuleDaemonApp::OnInit ()
#23 0x0001c154 in wxAppConsole::CallOnInit ()
#24 0x40110c28 in wxEntry () from /opt/lib/libwx_baseu-2.8.so.0
#25 0x000143a4 in main ()
The program is running. Exit anyway? (y or n)