aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amulecmd 20050225 crashes after changing uploadlimit  (Read 1924 times)

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
amulecmd 20050225 crashes after changing uploadlimit
« on: February 25, 2005, 08:01:55 AM »

amule CVS 20050225; wxWidgets CVS 20050221

Amulecmd crashes after changing Uploadlimit through setupbwlimit 45 :
Code: [Select]
(gdb) bt
#0  std::vector >::begin() const (this=0x20)
    at stl_vector.h:322
#1  0x00000000004090dd in std::vector >::size() const (this=0x20) at stl_vector.h:375
#2  0x000000000040dfbd in CECTag::GetTagByName(unsigned short) (this=0x20,
    name=145) at ECPacket.cpp:476
#3  0x0000000000405ece in CamulecmdApp::Process_Answer_v2(CECPacket*) (
    this=0x522ee0, response=0x567070) at TextClient.cpp:573
#4  0x0000000000406c97 in CamulecmdApp::ProcessCommand(int) (this=0x522ee0,
    CmdId=5664880) at TextClient.cpp:503
#5  0x000000000040c79e in CaMuleExternalConnector::Parse_Command(wxString&, s_CmdId*) (this=0x522ee0, buffer=@0x91, commands=0x6db6db6db6db6db7)
    at ExternalConnector.cpp:210
#6  0x000000000040c99d in CaMuleExternalConnector::TextShell(wxString const&, s_CmdId*) (this=0x522ee0, prompt=@0x7fbffff3d0, commands=0x51cbc0)
    at ExternalConnector.cpp:270
#7  0x000000000040d614 in CaMuleExternalConnector::ConnectAndRun(wxString const&, wxString const&, s_CmdId*) (this=0x522ee0, ProgName=@0x7fbffff3d0,
    ProgVersion=@0x7fbffff1e0, commands=0x51cbc0) at ExternalConnector.cpp:396
#8  0x0000000000405b6b in CamulecmdApp::OnRun() (this=0x522ee0)
    at TextClient.cpp:744
#9  0x0000002a95809f99 in wxEntry(int&, char**) (argc=@0x51cb78,
    argv=0x7fbffff518) at app.h:297
#10 0x0000000000404962 in main (argc=2, argv=0x91) at TextClient.cpp:89
(gdb) bt full
#0  std::vector >::begin() const (this=0x20)
    at stl_vector.h:322
No locals.
#1  0x00000000004090dd in std::vector >::size() const (this=0x20) at stl_vector.h:375
No locals.
#2  0x000000000040dfbd in CECTag::GetTagByName(unsigned short) (this=0x20,
    name=145) at ECPacket.cpp:476
i = 0
#3  0x0000000000405ece in CamulecmdApp::Process_Answer_v2(CECPacket*) (
    this=0x522ee0, response=0x567070) at TextClient.cpp:573
tab = (CECTag *) 0x0
ipfilterLevel = (CECTag *) 0x7fbffff360
connMaxUL = (CECTag *) 0x7fbffff360
connMaxDL = (CECTag *) 0x20
#4  0x0000000000406c97 in CamulecmdApp::ProcessCommand(int) (this=0x522ee0,
    CmdId=5664880) at TextClient.cpp:503
curr = (CECPacket *) 0x571740
reply = (CECPacket *) 0x567070
it = {_M_node = 0x7fbfffeff0}
#5  0x000000000040c79e in CaMuleExternalConnector::Parse_Command(wxString&, s_CmdId*) (this=0x522ee0, buffer=@0x91, commands=0x6db6db6db6db6db7)
    at ExternalConnector.cpp:210
cmd_ID = -1227133513
quit = false
#6  0x000000000040c99d in CaMuleExternalConnector::TextShell(wxString const&, s_CmdId*) (this=0x522ee0, prompt=@0x7fbffff3d0, commands=0x51cbc0)
    at ExternalConnector.cpp:270
buffer = "setupbwlimit 45\n\000\000\000\000\000\000\000\000`ñÿ¿\177\000\000\0000ñÿ¿\177\000\000\000y\203@\000\000\000\000\000\020\000\000\000\000\000\000\000©\203@\000\000\000\000\0000ñÿ¿\177\000\000\000 ö;\226*\000\000\000pñÿ¿\177\000\000\000@ñÿ¿\177\000\000\000Pñÿ¿\177\000\000\000`ñÿ¿\177\000\000\0000ñÿ¿\177\000\000\000Ff \226*\000\000\000à.R\000\000\000\000\000Ù\205@\000\000\000\000\000pñÿ¿\177\000\000\000\225Z@\000\000\000\000\000X\212S\000\000\000\000\000Ðóÿ¿\177\000\000\000ø\210S\000\000\000\000\000y\203@\000\000\000\000\000ø\016T\000\000\000\000\000"...
buf = { = {static npos = 18446744073709551615,
    m_pchData = 0x5671a8 "setupbwlimit 45\n"}, }
The_End = false
#7  0x000000000040d614 in CaMuleExternalConnector::ConnectAndRun(wxString const&, wxString const&, s_CmdId*) (this=0x522ee0, ProgName=@0x7fbffff3d0,
    ProgVersion=@0x7fbffff1e0, commands=0x51cbc0) at ExternalConnector.cpp:396
reason = (CECTag *) 0x91
#8  0x0000000000405b6b in CamulecmdApp::OnRun() (this=0x522ee0)
    at TextClient.cpp:744
No locals.
#9  0x0000002a95809f99 in wxEntry(int&, char**) (argc=@0x51cb78,
    argv=0x7fbffff518) at app.h:297
callOnExit = {}
cleanupOnExit = {}
#10 0x0000000000404962 in main (argc=2, argv=0x91) at TextClient.cpp:89
No locals.

As regards to your hint that I possible mix versions I list here my install and start scripts.

To install wxWidgets without unicode I use this script:
Code: [Select]
rm -rf /home/user/usr/wxWidgets-cvs
make clean
./configure --enable-debug --enable-gtk2 --enable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --disable-unicode --prefix=/home/user/usr/wxWidgets-cvs CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CXXFLAGS="-march=k8 -O2 -pipe"
make
make install

To install aMule without unicode I use this script:
Code: [Select]
rm -rf ~/usr/amule
rm -rf ~/.aMule/webserver
rm -f ~/.aMule/aMule.tmpl
make clean
./configure --enable-debug --disable-optimize --enable-verbose --enable-webserver --enable-amulecmd  --enable-amule-daemon --disable-monolithic --with-wx-config=/home/user/usr/wxWidgets-cvs/bin/wx-config --prefix=/home/user/usr/amule CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CXXFLAGS="-march=k8 -O2 -pipe"
make
make install
#added after your hint because of possible changing template
cp src/aMule.tmpl ~/.aMule/
mkdir ~/.aMule/webserver
cp src/webserver/* ~/.aMule/webserver/

To start aMule without unicode I use this script:
Code: [Select]
LD_LIBRARY_PATH=/home/user/usr/wxWidgets-cvs/lib/ /home/user/usr/amule/bin/amuled >> /home/user/.aMule/debug.log 2>> /home/user/.aMule/error.log &

After that I have to start amuleweb on my own because amuled doesn't start amulweb anymore. Instead of amuleweb I get a second defunct. amuled.
To start amulweb I use this command:
Code: [Select]
LD_LIBRARY_PATH=/home/user/usr/wxWidgets-cvs/lib/ ~/usr/amule/bin/amuleweb -fq &
If I use your commands to control my executable files I get for every file amuled, amuleweb and amulecmd the same compilation date (20050225). I hope this will help and especially thanks for your help :) .

cu
Mr Faber
« Last Edit: February 25, 2005, 06:18:48 PM by Mr Faber »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
RE: amulecmd 20050225 crashes after changing uploadlimit
« Reply #1 on: February 25, 2005, 02:46:09 PM »

Ok, I believe you :D

Mr Faber, Ken did some nice changes to this code today and probably fixed this issue, could you try with tomorrow tarball? Sorry for the abuse ;)

I think you would like to know that your backtraces have generated a lot of commits on the amuleweb code, and that it is getting really very stable. I don't know why you are able to trigger so much crashes, but I am quite sure that if we can manage to run it on your machine without a crash, the program will be ready for everyone! :rolleyes:

Cheers!
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amulecmd 20050225 crashes after changing uploadlimit
« Reply #2 on: February 25, 2005, 06:15:43 PM »

:D Thanks. I will do my best :)
You all are so great  :baby:

cu
Mr Faber
Logged