GithubHelp home page GithubHelp logo

ftpd hangs after LIST command about lwip-ftpd HOT 4 CLOSED

toelke avatar toelke commented on August 15, 2024
ftpd hangs after LIST command

from lwip-ftpd.

Comments (4)

toelke avatar toelke commented on August 15, 2024

Hi Tom,

I would guess this comes from exhausted heap memory or exhausted TCP PCBs.

Could you check those?

Cheers,
Philipp

from lwip-ftpd.

TomMajor avatar TomMajor commented on August 15, 2024

Hi Philipp,

thanks for the quick reply. From your name, are you by any chance German
and could we communicate German?

This is my first start with lwIP and porting and everything is much more
complicated than I thought, although I found an old ST application note
with code for lwIP 1.3.1. which I adapted for my board (without an OS
first).

So my knowldege of lwIP is very limited, how would I check heap memory
or TCP PCB in the debugger?

This first test on the MCBSTM32C did run ok and this was the project I
wanted to try ftp on.

In the meantime, I tried to merge this into an existing uCOS-III project
(which is the final goal) but now I get a hardfault everytime I try to
access the web server. If I cannot fix this, this will be a show stopper
for lwIP (I hope not).

Thanks,
Tom

-- Beantwortete Nachricht --

Absender: toelke
Datum: 02.06.2014 19:07 Uhr

Hi Tom,

I would guess this comes from exhausted heap memory or exhausted TCP PCBs.

Could you check those?

Cheers,
Philipp


Reply to this email directly or view it on GitHub
#1 (comment).

from lwip-ftpd.

toelke avatar toelke commented on August 15, 2024

Hi Tom,

yes, actually I am from Germany but I would like to keep public communication in English as others might benefit from it.

To check for heap memory, in vfs.c I should check the return value of every malloc and return some sensible value. It is possible ftpd.c relies on some return value being non-NULL.

You could try increasing heap size if that changes anything.
If you want to check how much heap is free, you would need to look into the implementation details of your runtime.
You could also single-step from cmd_list() on and check for NULL pointers being used.

How many TCP pcbs have you configured in lwip? ftp needs one listening pcb and one non-listening. If you have a webserver, it will need further pcbs.

Another thing you could look into: As in ftp the server connects back to the client, sometimes a personal firewall on the client machine can hinder a complete ftp connection.

I will probably not have time in the next four weeks to build necessary error-checking code into this module. I would gladly accept a pull request though...

I hope I can help you to get this working.

Cheers,
Philipp

from lwip-ftpd.

toelke avatar toelke commented on August 15, 2024

I will close this now as I do not see how it helps to have it open; I am not sure if your problem is a error in the ftp-code or your port.

from lwip-ftpd.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.