aMule Forum

English => aMule crashes => Topic started by: jankins on September 10, 2009, 10:40:29 AM

Title: program error in Ubuntu
Post by: jankins on September 10, 2009, 10:40:29 AM
Dear All,

I am a new learner.

I have downloaded aMule-2.2.5 source code and changed a little bit in Visual Studio 2008 and it works well.  But when move them to Ubuntu-8.04 and compile it and run. The program is crashed without showing any information.

I use "KDbg" to trace it. Then I see the lines in Stack:

__kernel_vsyscall()
raise() from /lib/tls/i686/cmov/libc.so.6
abort() from /lib/tls/i686/cmov/libc.so.6
wsFataSignalHandler() from /usr/lib/libwx_baseu-2.8.so.0
<signal handler called>
Kademlia::CRoutingZone::AddUnfiltered(this=........
......


Also, I use "gdb" to debug it. And I get the information:

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 0xb69d3b40 (LWP 8292)]
0x08256e4a in Kademlia::CRoutingZone::AddUnfiltered (this=0x8c014a8,
    id=@0xbf9c80f4, ip=1146853884, port=4672, tport=4662, version=0 '\0',
    key=@0xbf9c8104, ipVerified=@0xbf9c815c, update=false, fromNodesDat=true,
    fromHello=false) at kademlia/routing/RoutingZone.cpp:398
398         if (Add(contact, update, ipVerified)) {
(gdb) n
0xb764bc50 in wxFatalSignalHandler () from /usr/lib/libwx_baseu-2.8.so.0
Current language:  auto; currently asm
(gdb) n
Single stepping until exit from function wxFatalSignalHandler,
which has no line number information.

I installed the "wxGTK-2.8.10".

Thanks so much.

Jankins


Title: Re: program error in Ubuntu
Post by: jankins on September 10, 2009, 12:15:38 PM
My bad.

I finally find out the reason.

I tried to print out the "wxString" with format "%s", which cause the program crashes.

But, it's kind of weird that this error didn't show up in Windows.

Thanks.
Title: Re: program error in Ubuntu
Post by: Stu Redman on September 10, 2009, 10:52:11 PM
What happens then is pretty random, and may crash or not. I'm sure it didn't work on Windows.