aMule Forum
English => Backtraces => Topic started by: monkeyboy on February 16, 2005, 09:09:28 PM
-
This happens as soon as I issue the servers command, and is thoroughly repeatable.
aMulecmd$ servers
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211977056 (LWP 27137)]
0x0805b6e3 in CECTag::GetStringData (this=0x0) at ECPacket.h:90
90 { return wxString(wxConvUTF8.cMB2WC((const char
*)m_tagData), aMuleConv); }
(gdb) p m_tagData
Cannot access memory at address 0x4
(gdb) bt
#0 0x0805b6e3 in CECTag::GetStringData (this=0x0) at ECPacket.h:90
#1 0x080500a8 in CamulecmdApp::Process_Answer_v2 (this=0x806b1d0,
response=0x80948a0) at TextClient.cpp:635
#2 0x0804e568 in CamulecmdApp::ProcessCommand (this=0x806b1d0, CmdId=17)
at TextClient.cpp:495
#3 0x08056607 in CaMuleExternalConnector::Parse_Command (this=0x806b1d0,
buffer=@0xbffff1e0, commands=0x8067ba0) at ExternalConnector.cpp:210
#4 0x080568aa in CaMuleExternalConnector::TextShell (this=0x806b1d0,
prompt=@0xbffff4d0, commands=0x8067ba0) at ExternalConnector.cpp:270
#5 0x0804c0ac in CamulecmdApp::TextShell (this=0x806b1d0, prompt=@0xbffff4d0,
commands=0x8067ba0) at TextClient.cpp:241
#6 0x08057df4 in CaMuleExternalConnector::ConnectAndRun (this=0x806b1d0,
ProgName=@0xbffff4d0, ProgVersion=@0xbffff4e0, commands=0x8067ba0)
at ExternalConnector.cpp:416
#7 0x08051bf0 in CamulecmdApp::OnRun (this=0x806b1d0) at TextClient.cpp:694
#8 0xb7f2dc88 in wxEntry () from /home/monkeyboy/lib/libwx_base-2.5.so.4
#9 0x0804bed4 in main (argc=2, argv=0xbffff5e4) at TextClient.cpp:89
(gdb) bt full
#0 0x0805b6e3 in CECTag::GetStringData (this=0x0) at ECPacket.h:90
No locals.
#1 0x080500a8 in CamulecmdApp::Process_Answer_v2 (this=0x806b1d0,
response=0x80948a0) at TextClient.cpp:635
tag = (class CECTag *) 0x80ac858
ip =
i = 306
s =
#2 0x0804e568 in CamulecmdApp::ProcessCommand (this=0x806b1d0, CmdId=17)
at TextClient.cpp:495
curr = (class CECPacket *) 0x8092240
reply = (class CECPacket *) 0x80948a0
it = { = {
_M_node = 0x8091290}, }
args =
request = (class CECPacket *) 0x8092240
request_list = { >> = {, true>> = {
_M_node = 0x8091290}, }, }
#3 0x08056607 in CaMuleExternalConnector::Parse_Command (this=0x806b1d0,
buffer=@0xbffff1e0, commands=0x8067ba0) at ExternalConnector.cpp:210
cmd_ID = 17
quit = false
#4 0x080568aa in CaMuleExternalConnector::TextShell (this=0x806b1d0,
prompt=@0xbffff4d0, commands=0x8067ba0) at ExternalConnector.cpp:270
buffer = "servers\n\n\000\000\000 \006Ö·`üÕ· \006Ö·\001\000\000\000(òÿ¿Ã\bÊ· \006Ö·\224\032Ê·\034Âü·ÿfõ·`üÕ·H\000\000\000áiõ·Hòÿ¿\034Âü·Hòÿ¿ \006Ö·`üÕ· \006Ö·°G\t\bhòÿ¿K\nÊ· \006Ö·°G\t\b\034Âü·\034{\006\bðõÿ¿xòÿ¿\vjõ·°G\t\b\034Âü·\210òÿ¿{&\005\bÀòÿ¿\034Âü·\030óÿ¿\226\033\005\bÀòÿ¿Àòÿ¿ðòÿ¿M\034õ·@\000\000\000 \006Ö·\224\032Ê·Ðòÿ¿àòÿ¿ðòÿ¿"...
buf =
The_End = false
#5 0x0804c0ac in CamulecmdApp::TextShell (this=0x806b1d0, prompt=@0xbffff4d0,
commands=0x8067ba0) at TextClient.cpp:241
No locals.
#6 0x08057df4 in CaMuleExternalConnector::ConnectAndRun (this=0x806b1d0,
ProgName=@0xbffff4d0, ProgVersion=@0xbffff4e0, commands=0x8067ba0)
at ExternalConnector.cpp:416
success = true
reply = (class CECPacket *) 0x8093db0
pass_plain =
pass_hash =
packet = { = { = {m_error = 0, m_tagData = 0x0,
m_tagName = 0, m_dataLen = 0, m_dynamic = false,
m_tagList = { >> = {, true>> = {
_M_start = 0x8090890, _M_finish = 0x8090910,
_M_end_of_storage = 0x8090910}, }, }}, }, m_opCode = 2 '\002'}
addr =
#7 0x08051bf0 in CamulecmdApp::OnRun (this=0x806b1d0) at TextClient.cpp:694
No locals.
#8 0xb7f2dc88 in wxEntry () from /home/monkeyboy/lib/libwx_base-2.5.so.4
No symbol table info available.
#9 0x0804bed4 in main (argc=2, argv=0xbffff5e4) at TextClient.cpp:89
No locals.
-
monkeyboy,
Thanks again, there are tons of potential segfaults in this code too, they are the same ones that were in amuleweb. I'll try to fix them today, but I don't think there will be enough time to be in tomorrow CVS snapshot. Please try 20050218 tarball to check, ok?
Cheers!
-
Ok, just fixed. Lets hope it gets in tomorrow snapshot... Though I think I was 30 minutes late... :(
-
I'll try it out and let you know.
By the way, today's amuleweb no longer listens on port 4711 -- it picks a port at random, it seems, and also when I log in, nothing happens. I don't get anything except another login screen. Could be something blew up in my config, but I don't think so. I didn't change anything.
Is this known? Or, well, I suppose it is now. :)
Monkeyboy
-
monkeyboy,
No, this is not known, and is unexpected. A bug in the saving of preferences has also been committed, after the commit of amulecmd. Both will be on 18/02/2005 tarball.
Please check you file ~/.eMule for the value of the the port, example:
[WebServer]
Password=xxxxxxxxxxxxxxxxxxxxxxxxxx
PasswordLow=yyyyyyyyyyyyyyyyyyyyyyy
Port=4711
Enabled=1
UseGzip=1
PageRefreshTime=120
UseLowRightsUser=1
DontCompressAvi=0
Cheers!
-
Interesting! Unfortunately(?), my .eMule is intact. I am on 20050217 now, and amuleweb is still acting up. It usually starts listening at the same port - 28804. Also, logging in still doesn't give me anything but another login screen. Here's the webserver section of .emule:
[WebServer]
Enabled=0
Port=4711
PageRefreshTime=20
UseGzip=1
UseLowRightsUser=0
Password=xxxxxxxxxxxxxxxxxxxxx
PasswordLow=
It was my understanding that Enabled=0 means "don't autostart when amule runs." Am I wrong about this? Is this the problem?
Thanks for your help.
Monkeyboy
-
By the way, amulecmd's servers command now works. Looks like you made it after all!
Monkeyboy
-
monkeyboy,
KoMpLoT reported a bug in amuleweb listening port. He is checking it, maybe he will come with a patch.
I don't know what the Enabled means, I have to check the code.
Cheers!
-
monkeyboy,
lfroen has fixed the amuleweb listening port problem, please try tomorrow cvs tarball.
Cheers!
-
Yep. it's working fine for me now. Thanks, guys.
Monkeyboy
-
Nice! But keep testing! ;)
Thanks for your support.