aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Bug lead to consume memory on external connection port  (Read 2004 times)

ced

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • http://beyroot.free.fr
Bug lead to consume memory on external connection port
« on: December 03, 2005, 03:52:23 PM »

Bugs reproduce on amule-cvs(20051202):

The requests are funny, other random data could lead to same results or crash amuled.
Of course, no sense to connect on 4712 with a browser. :D

This request make unavailable communication with port 4712 (amulecmd and amuleweb segfault)
http://192.168.0.1:4712/if(this->request){packet_data=schmilblick;}else{packet_data=NULL;}return;
Amuled debug messages:
ZLib operation returned Z_DATA_ERROR
ZLib error message: incorrect header check
zstream state:
        next_in=0x993662a
        avail_in=506
        total_in=2
        next_out=0x993e630
        avail_out=32768
        total_out=0
CECSocket error: Invalid socket (uninitialized)
CECSocket error: Invalid socket (uninitialized)
CECSocket error: Invalid socket (uninitialized)


This request cause amuled to consume a lot of memory and cpu time
http://192.168.0.1:4712/if(this->
After 2 minutes depend memory capacity on the system, launch the request one more time
and port 4712 is unavailable, cpu time usage increase.
----------------------------------------------
Amuled debug messages after the first request:
ZLib operation returned Z_DATA_ERROR
ZLib error message: incorrect header check
zstream state:
        next_in=0x9764e32
        avail_in=440
        total_in=2
        next_out=0x976d008
        avail_out=32768
        total_out=0
CECSocket error: Invalid socket (uninitialized)
-----------------------------------------------
Amuled debug messages after the second request:
ZLib operation returned Z_DATA_ERROR
ZLib error message: incorrect header check
zstream state:
        next_in=0x40b89de2
        avail_in=440
        total_in=2
        next_out=0x40b91de8
        avail_out=32768
        total_out=0
CECSocket error: Invalid socket (uninitialized)
CECSocket error: Invalid socket (uninitialized)
CECSocket error: Invalid socket (uninitialized)
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Bug lead to consume memory on external connection port
« Reply #1 on: December 03, 2005, 03:58:16 PM »

Yeah well. *some* people must better increase EC port protection against wrong packets.
Logged

ced

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • http://beyroot.free.fr
Re: Bug lead to consume memory on external connection port
« Reply #2 on: December 03, 2005, 04:19:41 PM »

Kry, if some people would connect other than at home ...
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Bug lead to consume memory on external connection port
« Reply #3 on: December 03, 2005, 05:03:48 PM »

I was meaning aMule developers, not other people :P

As in "fuck, this has to be fixed"
Logged

ced

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • http://beyroot.free.fr
Re: Bug lead to consume memory on external connection port
« Reply #4 on: December 03, 2005, 05:32:25 PM »

I've misunderstood  :P
Logged